Hi,
I cannot seem to get the readtemp command to work with my 28X1. I didn't bother attaching a photo of my setup because I'm using an AXE091 development board - and there is only one wire connected: From the TMP pin to the 28X1's ADC0 channel (Pin2). I figure even I can't mess up one wire.....
This is my very simple code:
The debug screen b0 value never changed from 0...
Just for experimentation, I installed an 08M onto the AXE091 and connected the jumper from the TMP pin to the 08M's Pin6 (ADC1 channel) and ran this code:
As expected, the debug screen b0 value read 21 and increased as I put my finger on the DS18B20 showing that it is responding...
I then tried a 18M2 chip, jumper from TMP to Pin18 (C.1 ADC) and ran this code:
As with the 08M, the b0 value showed 21 and responded to my finger touch
I also tried a 20M chip - and it worked too...
I then retried my 28X1 code, using a different 28X1 chip - to rule out a bad chip.. Nothing, b0 remained at 0...
Manual 2 page 184's READTEMP description shows that this command works on a 28X1, so I assume I'm missing something really simple, but I can't figure out what.
What am I not seeing / understanding ??
Thanks, John.
I cannot seem to get the readtemp command to work with my 28X1. I didn't bother attaching a photo of my setup because I'm using an AXE091 development board - and there is only one wire connected: From the TMP pin to the 28X1's ADC0 channel (Pin2). I figure even I can't mess up one wire.....
This is my very simple code:
Code:
main:
readtemp 0, b0
debug
goto main
Just for experimentation, I installed an 08M onto the AXE091 and connected the jumper from the TMP pin to the 08M's Pin6 (ADC1 channel) and ran this code:
Code:
main:
readtemp 1, b0
debug
goto main
I then tried a 18M2 chip, jumper from TMP to Pin18 (C.1 ADC) and ran this code:
Code:
main:
readtemp c.1, b0
debug
goto main
I also tried a 20M chip - and it worked too...
I then retried my 28X1 code, using a different 28X1 chip - to rule out a bad chip.. Nothing, b0 remained at 0...
Manual 2 page 184's READTEMP description shows that this command works on a 28X1, so I assume I'm missing something really simple, but I can't figure out what.
What am I not seeing / understanding ??
Thanks, John.