SLAAEL4 September   2025 MSPM0C1104 , MSPM0C1106 , MSPM0G3507 , MSPM0G3519 , MSPM0L1306

 

  1.   1
  2. 1Description
  3. 2Required Peripherals
  4. 3Design Steps
  5. 4Design Considerations
  6. 5Software Flow Chart
  7. 6Required I2C Packet
  8. 7Application Code
  9. 8Additional Resources
  10. 9E2E

Required I2C Packet

Figure 6-1 and Figure 6-2 show the required I2C packet for proper communication using the I2C interface.

  • COMMAND: byte containing command to either change IO direction or set output pin state.
    • 0x1: set GPIO direction
    • 0x2: set output pin state
  • DATA: byte containing pin configuration
    • COMMAND = 0x1: 1 represents output, 0 represents input
    • COMMAND = 0x2: 1 represents output HIGH, 0 represents output LOW
Table 6-1 I2C Packet Breakdown
Function COMMAND DATA
Set GPIO direction 0x1 1: Output
0: Input
Set output pin state 0x2 1: High
0: Low
 I2C Write Packet Figure 6-1 I2C Write Packet
 I2C Read Packet Figure 6-2 I2C Read Packet