Chapter 10 Supply Voltage Sensor - (BATSV3)MC9S12ZVMB Family Reference Manual Rev. 1.3366 NXP SemiconductorsThe comparator outputs BVLC and BVHC are forced to zero if the comparator is disabled (configurationbit BSUSE is 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 softwaremust disable the interrupt generation before disabling the comparator.The BATS interrupt vector is named in Table 10-6. Vector addresses and interrupt priorities are defined atMCU level.The module internal interrupt sources are combined into one module interrupt signal.10.4.2.1 BATS Voltage Low Condition Interrupt (BVLI)To use the Voltage Low Interrupt the Level Sensing must be enabled (BSUSE =1).If measured whena) VLBI1 selected with BVLS[1:0] = 0x0Vmeasure VLBI1_A (falling edge) or Vmeasure V LBI1_D (rising edge)or whenb) VLBI2 selected with BVLS[1:0] = 0x1 at pin VSUPVmeasure VLBI2_A (falling edge) or Vmeasure V LBI2_D (rising edge)or whenc) VLBI3 selected with BVLS[1:0] = 0x2Vmeasure VLBI3_A (falling edge) or Vmeasure V LBI3_D (rising edge)or whend) VLBI4 selected with BVLS[1:0] = 0x3Vmeasure VLBI4_A (falling edge) or Vmeasure V LBI4_D (rising edge)then BVLC is set. BVLC status bit indicates that a low voltage at pin VSUP is present. The Low VoltageInterrupt flag (BVLIF) is set to 1 when the Voltage Low Condition (BVLC) changes state . The Interruptflag BVLIF can only be cleared by writing a 1. If the interrupt is enabled by bit BVLIE the module requestsan interrupt to MCU (BATI).10.4.2.2 BATS Voltage High Condition Interrupt (BVHI)To use the Voltage High Interrupt the Level Sensing must be enabled (BSUSE=1).Table 10-6. BATS Interrupt SourcesModule Interrupt Source Module Internal Interrupt Source Local EnableBATS Interrupt (BATI) BATS Voltage Low Condition Interrupt (BVLI) BVLIE = 1BATS Voltage High Condition Interrupt (BVHI) BVHIE = 1