??? 08/04/04 03:05 Read: times Msg Score: 0 +1 Good Question -1 Overrated |
#75370 - ° LCD (44780) works in only ASM not C! ° |
Hi everyone. I'm truly 'up against the wall'. I simply CANNOT get my 16x2 LCD to respond to my C programs. I have searched the internet, 8052.com, etc., without substantial results (i.e., no complete example C programs, only snippets with missing library files, missing MAIN(), etc.).
My information: 80C51 @ 11.059 MHz, Keil eval. compliler. LCD: connected 8 bit to port P1, E at P3.4, RS at 3.2, R/W on P3.3. LCD is UC162A 44780-based. *But*... 1. The LCD/circuit works with an example assembly language program! 2. I've written 7-8 C progs, using delays, check busy bit, both, etc., no initialization on LCD! 3. Other programs in C test/compile/run fine on 8051. Symptoms: 1. No activity whatsoever on LCD, despite anything I do in C...works great in assembly. 2. My progs. simulate o.k. in Keil. Please, I would GREATLY appreciate your assistance..or complete working example code..I've spent countless hours working on this! I don't even have working code so that I can compare and deduce my bugs. Thanks so much! Marty :) |