ilpaso 0 Posted May 21, 2014 Share Posted May 21, 2014 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 Quote Link to post Share on other sites
nickn 5 Posted May 25, 2014 Share Posted May 25, 2014 You can use just about any set of pins you want to use if you are willing to bit-bang (looking right now to see if there is a software spi library to do it for you.) I don't have an MSP430F5529 board myself but I looked it up and found this on GitHub: https://github.com/energia/Energia/issues/298 Looks like they are working on it. Quote Link to post Share on other sites
abecedarian 330 Posted May 25, 2014 Share Posted May 25, 2014 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. Quote Link to post Share on other sites
nickn 5 Posted May 26, 2014 Share Posted May 26, 2014 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. Quote Link to post Share on other sites
spirilis 1,265 Posted May 26, 2014 Share Posted May 26, 2014 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 Quote Link to post Share on other sites
ilpaso 0 Posted May 26, 2014 Author Share Posted May 26, 2014 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. Quote Link to post Share on other sites
CorB 64 Posted May 26, 2014 Share Posted May 26, 2014 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 Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.