Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/01/00 09:32
Read: times


 
#6869 - RE: Need help with Serial to LCD program.


I suggest to check whether LCD is accepting the data and showing on display or not. For this you can send an test text string immidiately after initialization of LCD display, such as your "NAME" or your "COMPNAY NAME" etc.

This text you have to send from your 8051 code, do not try to receive from serial source.

If the text shows, means some problem is present on serial receiving or serial data storage buffer, if you are using.

If initializing text does not show, means some thing wrong with initializing the LCD.

If your LCD is 44780 based so you can initialize your LCD as follows:

When LCD power turns ON, you wait around 15ms. Then you send #30h (in Command mode) and wait for approximate 15ms, then you send #30h to LCD and wait for approx 5ms. Then you send #30h (3rd time) and wait for approximate 1ms.

Now you can send LCD setup parameters if you want to configure the LCD further more.

I am sure your LCD will start showing the data.

For display on 2nd line, you have to create a buffer for 32 characters, and a routine to show first 16 charactors then before sending 17th character, the routine will call another subroutine to move the cursor to point to the second line, then 17th character will be displayed on 2nd line.

Rauf



List of 5 messages in thread
TopicAuthorDate
Need help with Serial to LCD program.            01/01/70 00:00      
RE: Need help with Serial to LCD program.            01/01/70 00:00      
RE: Need help with Serial to LCD program.            01/01/70 00:00      
RE: Need help with Serial to LCD program.            01/01/70 00:00      
RE: Need help with Serial to LCD program.            01/01/70 00:00      

Back to Subject List