Jump to content
43oh

pins_energia.h change SPI to USCIB0 to USCI A0


Recommended Posts

Hey Guys,

I am new user of Energia. Currently, I am using MSP430G2553 chip to write data in SD card.  I found code that works on USCIB0 SPI communication. Here is the link   for the code. This code works completely fine. But, I wanted to know how can I change the code to use USCIA0 SPI instead of USCIB0 to do this?

 

I tried going into pins_energia.h and just changing the pins. But it didn't work. Can anybody help me with this problem?

 

Here is port assignment for different SPI buses 
USCIB0: (Code is using it)
 P1.6 -> master in slave out (MISO)
 P1.7 -> master out slave in (MOSI)
 P1.4 -> slave transit enable
 P1.5 -> clock input
 
USCIA0: (This is what we want to use)
 P1.1 -> master in slave out (MISO)
 P1.2 -> master out slave in (MOSI)
 P1.5 -> slave transit enable
 P1.4 -> clock input
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.

×
×
  • Create New...