AnsweredAssumed Answered

How to measure battery Voltage usin Vsense pin in MC9S12ZVH.

Question asked by Rajni Rajpoot on Jul 18, 2017
Latest reply on Jul 25, 2017 by Radek Sestak


I am writing new software on MCU S12ZVH128 -144 and I want sense battery voltage (8-24V).I am using MCU pin no 86.


I have configured BATS component using processor expert and routed Vsense to ADC .But the ADC count  I am getting are very low not able to understand how to calculate voltage using it .  


Observation as below

Input voltage     Volatage at pin     Received ADC count

9                                              5.7                          142

10                                           6.3                          158

12                                           7.6                          190

14                                           8.9                          222                        

16                                           10.2                        254        

18                                           11.48                     284        


Snap shot of CKt connected  with Vsense

Please suggest where I am doing wrong??