
Originally Posted by
Frozen001
OK I have it reading the data correctly, it think:
I2CREAD PORTC.4, PORTC.3,%10010001 ,$0, [temph,templ]
temph is the first 8 bits, and templ is the next 8 bits.
temph is difined earlier as the first byte in the word temp, while templ is defined at the second byte in the word temp.
Now that I have the temperature reading, is thre a way to convert it to ascii characters so I can send them to my display?
Look at the modifiers listed in the Serial out routines, HEX, BIN, STR Etc. . . usually, if my poor memory serves me, data goes ascii without the modifiers, but go look at them anyway, also while you are checking those out look also at the DIG and DEC modifiers, they do good things too.
http://www.melabs.com/resources/pbpmanual/
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks