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

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

Advertisement

RX13T Group
8.5

Interrupt and Reset from Voltage Monitoring 1

Table 8.2 shows the procedures for setting bits related to the voltage monitoring 1 interrupt and voltage monitoring 1
reset. Table 8.3 shows the procedures for stopping bits related to the voltage monitoring 1 interrupt and voltage
monitoring 1 reset. Figure 8.5 shows an example of operations for a voltage monitoring 1 interrupt. For the operation of
the voltage monitoring 1 reset, see Figure 6.2 in section 6, Resets .
Table 8.2
Procedures for Setting Bits Related to the Voltage Monitoring 1 Interrupt and Voltage Monitoring 1
Reset
Step
Voltage Monitoring 1 Interrupt
*1
1
Select the detection voltage by setting the LVDLVLR.LVD1LVL[3:0] bits.
*1
2
Set the LVD1CR0.LVD1RI bit to 0 (voltage monitoring 1
interrupt).
3
Select the timing of interrupt requests by setting the
LVD1CR1.LVD1IDTSEL[1:0] bits.
Select the type of interrupt by setting the
LVD1CR1.LVD1IRQSEL bit.
4
*1
5
Set the LVCMPCR.LVD1E bit to 1 (voltage detection 1 circuit enabled).
*1
6
Wait for at least Td
7
Set the LVD1CR0.LVD1CMPE bit to 1 (voltage monitoring 1 circuit comparison results output enabled).
8
Wait for at least 2 µs.
9
Set the LVD1SR.LVD1DET bit to 0.
10
Set the LVD1CR0.LVD1RIE bit to 1 (voltage monitoring 1
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 1 interrupt
(LVD1CR0.LVD1RI = 0) and operation can be restarted by simply changing the settings of the LVD1CR1.LVD1IRQSEL and
LVD1IDTSEL[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 1 reset (LVD1CR0.LVD1RI = 1), proceed through all steps from 1 to 10.
Table 8.3
Procedures for Stopping Bits Related to the Voltage Monitoring 1 Interrupt and Voltage Monitoring
1 Reset
Step
Voltage Monitoring 1 Interrupt
1
Set the LVD1CR0.LVD1RIE bit to 0 (voltage monitoring 1
interrupt/reset disabled).
2
Set the LVD1CR0.LVD1CMPE bit to 0 (voltage monitoring 1 circuit comparison results output disabled).
3
*1
Set the LVCMPCR.LVD1E bit to 0 (voltage detection 1 circuit disabled).
4
5
Modify settings of bits related to the voltage detection circuit registers other than LVCMPCR.LVD1E, LVD1CR0.LVD1RIE, and
LVD1CR0.LVD1CMPE.
Note 1. Step 3 is not required if operation is with the setting to select the voltage monitoring 1 interrupt (LVD1CR0.LVD1RI = 0) and
operation can be restarted by simply changing the settings of the LVD1CR1.LVD1IRQSEL and LVD1IDTSEL[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 1
reset (LVD1CR0.LVD1RI = 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 1 Reset
Set the LVD1CR0.LVD1RI bit to 1 (voltage monitoring 1
reset).
Select the type of reset negation by setting the
LVD1CR0.LVD1RN bit.
Set the LVD1CR0.LVD1RIE bit to 1 (voltage monitoring 1
interrupt/reset enabled).
Voltage Monitoring 1 Reset
Set the LVD1CR0.LVD1RIE bit to 0 (voltage monitoring 1
interrupt/reset disabled).
Page 125 of 1041

Advertisement

Table of Contents
loading

Table of Contents