Embedded Systems and Computer Interface
Name: ………………………………..
Date: ………………………….
SID: …………………………………….
8- Liquid Crystal Display (LCD)
Objective:
a. LCD working principle.
b. Make LCD driver.
c. Integrate between LCD and keypad.
Materials:
a.
b.
c.
d.
e.
LCD.
Keypad.
ATMEGA32.
Connecting cables.
MicroC / Eclipse.
Experiment :
a.
b.
c.
d.
Connect the following circuit as shown in the figure below.
Configure LCD ports.
Configure keypad pins.
Burn your code.
Experiment :
Write a code that displays on the LCD which switch is pressed.
© Dr. M. A. Wahby Shalaby
Page 1
Embedded Systems and Computer Interface
Assignment
Requirements:
Connect the following schematic and develop a code that displays on the LCD the duty cycle
and the direction of motor using PWM driver and LCD driver.
What you have to submit !
1. Submit .pdf file of the assignment sheet with your personal data.
2. Submit only ONE .c file for the whole project. Try to implement functions and call
it in instead of building driver for each component.
3. Submit .hex file of the project.
4. Submit the PROTUES project file (.pdsprj) simulating your code following the
same pic connection !!
5. Submit a video in which you discuss and show your system working on simulation
(2 mins maximum).
Assignment rules:
-
Feel free to use timer peripherals with any mode to generate the required delay.
Add a heading at the top of the .c file illustrating code title, function, and your
personal data.
Keep the code well commented at each step.
Make sure you submit the final .hex file.
Make sure to deliver the required task only.
Student Comments:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------© Dr. M. A. Wahby Shalaby
Page 2