Escolar Documentos
Profissional Documentos
Cultura Documentos
LCD HD44780U Hardware configuration LCD pin description LCD command codes LCD data sheet Timing graph Write command sequence Read command sequence
LCD
LCD 16x2 and 20x2 are preferred HD44780U communication between LCD and 8051 HD44780U 3 control lines , 4 or 8 I/O lines for data bus
HD44780U
4 bit or 8 bit data bus is user selectable 4 bit data bus requires 7 data lines (3 control lines + 4 lines of data bus) 8 bit data bus requires 11 data lines (3 control lines + 8 lines of data bus) Control lines Enable (EN) Register Select (RS) Read/Write (RW)
Hardware configuration
8 bit mode
4 bit mode
Pin 1 2 3 4 5 6 7 8 9 10 11 12 13 14
I/O I I I/O I/O I/O I/O I/O I/O I/O I/O I/O
Description Ground +5V power supply Contrast control command/data register selection write/read selection Enable The 8-bit data bus The 8-bit data bus The 8-bit data bus The 8-bit data bus The 8-bit data bus The 8-bit data bus The 8-bit data bus The 8-bit data bus
3 3 3 3
3 3 3 0 3
Timing graph
// Send the 'High nibble' // introduce short delay // introduce short delay // Send the 'Low nibble' // introduce short delay
12
13
14
16
17
18
ADC Interfacing
ADC0809 Features
8 bit ADC (Resolution 8 bits ) Input Channels 8 Interface Type ---Parallel Max Sample Rate 10 ksps Supply Voltage 4.5 Volt to 6 Volt External Reference Source Operating Temperature Min -40 deg C to 85 deg C
20
21
22
23
ADC0809 Vref
Relationship between Vref and Vin
24
25