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.

MSP430G2231 and MSP4302452 USI

Other Parts Discussed in Thread: MSP430G2231

Hi,

Im new to TI's micro controlers.
I can't find information about USI module capabilities to be I2C master. I plan to use MSP430G2231 and MSP4302452 microcontrolers.
I'm interested about USI module as I2C master/slave and SPI master/slave. I will need mostly master functionality, but may be sometimes as slave.
Is it posible to setup USI as master (both SPI and I2C) or not?
Which MCU's can be master if those two can't ?

  • Yes, the USI is suitable for master and slave operation in I2C and SPI modes.  Here is an outline view of the relevant chapter in the x2xx User's Guide:

    In MSP430, there is a User's Guide for an entire family (G2xxx and F2xxx all use the x2xx User's Guide).  There is also a data sheet specific to your selected processor.  Often the data sheet applies to only a few of the many many models in the family.

    Jeff

  • In MSP430g2231, u can use USI for both master and slave operation in I2C and SPI....

    good luck

  • Mario Simunic said:
    Is it posible to setup USI as master (both SPI and I2C) or not?

    Sure, and it is the more easy part,a s you as master control the timing. Including when to start and continue a transmission. Slave is possible but the timing is critical.

    If you don't need a specific feature that can only be done with USI (such as SPI transfer with more/less than 8 bit per transfer, or specific I2C NACK control), you should better go for an MSP with USCI module. Here you not only can do SPI and I2C at the same time (or 2* SPI or UART and I2C), you have much better hardware-level support including double-buffering of input/output, which significantly relaxes timings (except for SPi slave) and makes handling way more comfortable.

    The MSP430G2xx3 chips have an USCI module.

**Attention** This is a public forum