Você está na página 1de 3

Micro Controllers 2

Project Specification Semester 1 – 2010

This specification is submitted by ADITYA KATARIYA

Preamble :
PORTD will take inputs from user and as soon as user
enters 4 inputs these are all stored in EEPROM memory and
then there will be a delay of 5 seconds and then these inputs
will be retreived from EEPROM memory and displayed on
lcd screen .
Hardware Connections:
Pickit2 is connected to target board and keypad is connected
to PORTD to take inputs
Abstract:
A more detailed description which states the process in a
sequential manner – it does not need to reference proposed
code
Deliverables:
1. A report explaining the functionality of your main code and ISR – this
should make detailed reference to line numbers and cover all functions in
your source code listing
2. Fully commented, numbered source code listing of your main program –
Your program is expected to have correct indentation – listings of existing
header files and their source code is not required.
3. Complete flow chart of your main code (using VISIO), again flow charts of
existing header files and their source code is not required.
4. Each week (deadline is Friday at 5:00pm) a zipped version of your
complete project (from the program menu) will be uploaded to eMIT (use
the “eMIT Dropbox Uploader”), this provides a secure backup and also
demonstrates weekly progress (for progress assessment).
5. A demonstration of all working parts of your project at the scheduled
demonstration time. (Note that failure to demonstrate at your scheduled
time will seriously reduce your marks – you are expected to back up you
files regularly so that you always have the latest working project available.)
Specification:
1. The inputs will be characters or numbers stored in
EEPROM
2. The output will be characters retreived from
EEPROM those were stored as inputs
3. There will be delay of 5 seconds after there is 4 inputs
entered
Resources
This project is based on the material from the initial labs, particularly:
• Lab 3 LCD display
It will also specifically use code from the following optional labs
• Option lab 2 Switch de bounce
• Option lab 3 keypads
• Option lab 4 EEPROM read and write
• Option lab 10 Timers
It is expected to use the following .c and .h files from the Header Files folder
• keypad.c & keypad.h
• LCD.c & LCD.h
• usart.c & usart.h
• Interrupt.c & Interrupt.h

CODE LISTING :

LINES ( 1 to 10):

Breif description about the project.

LINES (11 to 14):

Including header files.

LINES (15 to 28):

Defining and declaring variables required.

LINES (29 to 41 ):

Timer initialisation .
LINES (42 to 56):

Interrupt function responsible for delay once user enters 4 inputs it starts
Untill the count is 5000 ms and sets the timer to 1

LINES (57 to 69):

Declaration of variables needed in main programme

LINES (72):

Checks if keypad is true .

LINES(76):

Inputs are put in the PORTD.

LINES(79 to 101):

It checks if there is any input and thn it sends those inputs entered to lcd
with the no count once there is 4 inputs it stops taking inputs and delay
starts

LINES(102 to 113):

If nothing is entered it jst sets buttonpressed to false.

LINES(115 to 127):

It checks if timer is true and then it starts reading input from EEPROM
and starts displaying them on lcd .

Você também pode gostar