14.3(g) - Serial Communication on the MSP430: I2C - Writing One Byte to an I2C Slave

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 พ.ย. 2024

ความคิดเห็น • 10

  • @pere_gt__stgtsport5467
    @pere_gt__stgtsport5467 ปีที่แล้ว +1

    Thank you soo much Mr.LaMeres. Really.
    Made it work with MSP430FR2476 and generic DS3231 RTC board.

  • @MaximDybarskiy
    @MaximDybarskiy 3 ปีที่แล้ว +2

    I have been looking for these videos for like 5 years. Thank you!!!

  • @markysthemoose
    @markysthemoose 2 ปีที่แล้ว +1

    Excellent series. Just to make the quick (and well explained already!) comment, that to use and test this I2C code one needs the I2C device attached to the launchpad. Otherwise, there will be no pull-up resistors implemented, and the lines will be indeterminate. Brock did explain this earlier really well. Thanks again Brock.

  • @rafaelafreitas8764
    @rafaelafreitas8764 2 ปีที่แล้ว +1

    I recreated the example for another MSP and it worked fine! Thank you very much! Very well explained.

    • @vishnuvaradhanmoganarengam9234
      @vishnuvaradhanmoganarengam9234 ปีที่แล้ว

      hey Rafela i'm trying to implement I2C communication between two msp432's i can't make it work. Can you please guide me on how to do it

  • @dnyaneshvarsalve2984
    @dnyaneshvarsalve2984 3 ปีที่แล้ว

    hello Sir, Please make video on I2C communication with AT24C512
    and MSP430FR2355

  • @sorenschuler7209
    @sorenschuler7209 3 ปีที่แล้ว

    Tried the example. Worked great then attempted to build functions but struggle to get it to work.
    Your example is not practical.
    TI is zero help.

    • @dnyaneshvarsalve2984
      @dnyaneshvarsalve2984 3 ปีที่แล้ว

      working on TI's microcontroller felt like a waste of time

    • @sorenschuler7209
      @sorenschuler7209 2 ปีที่แล้ว

      Ok, so today I learned that the slave register is tricky. The sensor I am writing to is a MAX30102 and is addressed with 0xAE for write and 0xAF for read. If I write UCBI2CSA = 0xAE the write will fail resulting in a frame showing start+2F+NACK.
      To make it work correctly you must either provide a binary value UCBI2CSA = 0b1010111 leaving out he LSB.
      Or perform binary shift right i.e. UCBI2CSA = 0xAE >> 1.
      Why it works this way I am not sure but even if I mask the UCBI2CSA register i.e. UCBI2CSA |= it still will not work.
      Only with the binary value or the shift right will it work and deliver to the right slave address.
      On my logic analyzer I there for see 0x57 as the slave address which really means 0xAE.
      I guess this is a compiler interpretation issue.

  • @ahbushnell1
    @ahbushnell1 4 ปีที่แล้ว

    still no ground. I guess it's grounded back through the computer