28.1. Pmbus master

28.1.1. Overview

  • The PMbus Master example project demonstrates the I2C interface operating in master mode to function as a PMbus controller for transmitting and receiving data. It repeatedly sends different PMbus commands (byte, word, and block instructions) and prints the length of the read/written data or error codes.

28.1.2. Tips

  • For detailed documentation about PMbus components, please refer to pmbus

28.1.3. Board Setting

  • Connect the I2C pins between two boards.

28.1.4. Running the example

  • Run the slave firmware first, followed by the master.

  • When the project runs correctly, the serial terminal will display output similar to the following

PMbus master test
pmbus master write test begin...
pmbus master write test end...

pmbus master read test begin...
pmbus(cmd:0x00) master read len:1
pmbus(cmd:0x06) master read len:128
pmbus(cmd:0x22) master read len:2
pmbus master read test end...