MC34VR500 PMIC register read or write protocol via I2C

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC34VR500 PMIC register read or write protocol via I2C

1,122 次查看
habibfarahani1
Contributor I

I am using a MC34VR500 PMIC in my current QorIQ based HW.  The interface layer is I2C.  Does anyone know how to read or write registers to this part? PMIC I2C MC34VR500 #QorIQls1024A

标记 (4)
0 项奖励
回复
2 回复数

973 次查看
Pavel
NXP Employee
NXP Employee

NXP SDK for i.mx contains drivers for PMIC using. See attached file.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

973 次查看
habibfarahani1
Contributor I

A little bit more info:  It seems that i2c_c2k.c bundled in barebox does not issue a restart condition needed for PMIC to place the contents of a register.  However, upon issuing a restart the bus hangs  after the first clock cycle (rather than 9) with SCL and SDA being held low. According to Register Manual:

"NOTE: To restart transmission as soon as possible, set the STP bit to 1 to clear the bus
error and the STA bit to 1 to re-start transmission at the same time: transmission
will then re-start as soon as the bus becomes available."

0 项奖励
回复