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.

MSP430F67791: How to access ADC register through SPI?

Part Number: MSP430F67791
Other Parts Discussed in Thread: MSP430F6779

Hi,

How we can access the ADC registers of the MSP430F6779 module for RAW data through SPI?

regards.

  • Hello Nikhitha,

    You would need to write a protocol (SPI commands), add them to your SPI state machine, then write code that process those commands to write to registers. If you are just looking for Data, this simplifies things as you only really need 1-2 commands, and you can preemptively store ADC data in a buffer. 

  • Hi Jace,

    Thanks for the reply,

    If you are just looking for Data

    Yes I am looking only for the data (RAW data) captured into the register.

    and In which registers RAW data is stores where i can find them.

    Regards.

  • Hello Nikhitha,

    ADC results are stored in the ADCxMEMy registers you set to each channel. You can utilize DMA to transfer to a buffer in memory or straight to SPI FIFO depending on how you write your application. Please see te ADC chapter in the TRM for more information. 

**Attention** This is a public forum