Jump to content
Sign in to follow this  
Stunts1337

SPI Change Clock Phase

Recommended Posts

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!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...