This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F2274 SPI-A and SPI-B

Other Parts Discussed in Thread: MSP430F2274, CC2500

Hi,

 

I'm developing a projecto and I'm using the MSP430F2274 as main core. I have a microSD card and a MP3-Decoder connected to my MSP through SPI. I can manage individually without any problem the microSD card and the MP3-Decoder, I can manage with any problem the microSD card and the MP3-Decoder with the same SPI port (SPI-B), but I can't try to manage the microSD card through the SPI-A and the MP3-Decoder through SPI-B, because they don't works well.

 

I asking myself If is it posible to use both SPI modules in MSP430F2274?

 

Thanks for all.

Regards.

  • David Conde said:
    is it posible to use both SPI modules in MSP430F2274?

    Yes, with one exception. If oen of them is set for 4-wire mdoe, the other one cannot be used. (there are only 6 signal lines).

    Anoteh rthing to keep in mind: the interrupt vectors for both are shared. So you have to take care which of the two has caused the current interrupt. Or maybe both.

    YOu should more detailed describe your problems for futher analysis, and perhaps post the code.

    Don't forget to set the UCSYNC bit for the A module (for the B module it is permanently set, since both, SPI and I2C are synchronous). Else teh A module is running in UART mode and UCMODEx has a different meaning. (see th UART mode register description of UCA0CTL0)

  • I had an error but I think that it was because I managed the CC2500 (wireless comunication system) through a 4-wire spi. Monday I'm going to try to solve these problem with the information that you have post.

     

    Thanks for all.

    Regards.

  • David Conde said:
    I think that it was because I managed the CC2500 (wireless comunication system) through a 4-wire spi.

    The '3wire' and '4wire' options do not include the (usually required) CS line that selects the slave. Th e4th line is used in slave mode or multi-master mode only, to put the slave outputs into active/incactive state.
    If you're master, use 3wire mdoe (you still need one GPIO pin per slave for selecting the active slave).

  • David Conde said:
    I think that it was because I managed the CC2500 (wireless comunication system) through a 4-wire spi.

    The '3wire' and '4wire' options do not include the (usually required) CS line that selects the slave. Th e4th line is used in slave mode or multi-master mode only, to put the slave outputs into active/incactive state.
    If you're master, use 3wire mdoe (you still need one GPIO pin per slave for selecting the active slave).

**Attention** This is a public forum