Sending a word variable to an LCD
Hello,
I have an LTC1298 and an LM34 along with a BPI-216 LCD connected up to my SX Tech board. I have combined parts of two programs from Jon Williams. The program displays two Hex bytes onto the display. Converting these two combined Hex bytes yields the correct room temp so I know that the program and circuit is working correctly. My program is attached. I would like to display the temp in Decimal on the LCD. I think I can do the math conversion but I'm not sure how to send a Decimal Word variable to the LCD. I searched the forums and found a routine posted by Bean, it is also attached. I know that it will convert a 16bit number into decimal but I don't know how I would call this routine, and then send what it returns to the LCD.
Any help is greatly appreciated.
Mike
I have an LTC1298 and an LM34 along with a BPI-216 LCD connected up to my SX Tech board. I have combined parts of two programs from Jon Williams. The program displays two Hex bytes onto the display. Converting these two combined Hex bytes yields the correct room temp so I know that the program and circuit is working correctly. My program is attached. I would like to display the temp in Decimal on the LCD. I think I can do the math conversion but I'm not sure how to send a Decimal Word variable to the LCD. I searched the forums and found a routine posted by Bean, it is also attached. I know that it will convert a 16bit number into decimal but I don't know how I would call this routine, and then send what it returns to the LCD.
Any help is greatly appreciated.
Mike
Comments
Your routines are just what I needed. I appreciate your help.
Thanks,
MikeS