r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 86

no-image

r5f21346mnfp

Manufacturer Part Number
r5f21346mnfp
Description
Single-chip Mcus Incorporates The R8c Cpu Core
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21346mnfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/34M Group
R01UH0131EJ0100 Rev.1.00
Jun 21, 2011
6.6
Table 6.4
Notes:
Table 6.4 lists the Procedure for Setting Bits Associated with Voltage Monitor 2 Interrupt. Figure 6.7 shows an
Operating Example of Voltage Monitor 2 Interrupt.
To use the voltage monitor 2 interrupt to exit stop mode, set the VW2C1 bit in the VW2C register to 1 (digital filter
disabled).
13
Step
2
3
6
8
1. When the VW2C0 bit is set to 0, steps 1, 2 and 3 can be executed simultaneously (with one instruction).
2. When the VW2C0 bit is set to 0, steps 5 and 6 can be executed simultaneously (with one instruction).
3. When the VW2C0 bit is set to 0, steps 7 and 8 can be executed simultaneously (with one instruction).
4. When making the setting while the voltage monitor 2 interrupt is disabled (the VW2C0 bit in the
10
12
11
1
4
5
7
9
(3)
(1)
(1)
(2)
(4)
VW2C register is 0 and the VCA27 bit in the VCA2 register is 0), no interrupt request is generated if
VCC < Vdet2 (or VCC > Vdet2) is detected before enabling the voltage monitor 2 interrupt in step
11. If VCC < Vdet2 (or VCC > Vdet2) is detected between step 9 and step 11, the VW2C2 bit is set
to 1. Read the VW2C2 bit after step 11. If this bit is read as 1, perform the processing to be executed
when the above state is detected.
Voltage Monitor 2 Interrupt
Set the VCA23 bit in the VCA2 register to 0 (internal reference voltage).
Set the VCA24 bit in the VCA2 register to 0 (VCC voltage) or 1 (LCVCMP2 pin input voltage).
Set the VCA27 bit in the VCA2 register to 1 (voltage detection 2 circuit enabled).
Wait for td(E-A).
Set the COMPSEL bit in the CMPA register to 1.
Select the interrupt type by the IRQ2SEL in the CMPA register.
Select the sampling clock of the digital filter by
bits VW2F0 and VW2F1 in the VW2C register.
Set the VW2C1 bit in the VW2C register to 0
(digital filter enabled).
Select the interrupt request timing by the VCAC2 bit in the VCAC register and the VW2C7 bit in
the VW2C register.
Set the VW2C2 bit in the VW2C register to 0.
Set the CM14 bit in the CM1 register to 0
(low-speed on-chip oscillator on).
Wait for 2 cycles of the sampling clock of
the digital filter.
Set the VW2C0 bit in the VW2C register to 1 (voltage monitor 2 interrupt enabled).
Procedure for Setting Bits Associated with Voltage Monitor 2 Interrupt
When Using Digital Filter
Set the VW2C1 bit in the VW2C register to 1
(digital filter disabled).
− (No wait time required)
When Using No Digital Filter
6. Voltage Detection Circuit
Page 54 of 740

Related parts for r5f21346mnfp