Hi, I'm trying to read the DS1621 temperature sensor on I2C using MSP430FR2433.
Is there any example of code (read/write registers of the I2C device) for the IAR ASEMBLER?
Anything helps!
Thanks,
Vitaly
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.
Hi, I'm trying to read the DS1621 temperature sensor on I2C using MSP430FR2433.
Is there any example of code (read/write registers of the I2C device) for the IAR ASEMBLER?
Anything helps!
Thanks,
Vitaly
Hi Vitaly,
You can download the Code Example for MSP430FR2433 here:
After extract the zip package, you could find the assembly example code in below folder. However, there is no example for I2C. You may need to take the SPI example code and the I2C example code in C program language, which could be found in the zip package, as your reference.
\slac700c\MSP430FR243x_MSP430FR253x_MSP430FR263x_Code_Examples\Assembly_IAR
Hi Vitaly,
There is no IAR assembly example code for I2C. You could take below SPI code example as reference and porting the I2C example code in C(\slac700c\MSP430FR243x_MSP430FR253x_MSP430FR263x_Code_Examples\C ) to assembly.
msp430fr243x_uscia0_spi_09.s43 eUSCI_A0, SPI 3-Wire Master Incremented Data
msp430fr243x_uscia0_spi_10.s43 eUSCI_A0, SPI 3-Wire Slave Data Echo
msp430fr243x_uscia0_spi_11.s43 eUSCI_A0, SPI 4-Wire Master Incremented Data
msp430fr243x_uscia0_spi_12.s43 eUSCI_A0, SPI 4-Wire Slave Data Echo
**Attention** This is a public forum