Interrupt And Reset From Voltage Monitoring 2 - Renesas RX100 Series User Manual

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
8.6

Interrupt and Reset from Voltage Monitoring 2

Table 8.4 shows the procedures for setting bits related to the voltage monitoring 2 interrupt and voltage monitoring 2
reset. Table 8.5 shows the procedure for stopping bits related to the voltage monitoring 2 interrupt and voltage
monitoring 2 reset. Figure 8.6 shows an example of operations for a voltage monitoring 2 interrupt. For the operation of
the voltage monitoring 2 reset, see Figure 6.2 in section 6, Resets .
Table 8.4
Procedures for Setting Bits Related to the Voltage Monitoring 2 Interrupt and Voltage Monitoring 2
Reset
Step
Voltage Monitoring 2 Interrupt
*1
1
Select the detection voltage by setting the LVDLVLR.LVD2LVL[1:0] bits.
*1
2
Set the LVD2CR0.LVD2RI bit to 0 (voltage monitoring 2
interrupt).
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
1
5*
Set the LVCMPCR.LVD2E bit to 1 (voltage detection 2 circuit enabled).
1
6*
Wait for at least Td
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)
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.
Table 8.5
Procedures for Stopping Bits Related to the Voltage Monitoring 2 Interrupt and Voltage Monitoring
2 Reset
Step
Voltage Monitoring 2 Interrupt
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
*1
Set the LVCMPCR.LVD2E bit to 0 (voltage monitoring 2 circuit disabled).
4
5
Modify settings of bits related to the voltage detection circuit registers other than LVCMPCR.LVD2E, LVD2CR0.LVD2RIE, and
LVD2CR0.LVD2CMPE.
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.
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
.
(E-A)
8. Voltage Detection Circuit (LVDAb)
Voltage Monitoring 2 Reset
Set the LVD2CR0.LVD2RI bit to 1 (voltage monitoring 2
reset).
Select the type of reset negation by setting the
LVD2CR0.LVD2RN bit.
Set the LVD2CR0.LVD2RIE bit to 1 (voltage monitoring 2
interrupt/reset enabled).
Voltage Monitoring 2 Reset
Set the LVD2CR0.LVD2RIE bit to 0 (voltage monitoring 2
interrupt/reset disabled).
Page 127 of 1041

Advertisement

Table of Contents
loading

Table of Contents