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

pins_energia.h change SPI to USCIB0 to USCI A0

$
0
0

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

Viewing all articles
Browse latest Browse all 2077

Trending Articles