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 Configuration for Hercules TMS570LC43x

Other Parts Discussed in Thread: HALCOGEN, TDC7200

Hello, 

I am new with Halcogen and Hercules TMS570LC43x. 

I would like to configure the Hercules TMS570LC43x as an SPI master to access TDC7200. 

A basic transaction are:

- Read configuration (Write 8 bit command and Read 8 bit data)

- Write configuration (Write 8 bit command and Write 8 bit data)

- Read timer/ counter (Write 8 bit command and Read 24 bit data)

The maximum speed of SPI is 20MHz for TDC7200. 

My questions are:

- Is there any sample code or tutorial to configure a standard SPI for TMS570LC43x?

- Assume that TDC7200 can generate an interrupt pin to notice the data ready (data is always ready). Is this possible to fully utilize the bandwidth between two devices while TMS570LC43x can do another work?

Thank you.

--Truong

  • There are some MibSPI examples in HALCoGen, but they are for more complex operations using triggers or DMA. (In HALCoGen, select "Help"->"Help Topics"->"Examples".) For interfacing to the TDC7200, you can start by using the simple SPI mode configured with 16-bit  transfer using Clock phase= 1.