Jump to content
43oh

msp430f5529 and anaren AIR boosterpack on different spi port


Recommended Posts

Hi,

 

I'd like to connect the anaren AIR boosterpack to the launchpad msp430f5529 but not on the standard SPI port.

 

what should I change in the code in order to use a different port?

For example: 

4_0 CS

4_1 MOSI

4_2 MISO

4_3 SCK

 

thank you

 

Link to post
Share on other sites

I should have been a bit more clear (don't know if the response was directed at the op or me.) I was referring to spi in general about what pins can be used on the micrcontroller's side; you usually can't change what pins a slave device uses.  

Link to post
Share on other sites

Most MSP430's use a hardware peripheral called USCI (Universal Serial Communications Interface) to offload SPI interfacing a bit. There are 2 flavors of USCI - USCI_A (SPI & RS232-style UART) and USCI_B (SPI & I2C). You should study the chip's datasheet to determine which pins are mapped to what available USCI instances. There can be multiple of each flavor, e.g. USCI_A0 vs USCI_A1, or USCI_B0 vs USCI_B1. Fwiw, the CS pin doesn't matter since from the master side it's just a GPIO that gets toggled by your library or application.

 

Sent from my Galaxy Note II with Tapatalk 4

Link to post
Share on other sites

Thank you for the answers.

I'll re-route the the pins.

The problem is understand what change in the code in order to use a different SPI port.

For example: 

4_0 CS

4_1 MOSI

4_2 MISO

4_3 SCK

Please see the msp pinout: http://energia.nu/img/LaunchPadMSP430F5529.jpg

 

I'll try the code discussed here: https://github.com/energia/Energia/issues/298 (thank you @nickn)

 

Thank you.

Link to post
Share on other sites

Nothing in the code will let you use different pins since the booster pack is hard wired to use certain pins.

You are limited to using those pins unless you choose to cut traces and re-route signals elsewhere.

You could also simply wire the whole boosterpack to the launchpad, then you have the freedom to connect. It only needs SPI, an interrupt PIN and plus/minus I think.

 

cheers

CorB

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...