Skip to main content
Associate
December 5, 2024
Solved

Question about PMBUS Slave Data Handling on STM32G0B1

  • December 5, 2024
  • 1 reply
  • 749 views

Hi everyone,

I am working on an experiment using the STM32G0B1 NUCLEO board to implement the PMBUS slave functionality with the SMBUS middleware.

According to AN4502, the buffer in SMBUS_StackHandleTypeDef *pStackContext is described as being used for IO. I have a question regarding handling master requests. When the master sends a command to read the input voltage, such as PMBC_READ_VIN (0x88), at what point should the application layer populate the buffer with the data so that the master receives the correct value?

If anyone has experience with this or could provide example code, I would greatly appreciate your help.

Thank you!

Best answer by jackhung9527

I solved this issue, for example:

 

jackhung9527_0-1733470658650.png

 

 

jackhung9527_1-1733470691526.png

 

 

 

1 reply

jackhung9527AuthorBest answer
Associate
December 6, 2024

I solved this issue, for example:

 

jackhung9527_0-1733470658650.png

 

 

jackhung9527_1-1733470691526.png