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.

MSP430g2553 LP55231 Interface

Other Parts Discussed in Thread: LP55231, MSPWARE, TMP100, PCF8574, DAC8571, MSP430G2553

hi all....,

          I am new to the embedded field.i did not find any sample code to interface msp430 with lp55231.Do anyone have the sample code???Can you please kindly provide me if available? Many thanks!!!

  • Hi!

    You won't find "the sample code" because everyone writes the code he needs for his own application. Having a look at the datasheet at page 17, point 7.5 Programming, you will find everything you need to get this IC working.

    Dennis

  • i cannt find the driver for msp430 with lp55231
  • Can you share the driver for me ? Many thanks!!!
  • There is no driver - you have to control it with data over the I2C bus. Everything given in the datasheet.

    Dennis
  • To control the LP55231 you need to setup an I2C communication interface. Examples for I2C communication software can be found in MSPWare.
    If you are using Code Composer Studio (CCS) you can add MSPWare to your CCS installation (Add-on) trough ‘View\CCS App Center’. Or open MSPWare in your Browser or download the Desktop version, both can be found at the product page of you device or EVM/LaunchPad.
  • Leo is correct.

    In addition here are examples for your processor:

    Interesting for you:

    • msp430g2xx3_uscib0_i2c_01.c                USCI_B0 I2C Master to TMP100, Set P1.0 if Temp > 28C
    • msp430g2xx3_uscib0_i2c_02.c                USCI_B0 I2C Master Interface to PCF8574, Read/Write
    • msp430g2xx3_uscib0_i2c_03.c                USCI_B0 I2C Master Interface to DAC8571, Write

    Have a look at them and set up the basic I²C functionality for the MSP430G2553. Then look in the datasheet of the LP55231 - chapter 7.5 describes the programming of the device. It tells you what to send to the LED driver and the meaning of the register content.

    Dennis

**Attention** This is a public forum