This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS8332 communication

Other Parts Discussed in Thread: ADS8332

Hi,

I have some doubts in communication between ADS8332 and C8051f340.

Everytime I write CFR and then read it just receive 0xffff.

Is there any sample code about write/read ADS8332 register and read ADC value?

Best Regards!

xin liu

 

  • Hi xin liu,

    Welcome to our Fourm!  I''m sorry to say that we do not have any example code for using the ADS8332 with an 8051 processor.  By the documentation for the C8051F340, it appears as though that processor supports all four standard SPI modes.  You should configure the SPI peripheral for CKPOL = 1 and CKPHA = 0 as described in Figure 20.5 of the data sheet for the processor.  The ADS8332 would be a slave device with the interface connections shown in Figure 20.4.