DRV8704: SPI code sample
Part Number: DRV8704
There is conflicting message on datasheet of the DRV8704 about the SCS PIN which I have highlighted on the attached picture.
When sending a SPI command/ message does the SCS PIN need to be HIGH or LOW?
From the diagram it seems to be high but the text says:
"To complete the read or write transaction, SCS must be set to a logic 0."
Is there any example code that shows SPI read operations for DRV8704 for Code Composer ?
SCS must be high when sending a command to the DRV8704. To complete the command, SCS should transition from high to low.
Please see the thread: https://e2e.ti.com/support/motor-drivers/f/38/t/620828 for an example scope capture.
Also the firmware for the DRV8711EVM can be used as a code example. The operation of the SPI is very similar to the DRV8704.
The firmware can be found here:
Rick DuncanMotor Applications Team
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.