SLAA908A September 2019 – September 2021 MSP430FR2032 , MSP430FR2032 , MSP430FR2033 , MSP430FR2033 , MSP430FR2153 , MSP430FR2153 , MSP430FR2155 , MSP430FR2155 , MSP430FR2310 , MSP430FR2310 , MSP430FR2311 , MSP430FR2311 , MSP430FR2353 , MSP430FR2353 , MSP430FR2355 , MSP430FR2355 , MSP430FR2422 , MSP430FR2422 , MSP430FR2433 , MSP430FR2433 , MSP430FR2475 , MSP430FR2475 , MSP430FR2476 , MSP430FR2476 , MSP430FR4131 , MSP430FR4131 , MSP430FR4132 , MSP430FR4132
This firmware was tested using EEPROM as the I2C slave device to verify the correctness of the firmware by reading and writing the EEPROM. The EEPROM address is 0x50. Figure 6-4 to Figure 6-7 show the read and write format.
The firmware first sets the I2C clock frequency to 100 kHz and sets the UART baud rate to 115200 by writing the internal registers (Figure 6-8 shows the UART commands to read and write the internal register values). For the write test, the firmware writes 64 bytes of data to the EEPROM starting at address 0x0000. For the read test, the firmware reads 64 bytes of data starting at address 0x0000.
Figure 6-8 shows the UART data commands to write to and read from the internal registers.
The write command is composed of these bytes:
The read command is composed of these bytes:
The final four bytes in the last row of Figure 6-8 are the values of the registers specified in the read command.
Figure 6-9 shows the UART commands to read and write the EEPROM.
The write command is composed of these bytes:
The read command is composed of these bytes:
Figure 6-9 shows that the read data is the same as the write data.