This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interfacing AT89C5130A with ADS7844(adc)

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!