Quantcast
Channel: MSP430 Technical Forums
Viewing all articles
Browse latest Browse all 2077

SPI Change Clock Phase

$
0
0

Hi, I am trying to change the SPI clock phase for my project.  I am wondering if it is possible in energia.  Below is the corresponding data bits from the family guide that I have found:

 

RfKJtEy.png

 

I am trying to change the clock phase (bit 7) from the default 0 to 1, because that is what is required for the slave device (an ADF4002).

 

All I could find in energia were the following 3 functions to change other aspects of the SPI communication:

 

SPI.setClockDivider(SPI_CLOCK_DIV2);
SPI.setBitOrder(MSBFIRST);
SPI.setDataMode(SPI_MODE0);
 
On that note, does anyone know what the setDataMode function controls?
 
Thanks for any help!

Viewing all articles
Browse latest Browse all 2077

Trending Articles