Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/TMS570LC4357: MIBSPI Confusing SPI modes

$
0
0

Part Number:TMS570LC4357

Tool/software: Code Composer Studio

Why is the data sheet not clear on SPI modes?

SPI Normally has two bits to set parameters, CPOL and CPHA.

Normally, they are defined like this:

ModeCPOLCPHAInactive ClockMOSIMISO
000LowChanged on Falling EdgeChanged on Falling Edge
101LowChanged on Rising EdgeChanged on Rising Edge
210HighChanged on Falling EdgeChanged on Falling Edge
311HighChanged on Rising Edge

Changed on Rising Edge

It appears to me, what is called CPHA on this chip is actually nCPHA.

Is the data sheet correct in that you have to program CPOL=0, CPHA=1 to get SPI Mode 0?

The HALCoGen program should in this case avoid setting CPOL, CPHA as separate bits.

Instead you should have a setting for *SPI Mode* with a drop down list allowing you to set Mode 0,1,2,3..

You should probably update the data sheet so you explain how to program the MIBSPI/SPI into the four different SPI modes.


Viewing all articles
Browse latest Browse all 262198

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>