From your code
Code:
readserial:
'serial setting of port rate: 9600; parity: none; stop Bit: 1'
Serin PORTA.4, 9600, datain
Return
RA.4 is an open drain pin. Try using another pin or use a pullup resistor.
I have no idea what command im supposed to be sending.
11+00+00+11 (temperature - command+highbyte+lowbyte+sum) according to the manual.
Is that 11 or #11 or 0x11 or what? - I've ried em all :-(
These numbers are in HEX according to the datasheet.
Also, there is a note in red in the datasheet that says
1. PWN_ON must be set to High to enable sensor.
I hope this helps
.
Robert
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks