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.

SPI compatibility with PIC32 microcontroller?

The Microchip PIC32MX795 microcontroller SPI interface can be setup for 8,16 & 32 bit data format.  Ti's A/D & D/A are 24 bit.  Does anyone know if the data converters would support the microcontrollers 8 bit interface (and just send 3 bytes at a time)?

 

Thanks,

Joe B.

PS:  We are using the 7760 & 7716.

  • Joe,


    I'm not a microcontroller expert, but I don't think this would be a problem. I've seen plenty of posts here that talk about using PIC32s for communications with different ADCs.


    Joseph Wu
  • Hi Joe,

    Just adding one piece of information to Joseph's comments.  You can communicate to the dataconverters in bytes, but you must be careful that CS remains low throughout the entire communication transaction.  This is best accomplished by controlling the CS with a GPIO instead of the SS pin of the SPI peripheral.  The peripheral SS pin will follow the length of the assigned data format instead of the command/data length being issued for the dataconverter.

    Best regards,

    Bob B

  • Thanks Bob....that's how I am operating it, just haven't been able to get it going yet (compiler issues now).

     

    Thanks again,

     

    Joe B.