Rctime + parallel lcd
linock
Posts: 31
Hello
- I have a BS 2 SX connected to a parallel LCD used in 4 bits mode.
- I hooked a 0.1 µf capacitor with a resistor as shown on many places and added a adjustable resistor to simulate a resistor variations, it works fine with RCTIME.
- Informations sent by RCTIME are associated with result VAR Word.
- I added in the code DEBUG HOME, DEC result.
Everything is displayed as it should be in the debug window.
Now i would like to transmit the content of DEC result to the LCD.
The difficult is that i can't figure how to transmit the value contained in DEC result which is defined as Word and the LCD expects something like char.HIGHNib and char.LOWNib.
I walked through a lot of examples but all seems to work with serial LCD and the Mill example is a nice one but it's too complex for the little thing i'm trying to do. Read from one input and display the result to the LCD
Any idea is welcome, thank you.
Post Edited (linock) : 1/31/2006 12:33:20 AM GMT
- I have a BS 2 SX connected to a parallel LCD used in 4 bits mode.
- I hooked a 0.1 µf capacitor with a resistor as shown on many places and added a adjustable resistor to simulate a resistor variations, it works fine with RCTIME.
- Informations sent by RCTIME are associated with result VAR Word.
- I added in the code DEBUG HOME, DEC result.
Everything is displayed as it should be in the debug window.
Now i would like to transmit the content of DEC result to the LCD.
The difficult is that i can't figure how to transmit the value contained in DEC result which is defined as Word and the LCD expects something like char.HIGHNib and char.LOWNib.
I walked through a lot of examples but all seems to work with serial LCD and the Mill example is a nice one but it's too complex for the little thing i'm trying to do. Read from one input and display the result to the LCD
Any idea is welcome, thank you.
Post Edited (linock) : 1/31/2006 12:33:20 AM GMT
Comments
·· Have a look in the Help File at the DIG operator.· This could help you since it allows you to grab each digit of the Word variable and send its value to another variable which you can send to the display.· Do this for each digit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
http://forums.parallax.com/showthread.php?p=568691
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
I hope it will work, i hate to be a newbie [noparse]:([/noparse]
Edit:
It works great
You are champions
Post Edited (linock) : 1/31/2006 12:32:43 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax