| ??? 02/12/03 19:01 Read: times |
#38908 - RE: interfacing lcd in c (4bit) init Responding to: ???'s previous message |
This is what i have made out of it.
ik see the first line go out but the cursor wont blink what is still wrong? void lcdinit( void ) { lcdmsdelay(20); /* wait for 20 ms after power on */ lcdwrite(0x03); /* function set command */ lcdmsdelay(5); /* wait for 5 ms */ lcdwrite(0x03); /* function set command */ lcdusdelay(160); /* wait for 160 us */ lcdwrite(0x03); /* function set command */ lcdusdelay(160); /* wait for 160 us */ lcdwrite(0x02); /* function set (4bit interface) */ lcdwrite(0x02); /* function set 4bit 1/16 duty font = 5x8 */ lcdwrite(0x08); lcdwrite(0x10); /* turn off the display */ lcdwrite(0x00); lcdwrite(0x00); /* clear display */ lcdwrite(0x01); lcdwrite(0x00); /* set cursor direction and cursor behavior */ lcdwrite(0x06); /* increment cursor and no shift */ lcdwrite(0x00); /* cursor on display on cursor blink */ lcdwrite(0x0F); } |
| 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 |



