| ??? 02/09/03 16:24 Read: times |
#38654 - interfacing lcd in c (4bit) init |
Hello,
I cant seem to get the init right can someone look what is wrong? void lcdinit( void ) { lcddelay(20); lcdwrite(0x03); lcddelay(5); lcdwrite(0x03); lcddelay(5); lcdwrite(0x03); lcdwrite(0x02); lcdwrite(0x02); lcdwrite(0x08); lcdwrite(0x00); lcdwrite(0x08); lcdwrite(0x00); lcdwrite(0x08); } the delay is x times 1ms this is the write function: void lcdwrite(unsigned char lcd_data) { P3 = (P3 & 0xFF) | lcd_data; } i have added the strobe void lcdwrite(unsigned char lcd_data) { P3 = (P3 & 0xFF) | lcd_data; e=0; e=1; e=0; } But still no action at the lcd. These are the portconnections rs r/w e D7 D6 D5 D4 d4 is at P3.0 and rs at P3.6 What am i doing wrong? In the examples that i have i don't see a strobe signal??? |
| Topic | Author | Date |
| interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
RE: interfacing lcd in asm (4bit) | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 | |
| RE: interfacing lcd in c (4bit) init | 01/01/70 00:00 |



