HD44780 Pollin121714 Pollin120420 SED1278 TC1602E ANAG VISION AV1623YFTY KS0070 KS0066U Generell VCC VDD VEE VSS VPP VCC: Voltage Current Collector Voltage: Spannung Current: Strom Pin 1: Eckig, GND Pin 1: VSS Pin 2: VDD Pin 3: VEE Pin 4: RS Pin 5: RW Pin 6: E Pin 7 bis Pin 14: DB0 .. DB7 Pin 15: A Pin 16: K A: Anode K: Kathode VSS: GND VDD: +5V VEE: Kontrastspannung -5/0V - 5V RS: Register Select RW: Read/Write E: Enable/Disable RS: Register Select 0 = Befehl 1 = Daten RW: Read/Write 0 = Write 1 = Read 4-Modus 8-Modus DIL - Version (Dual Inline Version) 2 Reihen 4 x 7 Kontakte 4 x 8 Kontakte 4-Modus: in Nibbles zerlegen H"oheres Nibble: Bit 7 bis Bit 4 Niedriges Nibble: Bit 3 bis Bit 0 Man kann 6 oder 7 Kontakten auskommen DB4 .. DB7, RS, RW, E RW kann man sich auch sparen Anschluss: AVR - PD0 .. PD3 - Datenwort PD5 - E PD4 - RS Am AVR: PORTD DDRD PD0 .. PD7 LCD: DB0 .. DB7, RS, RW, E PD0: DB4 PD1: DB5 PD2: DB6 PD3: DB7 Um in Nibble zerlegen: SWAP aus 0b0010 0101 wird 0b0101 0010 mov r17, r16 swap r16 andi r16, 0b00001111 out PORTD, r16 andi r17, 0b00001111 out PORTD, r17 sbr PORTD, 5 nop nop nop cbr PORTD, 5 Befehle, HD44780 - Controller Clear Display Cursor Home Entry Mode On/Off Controller Cursor/Scrollen ... (Konfiguration)? Character RAM Address Set Display RAM Address Set 0b0000 0001: Clear Display 0b0000 001x: Cursor Home 0b0000 01is: Entry Mode 0b0000 1dcb: On/Off Controller 0b0001 srxx: Cursor/Scrollen ... (Konfiguration)? 0b01aaaaaaa: Character RAM Address Set 0b1aaaaaaaa: Display RAM Address Set $3, $3, $3 $3, $3, $3, $2 $3, $3, $3, $2, $20 |