S32k358 reading analog input from BJB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32k358 reading analog input from BJB

438件の閲覧回数
primo
Contributor II

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 返答(返信)