??? 01/29/06 19:34 Read: times |
#108653 - KS0073 LCD INIT |
hello guys!
does anyone have expierence with a 4x20 KS0073 LCD? I have made an init routine the init routine for the HD44780 together with the routine from the tutorial work fine, exept the display only uses line 1 and 3 so I made an extended init routine according the Datasheet but with this routine it look funny and only uses line 1 can anyone help me out? HD44780 INIT routine: SETB EN CLR RS MOV DATA,#38h ; CLR EN LCALL WAIT_LCD SETB EN CLR RS MOV DATA,#0Ch ; Display on, cursor off, blinking off CLR EN LCALL WAIT_LCD SETB EN CLR RS MOV DATA,#06h ; Cursor auto inc CLR EN LCALL WAIT_LCD ret ; return KS0073 INIT routine: SETB EN CLR RS MOV DATA,#34h ; Function Set: 8-bit, Enable ExtFS CLR EN ACALL WAIT_LCD SETB EN CLR RS MOV DATA,#09h ; Ext. Function Set: 4 line modus, low Power=0, no blink CLR EN ACALL WAIT_LCD SETB EN CLR RS MOV DATA,#30h ; Function Set: 8-bit, Disable ExtFs, 2 line(overruled by ExtFS), dot scrol, normal CLR EN ACALL WAIT_LCD SETB EN CLR RS MOV DATA,#0Fh ; Display On/Off: Display=1, Cursor=0, blink=0 CLR EN ACALL WAIT_LCD SETB EN CLR RS MOV DATA,#01h ; Entry MOde Set: scroll right, no shift CLR EN ACALL WAIT_LCD SETB EN CLR RS MOV DATA,#06h ; Entry MOde Set: scroll right, no shift CLR EN ACALL WAIT_LCD ret ; return regards Jeroen |
Topic | Author | Date |
KS0073 LCD INIT | 01/01/70 00:00 | |
RAM address | 01/01/70 00:00 | |
try this![]() | 01/01/70 00:00 |