Other Parts Discussed in Thread: C2000WARE,
Hello,
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.
Hello,
Hi Kailyn,
How to solve this question?
Yes, we have many customers who use MCU to communicate with AFE031 in their PLC controller product. It is likely that the SPI protocol is not configured properly.
SPI has two modes, see see the AFE031's datasheet, also the link below.
Please ask the software engineer to write a small program and test his read/write code via AFE031's registers via SPI protocol. I think that the SPI protocol is specific to TI and I recalled that SPI code implementation may be slightly different from others.
There may be some differences between MCU and DSP processors to setup the SPI configurations. In the link below, there are some instructions in how to configure AFE031. Although this is specific to C2000 DSP processor, the overall procedure should be still correct for MCU processor.
https://www.ti.com/lit/an/sprac94d/sprac94d.pdf?ts=1705429676956
If you have other questions, please let us know. I can always transfer you to C2000 engineer for software related questions.
Best,
Raymond
Hi Raymond,
Thank you for your reply. The customer configured only the RESET register, reading DIE_ID and REVISON are the default value, writing and reading other registers are all normally, he configured them according to the AFE031 user's guide, and after configuration, he could also read the correct registers.
Best regards
kailyn
Hi Kailyn,
Thanks for your feedback!
Please let us know if you need additional assistant. AFE031 is a great PLC controller, its building blocks are unique, and may be selected or deselected according to the PLC application. Below is the AFE03 1 EVM and it will be easier if the customer is using the board.
https://www.ti.com/lit/ug/sbou223/sbou223.pdf?ts=1705602264198
I am going to close the inquiry for now. If you have other questions, please do not hesitate to contact me.
Best,
Raymond