r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 84

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.5
Table 6.3
Notes:
Table 6.3 lists the Procedure for Setting Bits Associated with Voltage Monitor 1 Interrupt. Figure 6.6 shows an
Operating Example of Voltage Monitor 1 Interrupt.
To use the voltage monitor 1 interrupt to exit stop mode, set the VW1C1 bit in the VW1C register to 1 (digital filter
disabled).
14
Step
3
4
7
9
1. When the VW1C0 bit is set to 0, steps 2, 3 and 4 can be executed simultaneously (with one instruction).
2. When the VW1C0 bit is set to 0, steps 6 and 7 can be executed simultaneously (with one instruction).
3. When the VW1C0 bit is set to 0, steps 8 and 9 can be executed simultaneously (with one instruction).
4. When making the setting while the voltage monitor 1 interrupt is disabled (the VW1C0 bit in the
10
12
13
11
1
2
5
6
8
(3)
(1)
(1)
(2)
(4)
VW1C register is 0 and the VCA26 bit in the VCA2 register is 0), no interrupt request is generated if
VCC < Vdet1 (or VCC > Vdet1) is detected before enabling the voltage monitor 1 interrupt in step
12. If VCC < Vdet1 (or VCC > Vdet1) is detected between step 10 and step 12, the VW1C2 bit is set
to 1. Read the VW1C2 bit after step 12. If this bit is read as 1, perform the processing to be executed
when the above state is detected.
Voltage Monitor 1 Interrupt
Select the voltage detection 1 detection voltage by bits VD1S3 to VD1S0 in the VD1LS
register.
Set the VCA21 bit in the VCA2 register to 0 (internal reference voltage).
Set the VCA22 bit in the VCA2 register to 0 (VCC voltage).
Set the VCA26 bit in the VCA2 register to 1 (voltage detection 1 circuit enabled).
Wait for td(E-A).
Set the COMPSEL bit in the CMPA register to 1.
Select the interrupt type by the IRQ1SEL in the CMPA register.
Select the sampling clock of the digital filter by
bits VW1F0 and VW1F1 in the VW1C register.
Set the VW1C1 bit in the VW1C register to 0
(digital filter enabled).
Select the interrupt request timing by the VCAC1 bit in the VCAC register and
the VW1C7 bit in the VW1C register.
Set the VW1C2 bit in the VW1C 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 VW1C0 bit in the VW1C register to 1 (voltage monitor 1 interrupt enabled)
Procedure for Setting Bits Associated with Voltage Monitor 1 Interrupt
When Using Digital Filter
Set the VW1C1 bit in the VW1C register to 1
(digital filter disabled).
− (No wait time required)
When Using No Digital Filter
6. Voltage Detection Circuit
Page 52 of 740

Related parts for r5f21346mnfp