mc9s12vr48 Freescale Semiconductor, Inc, mc9s12vr48 Datasheet - Page 451

no-image

mc9s12vr48

Manufacturer Part Number
mc9s12vr48
Description
S12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
1
16.3.2.5
16.4
16.4.1
The BATS module allows measuring voltages on the VSENSE and VSUP pins. The VSENSE pin is
implemented to allow measurement of the supply Line (Battery) Voltage V
device supply capacitor and the external reversed battery protection diode this pin allows to detect
under/over voltage conditions without delay. A series resistor (R
VSENSE pin from fast transients.
The voltage at the VSENSE or VSUP pin can be routed via an internal voltage divider to an internal Analog
to Digital Converter Channel. Also the BATS module can be configured to generate a low and high voltage
interrupt based on VSENSE or VSUP. The trigger level of the high and low interrupt are selectable.
In a typical application, the module could be used as follows: The voltage at VSENSE is observed via
usage of the interrupt feature (BSESE=1, BVHIE=1), while the VSUP pin voltage is routed to the ATD to
allow regular measurement (BSUAE=1).
Freescale Semiconductor
Read: Anytime
Write: Only in special mode
Reset
BVHIF
BVLIF
Field
W
1
0
R
Module Base + 0x0006
Module Base + 0x0007
Functional Description
Reserved
General
Reserved Register
7
x
BATS Interrupt Flag High Detect — The flag is set to 1 when BVHC status bit changes.
0 No change of the BVHC status bit since the last clearing of the flag.
1 BVHC status bit has changed since the last clearing of the flag.
BATS Interrupt Flag Low Detect — The flag is set to 1 when BVLC status bit changes.
0 No change of the BVLC status bit since the last clearing of the flag.
1 BVLC status bit has changed since the last clearing of the flag.
These reserved registers are designed for factory test purposes only and are
not intended for general user access. Writing to these registers when in
special mode can alter the module’s functionality.
Reserved
x
6
Table 16-5. BATIF Register Field Descriptions
MC9S12VR Family Reference Manual, Rev. 2.2
Preliminary - Subject to Change Without Notice
Reserved
Figure 16-8. Reserved Register
5
x
Reserved
NOTE
4
x
Description
Reserved
x
3
VSENSE_R
Reserved
BAT
) is required to protect the
2
x
Supply Voltage Sensor - (BATSV2)
directly. By bypassing the
Reserved
Access: User read/write
x
1
Reserved
x
0
451
1

Related parts for mc9s12vr48