Szczepaniec
- 27th February 2012, 06:55
This seems like the most basic of problems and it is probably just the frustration of trying it for hours that is keeping me from the obvious answer. I have a New Haven Display Serial LCD 20x4 display (datasheet attached) and I am attempting to use it with a PIC12F615. I can get it to print text all day long but cannot get it to do any of the commands such as "Clear Screen." I have tried every variation of sending Hex code that I can think of as well as exhausting the search feature on this forum as well as the forum for New Haven. Any help would be greatly appreciated. Here is the last version of the code I tried. The LCD is 9600 baud and there is an LED on pin 1 just so that I know the PIC is running properly and in time.
DEFINE OSC 8
pause 50
high 1
pause 1000
serout2 2, 84, ["Hello"]
do
high 1
pause 500
low 1
pause 500
serout2 2, 84, [$FE,$51]
loop
end
DEFINE OSC 8
pause 50
high 1
pause 1000
serout2 2, 84, ["Hello"]
do
high 1
pause 500
low 1
pause 500
serout2 2, 84, [$FE,$51]
loop
end