r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 650

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
30.4.2
Table 30.4
Notes:
12
Step
7
1. When the VW2C0 bit is set to 0, steps 6 and 7 can be executed at the same time (with one
2. When the comparator A2 is enabled while the comparator A2 is disabled, low voltage is detected
10
11
1
2
3
4
5
6
8
9
(1)
Table 30.4 lists the Procedure for Setting Bits Associated Comparator A2 Interrupt, Figure 30.4 shows a
Comparator A2 Operating Example (Digital Filter Enabled), and Figure 30.5 shows a Comparator 2 Operating
Example (Digital Filter Disabled).
(2)
instruction).
and the VW2C2 bit becomes 1.
Set the COMPSEL bit in the CMPA register to 1 (bits IRQ1SEL and IRQ2SEL enabled).
Set the VCA23 bit in the VCA2 register to 1 (LVREF pin input voltage) and the VCA24 bit to 1
(LVCMP2 pin input voltage).
Set the VCA27 bit in the VCA2 register to 1 (comparator A2 circuit enabled).
Wait for td(E-A).
Select the interrupt type by the IRQ2SEL bit 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 (comparator A2 interrupt enabled).
Comparator A2
Procedure for Setting Bits Associated Comparator A2 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
30. Comparator A
Page 618 of 740

Related parts for r5f21346mnfp