| ??? 05/29/02 14:39 Read: times |
#23604 - LCD interfacing and Serial Data |
I am quite a novice working with microcontrollers. I am working on a small 8052 development board connected to a PC. I have interfaced a 16x2 LCD (HD 44780) with a 8052 micro, in 8-bit mode, using Port1 as the data bits, and P3.0 (RxD) as RS P3.1 (TxD) as RW P3.2 (_INT0) as EN It is working almost fine. I tried to input data using UART and display it on the LCD. I used a Serial Interrupt to detect a keypress (enter), and then if the keypressed is "enter", i jumped on to an INPUT routine which inputs the data by polling RI flag. also, when i press enter, i want to clear the LCD screen. After detecting an interrupt due to RI, I reset RI, load SBUF to A, check whether t is "enter" and if it is, i jum to the INPUT routine, which first clearc the LCD screen and starts serial input. problem is, after pressing the enter key, a juk character is being input as the first character, without any actual input from the keyboard. the problem doesnt come if i remove the "clear screen" command. I almost know that it's due to data on TxD and RxD pins, which are shared by the RS and RW lines of LCD. How do I eliminate it? Hey! I just got an Idea that i can stop the Timer 1, which generates the baud rate for the UART. is it? I will try. Is there any other way? |
| Topic | Author | Date |
| LCD interfacing and Serial Data | 01/01/70 00:00 | |
| RE: LCD interfacing and Serial Data | 01/01/70 00:00 | |
RE: LCD interfacing and Serial Data | 01/01/70 00:00 |



