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.

CCS/CC430F6137: If change SPI communication interface pins are possible

Part Number: CC430F6137

Tool/software: Code Composer Studio

Sir,

I am using  your example code for cc430x613x_uscia0_spi_10.c. this code, SPI communication interface to port pins are P2.0,P2.2 and P2.4. but I am using this pins for ADC (sensor interfacing) purpose. 

If possible to interface  SPI Comunication for another port pins? Could you please send soon,

  • Hello,

    The best part about having a configurable MCU handling your serial communication is that there are usually multiple pins on the device that can be used to get the same job done. In the case of the device that you are using, there seems to be two different USCI blocks that can both support SPI.

    Table 4-1 in the device's datasheet gives a detailed description of what functions are mapped to each pin on the device. All you have to do is a quick text search in that chart to see all of the pins that have SPI capabilities and select the module that is available in your application. Once you find the USCI module you'd like to use ( USCI_A0 or USCI_B0 ), you can then go into the source code and configure the peripheral and port pins accordingly.

    Best regards,

    Matt