R01UH0822EJ0100 Rev.1.00
Page 127 of 1041
Jul 31, 2019
RX13T Group
8. Voltage Detection Circuit (LVDAb)
8.6
Interrupt and Reset from Voltage Monitoring 2
shows the procedures for setting bits related to the voltage monitoring 2 interrupt and voltage monitoring 2
reset.
shows the procedure for stopping bits related to the voltage monitoring 2 interrupt and voltage
monitoring 2 reset.
shows an example of operations for a voltage monitoring 2 interrupt. For the operation of
the voltage monitoring 2 reset, see
in
.
Note 1. Steps 1, 2, 5, and 6 are not required if operation is with the setting to select the voltage monitoring 2 interrupt
(LVD2CR0.LVD2RI = 0) and operation can be restarted by simply changing the settings of the LVD2CR1.LVD2IRQSEL and
LVD2IDTSEL[1:0] bits after monitoring is stopped or if restarting is in a case where the settings related to the voltage-detection
circuit were not changed after monitoring was stopped. When changes are to be made and operation is with the setting to select
the voltage monitoring 2 reset (LVD2CR0.LVD2RI = 1), proceed through all steps from 1 to 10.
Note 1. Step 3 is not required if operation is with the setting to select the voltage monitoring 2 interrupt (LVD2CR0.LVD2RI = 0) and
operation can be restarted by simply changing the settings of the LVD2CR1.LVD2IRQSEL and LVD2IDTSEL[1:0] bits after
monitoring is stopped or if restarting is in a case where the settings related to the voltage-detection circuit were not changed
after monitoring was stopped. When changes are to be made and operation is with the setting to select the voltage monitoring 2
reset (LVD2CR0.LVD2RI = 1), proceed through all steps from 1 to 5.
Table 8.4
Procedures for Setting Bits Related to the Voltage Monitoring 2 Interrupt and Voltage Monitoring 2
Reset
Step
Voltage Monitoring 2 Interrupt
Voltage Monitoring 2 Reset
1
Select the detection voltage by setting the LVDLVLR.LVD2LVL[1:0] bits.
2
Set the LVD2CR0.LVD2RI bit to 0 (voltage monitoring 2
interrupt).
Set the LVD2CR0.LVD2RI bit to 1 (voltage monitoring 2
reset).
Select the type of reset negation by setting the
LVD2CR0.LVD2RN bit.
3
Select the timing of interrupt requests by setting the
LVD2CR1.LVD2IDTSEL[1:0] bits.
Select the type of interrupt by setting the
LVD2CR1.LVD2IRQSEL bit.
—
4
—
Set the LVD2CR0.LVD2RIE bit to 1 (voltage monitoring 2
interrupt/reset enabled).
Set the LVCMPCR.LVD2E bit to 1 (voltage detection 2 circuit enabled).
Wait for at least Td
(E-A)
.
7
Set the LVD2CR0.LVD2CMPE bit to 1 (voltage monitoring 2 circuit comparison results output enabled).
8
Wait for at least 2 µs.
—
9
Set the LVD2SR.LVD2DET bit to 0.
—
10
Set the LVD2CR0.LVD2RIE bit to 1 (voltage monitoring 2
interrupt/reset enabled)
—
Table 8.5
Procedures for Stopping Bits Related to the Voltage Monitoring 2 Interrupt and Voltage Monitoring
2 Reset
Step
Voltage Monitoring 2 Interrupt
Voltage Monitoring 2 Reset
1
Set the LVD2CR0.LVD2RIE bit to 0 (voltage monitoring 2
interrupt/reset disabled).
—
2
Set the LVD2CR0.LVD2CMPE bit to 0 (voltage monitoring 2 circuit comparison results output disabled).
3
Set the LVCMPCR.LVD2E bit to 0 (voltage monitoring 2 circuit disabled).
4
—
Set the LVD2CR0.LVD2RIE bit to 0 (voltage monitoring 2
interrupt/reset disabled).
5
Modify settings of bits related to the voltage detection circuit registers other than LVCMPCR.LVD2E, LVD2CR0.LVD2RIE, and
LVD2CR0.LVD2CMPE.