what about if you disable your a/d at the begining of your program HIGH ADcs ... don't forget all pins are supposed to be low at the begining so your adc consider that he is enable.
BUT chances are that you don't set the TRIS for your adc, in this case, the ADcs pin is set as an input and floating. It this case, it can give enough highlevel signal to disable your ADC... this why your PAUSE 4 is handy in your case.
I'm really not sure if it's a good practice to use bit shift in a SHIFTOUT statement.
AND some a/d may need few mSec pause between SHIFTOUT and SHIFTIN... let the time to convert properly. Pause 10 can be good... see your a/d datasheet for that issue.
Last edited by mister_e; - 22nd February 2005 at 06:25.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks