r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 100

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
7.6
Table 7.4
Notes:
Table 7.4 lists the Procedure for Setting Bits Associated with Voltage Monitor 2 Interrupt and Figure 7.7 shows an
Example of Voltage Monitor 2 Interrupt Operation. When the voltage monitor 2 interrupt is used to exit stop mode,
set the VW2C1 bit in the VW2C register to 1 (digital filter disabled mode).
12
Step
2
3
7
1. When the VW2C0 bit is 0, steps 1 to 3 can be executed at the same time (with one instruction).
2. When the VW2C0 bit is 0, steps 6 and 7 can be performed at the same time (with one instruction).
3. When this setting is made with the voltage monitor 2 interrupt disabled (the VW2C0 bit is 0, the VCA27 bit is 0),
10
11
1
4
5
6
8
9
(1)
(1)
(2)
(3)
if VCC  Vdet2 (or VCC  Vdet2) is detected, no interrupt is generated until the voltage monitor 2 interrupt in
step 12 is enabled. If VCC  Vdet2 (or VCC  Vdet2) is detected between steps 10 and 12, the VW2C2 bit is set
to 1. Read the VW2C2 bit after step 12, and perform the processing required for detection if the read value is 1.
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 (supply voltage (VCC)).
Set the VCA27 bit in the VCA2 register to 1 (voltage detection 2 circuit enabled).
Wait for td(E-A).
Set the IRQ2SEL bit in the CMPA register to select the interrupt type.
Set bits VW2F0 and VW2F1 in the VW2C register to
select the sampling clock for the digital filter.
Set the VW2C1 bit in the VW2C register to 0 (digital
filter enabled).
Set the VCAC2 bit in the VCAC register and the VW2C7 bit in the VW2C register to select the timing for an
interrupt request.
Set the VW2C bit in the VW2C2 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).
Preliminary document
Specifications in this document are tentative and subject to change.
Procedure for Setting Bits Associated with Voltage Monitor 2 Interrupt
When Digital Filter is Used
Set the VW2C1 bit in the VW2C register to 1 (digital
filter disabled).
When Digital Filter is Not Used
— (No wait time)
7. Voltage Detection Circuit
Page 69 of 725

Related parts for r5f21368sdfp