S12ZVHY/S12ZVHL Family Reference Manual Rev. 1.05
Freescale Semiconductor
741
Chapter 22
Supply Voltage Sensor - (BATSV2)
22.1
Introduction
The BATS module provides the functionality to measure the voltage of the battery supply pin VSENSE or
of the chip supply pin VSUP.
22.1.1
Features
Either One of the voltage present on the VSENSE or VSUP pin can be routed via an internal divider to the
internal Analog to Digital Converter. Independent of the routing to the Analog to Digital Converter, it is
possible to route one of these voltages to a comparator to generate a low or a high voltage interrupt to alert
the MCU.
22.1.2
Modes of Operation
The BATS module behaves as follows in the system power modes:
1. Run mode
The activation of the VSENSE Level Sense Enable (BSESE=1) or ADC connection Enable
(BSEAE=1) closes the path from the VSENSE pin through the resistor chain to ground and enables
the associated features if selected.
The activation of the VSUP Level Sense Enable (BSUSE=1) or ADC connection Enable
(BSUAE=1) closes the path from VSUP pin through the resistor chain to ground and enables the
associated features if selected.
BSESE takes precedence over BSUSE. BSEAE takes precedence over BSUAE.
2. Stop mode
During stop mode operation the path from the VSENSE pin through the resistor chain to ground is
opened and the low voltage sense features are disabled.
Table 22-1. Revision History Table
Rev. No.
(Item No.)
Data
Sections
Affected
Substantial Change(s)
V01.00
15 Dec 2010
all
Initial Version
V02.00
16 Mar 2011
- added BVLS[1] to support four voltage level
- moved BVHS to register bit 6