My code honours the timing as specified by the lcd defines , timing that most lcd displays need esp the cheapest and oldest examples of them.
If you send data at a rate that exceeds the specified...
tested richard code, work fine 300 to 9600 at 8Mhz (_INTRC_OSC_NOCLKOUT)
19200 not working at 8Mhz and 20Mhz Xtal
back light working fine 300~19200
9993
just set:
BaudR var word
work fine here
Or more like
SEROUT2 lcd,baudR,pace,[ 255, 8] ' Back Light OFF
SEROUT2 lcd,baudR,pace,[ 255, 0] ' Back Light ON
depending on how you connected the backlight of course
the code I use are similar, you can try to adapt.
for the Hitachi HD44780 the decimal 254 represent the low RS then you need ot receive the line # as 128 line #1, 192 line #2, 148 line #3, 212...
OOP'S!
usualy I code in both Positron & PBP3.
here's the PBP3 code. (added Pause C)
The backlight is controlled by 255d and 0d or 255d and 8d.
Have yet to send some text over the LCD.
Ioannis
Tried to test Richards code, but seems i cant make the LCD work at all.
For starters the Backlight does not turn off.
What is the sequence that should be sent over the serial port to control...
This code is not for PicBasic dialect...
Ioannis
Re: serial LCD 1602 Backpack using PIC16F690 for Hitach HD44780
set pace to 1 , and it's working
jackberg1 Today, 11:57sEROUT2 lcd,baudR,pace,[254,128,"ABCDEFGHIJKLMNOP"]
thanks.