S32k358 reading analog input from BJB

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

S32k358 reading analog input from BJB

179 次查看
primo
Contributor I

Hello,

I am currently researching the application of the BJB. According to the datasheet, the 772C chip uses GPIO (0-3), CT1 as the measurment pin, or analog input. Meanwhile, it uses GPIO (4-6) as the "control signal". 

I am a bit of confused by the term "control signal". So if i am about to the read the Charger(+) and Charger(-) input, which is stated to be "controlled" by GPIO4 of AFE 2, does that mean I have to set the GPIO4 as digital out in s32config tool, and use the block "gpio_config","set_gpio_output", then use the "get_gpio_input" to read the analog input voltage?

For the 774a example, the analog input measurement is taken care of by the command "msr_get_data.  So i was also wondering if it is the same case for 772c.

Thank you for the help.

0 项奖励
回复
0 回复数