Hi,
I am having troubles writing to a standard 4*20 lcd using 4 bit mode.
I am using AtmanAVR and the the functions that is built in the IDE.
The problem is that lcd_init locks up my atmega.
lcd_init(20, &PORTA); <- locks up my atmega
while(1) <- never reached
{
}
The while(1) loop is never reached. Outcomment/disabling the lcd_init causes normal execution.
As far as I can withdraw from other lcd drivers available (for standard line lcds), there is no handshaking between the mcu and the lcd so the driver should not cause the mcu to lock up even if connections from mcu to lcd are bad.
The irritating part is that it has worked once, but after problems with correct settings of fuses in the m16, my home manufactured atmega16 board causes a bunch of problems.
My question is, does anyone have simple drivers for lcd so I can debug my code.
Any suggestions to what causes the problem would be great.
Thanks in advance
Kahr