chopperwalker
New Member
I added and LM34DZ for temperature to ADC9 (C.1) on my 20X2. I tried it on ADC1 (B.0) first and got an error which I didn't resolve and resulted in the move. I have since added another LM34DZ sensor and only have one ADC left (ADC1 - B.0). Ofcourse the error is back
My relevant code up thru the error:
The carrot above is actually off the right of CurTemp (paste issue)readadc10 Therm2,CurTemp
^
Error: ADC channel 0 does not exist!
My relevant code up thru the error:
Oddly the error says ADC channel 0 DNE, but im trying to use ADC1. I also noticed that the manual doesn't show a ADC0 for the 20X2. I assume this might be related. Has anyone seen this before? Couldn't find anything in the threads about it.Symbol Therm2 = B.0 'Thermometer input
...
let adcsetup = %0000001000000010 'set ADC9 and ADC1
...
readadc10 Therm2,CurTemp