mc9s12vr48 Freescale Semiconductor, Inc, mc9s12vr48 Datasheet - Page 452

no-image

mc9s12vr48

Manufacturer Part Number
mc9s12vr48
Description
S12 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
16.4.2
This section describes the interrupt generated by the BATS module. The interrupt is only available in CPU
run mode. Entering and exiting CPU stop mode has no effect on the interrupt flags.
To make sure the interrupt generation works properly the bus clock frequency must be higher than the
Voltage Warning Low Pass Filter frequency (f
The comparator outputs BVLC and BVHC are forced to zero if the comparator is disabled (configuration
bits BSESE and BSUSE are cleared). If the software disables the comparator during a high or low Voltage
condition (BVHC or BVLC active), then an additional interrupt is generated. To avoid this behavior the
software must disable the interrupt generation before disabling the comparator.
The BATS interrupt vector is named in
MCU level.
The module internal interrupt sources are combined into one module interrupt signal.
16.4.2.1
To use the Voltage Low Interrupt the Level Sensing must be enabled (BSESE =1 or BSUSE =1).
If measured when
or when
or when
or when
then BVLC is set. BVLC status bit indicates that a low voltage at the selected pin is present. The Low
Voltage Interrupt flag (BVLIF) is set to 1 when the Voltage Low Condition (BVLC) changes state . The
Freescale Semiconductor
Module Interrupt Source
a) V
b) V
c) V
d) V
BATS Interrupt (BATI)
at selected pin V
at selected pin V
at selected pin V
at selected pin V
Interrupts
LBI1
LBI2
LBI3
LBI4
BATS Voltage Low Condition Interrupt (BVLI)
selected with BVLS[1:0] = 0x0
selected with BVLS[1:0] = 0x1
selected with BVLS[1:0] = 0x2
selected with BVLS[1:0] = 0x3
measure
measure
measure
measure
MC9S12VR Family Reference Manual, Rev. 2.2
Preliminary - Subject to Change Without Notice
Table 16-6. BATS Interrupt Sources
< V
< V
< V
< V
BATS Voltage High Condition Interrupt (BVHI)
BATS Voltage Low Condition Interrupt (BVLI)
Table
LBI1_A
LBI2_A
LBI3_A
LBI4_A
Module Internal Interrupt Source
16-6. Vector addresses and interrupt priorities are defined at
VWLP_filter
(falling edge) or V
(falling edge) or V
(falling edge) or V
(falling edge) or V
).
measure
measure
measure
measure
< V
< V
< V
< V
LBI1_D
LBI2_D
LBI3_D
LBI4_D
Supply Voltage Sensor - (BATSV2)
(rising edge)
(rising edge)
(rising edge)
(rising edge)
Local Enable
BVHIE = 1
BVLIE = 1
452

Related parts for mc9s12vr48