UNIT-V: �Applications and Interfacing of 8051
Introduction:
�LCD interfacing to 8051.��
Contd..
LCD commands�
Programming LCD16x2
Command write function�
Data write function�
Note�
Rolling Display:�
Let us write a program that will display 'DNA TECHNOLOGY' on LCD.�
�
KEY SCAN�
STEPS TO FIND OUT KEY PRESSED�
Example:�
PROGRAM:�
3. To detect which row the key pressed belongs to, it grounds one row at a time, reading the columns each time.
4. To identify the key pressed, it rotates the column bits, one bit at a time, into the carry flag and checks to see if it is low.
PROGRAM:�
ADC INTERFACING TO 8051
Steps for converting the analogue input and reading the output from ADC0804.�
Circuit diagram.
example�
Resolution Vs Stepsize:
Program.�
TIMING DIAGRAM
DAC INTERFACING WITH 8051: