You can also manually control the LCD.. .with out using LCDout.
http://www.geocities.com/SiliconVall...d/commands.htm
YOu would send a
hex 13 to turn on the LCD,
Hex 01 to clear
and everything else will be close to the same as a LCDout.
You would send it in 4 bit mode, thus I can't remember if you send the MSB or LSB first...This may seem like a lot of work, but in reality, it is fairly simple.
You can assign the whole PortB.0- PortB.3, then assign A.3 to Port b.3 and trigger your clock.
Psuedo code:
Turn your LCD into 4 bit mode:
send Hex 13 to turn it on.
// one way to do it:
routine:
Portb.0 - POrtb.3=MSB
Porta.3=Portb.3
toggle clock
// another way to do it.
Portb.0 - Portb.2=LSB
Porta.3=Bit...(whatever it is)
toggle clock
Return
Yeah, you are sending in 4 bit mode, but it will work. But you are not using LCDout. You will also have to put your own pauses in, so that the data will not be sent too fast. (similiar to Character spacing command in LCDout)
Last edited by Dwayne; - 4th May 2005 at 16:06.
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks