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.

AFE031: using AFE031 with different MCu's

Part Number: AFE031

hello,

I've searched online and couldn't find any documentation on how to configure AFE031 in DAC , PWM modes or let's say i can't program the AFE031.

So , is it possible to use AFE031 with other MCU's along with coupling circuitry to perform PLC? if yes, how do i program the AFE031 using SPI.

thanks

  • Hi Raviteja,

    It's true that most, if not all of the designs we provide for the AFE031 incorporate a C2000 microcontroller but you can use whatever MCU you would like. The AFE031 uses a standard four-wire Serial Peripheral Interface. You just need to make sure you abide by the timing requirements and frame your data appropriately. If you want to configure the DAC this is illustrated on page 28-29 of the datasheet.

    "The DAC block consists only of the 10-bit DAC. The use of the DAC is recommended for best performance. The serial interface is used to write directly to the DAC registers when the DAC pin (pin 7) is driven high. Placing the DAC pin into a high state configures the SPI for direct serial interface to the DAC. Use the following sequence to write to the DAC:
    • Set CS low.
    • Set the DAC pin (pin 7) high.
    • Write a 10-bit word to DIN. The DAC register is left-justified and truncates more than 10 bits.
    • CS high updates the DAC."

    For the AFE031 data and control registers, refer to pages 35-38. Successful communication requires you to frame your data accordingly. Note, there is a typo in the datasheet and a host SPI frame should actually consist of a R/W bit, a 7-bit register address, and 8 data bits. Here is another post that you may find useful: e2e.ti.com/.../270109