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.

MSP430Fxxx family I2C question

Other Parts Discussed in Thread: MSP430F2001, MSP430G2121, MSP430G2102

Hi,

I am considering using the MSP430Fxxx family chips. My plan is to use different model per functional requirements. The issue is that the lowest price model doesn't support I2C nor SPI.

Is there any code / library which implementd I2C / SPI with GPIOs for the MSP430F2001?

Thx

  • Hi ECH12!

    I do not have example code for that, but this really isn't difficult at all.
    But why don't you have a look at the MSP430G2102 or the MSP430G2121? Both have I²C and SPI and aren't more expensive.

    Dennis

  • Thx!

    From first look seems interesting and I am not mistaken, they have the same pinout die size (Am I right). What is the main difference between the F & G family?

    Thx
  • Actually there isn't really a difference. It's just TI's low cost "value line" MCUs. In general these are only smaller devices, having less memory and less peripherals. Small MCUs for beginners and for smaller projects (although the G2955 has 56k - not that small). But these MCUs are the same as the F series, they even share the same user's guide which means same behaviour, register names and settings.

    Dennis
  • For 1x family, I've implemented I2C in software., as the provided I2C support in 1x family was too complex and not really suitable for my purpose (focused on large storage transfers rather than simple one-byte write and read operations). For I2C master, this is quite simple. I even did it for the C64 (1MHz 8bit CPU) many years ago, reaching 25kHz clock speed.
    For I2C slave mode, or interrupt-driven background transfers, hardware support for I2C is of course convenient. IIRC, even the smallest G series device ha an USI which supports some hardware support for I2C.

**Attention** This is a public forum