We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hey all, I have a problem reading the data from the ADC. I send (in SPI) and order to the ADC to read the analog data from CH0, by using scoop on DOUT pin (the digital data that the ADC sampled streams out through that pin) the data on the scoop not changing its look like the ADC doesn't sampling anything. the code:
SPCON=0x71; while(1) {
SPDAT=0x87 //CHANNEL 0 while(!(SPSTA&0x80)); //waiting to finish TX }
Thank you very much for your help!