r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 647

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
30.4.1
Table 30.3
Notes:
Comparator A1 and comparator A2 operate independently.
The comparison result of the reference input voltage and analog input voltage can be read by software. The result
can also be output from the LVCOUTi (i = 1 or 2) pin. An input voltage to the LVREF pin can be used as the
reference input voltage. The comparator A1 interrupt or the comparator A2 interrupt can be used by selecting non-
maskable or maskable for each interrupt type.
12
Step
7
1. When the VW1C0 bit is set to 0, steps 6 and 7 can be executed at the same time (with one instruction).
2. When the comparator A1 is enabled while the comparator A1 is disabled, low voltage is detected
10
11
1
2
3
4
5
6
8
9
(1)
Table 30.3 lists the Procedure for Setting Bits Associated with Comparator A1 Interrupt, Figure 30.2 shows a
Comparator A1 Operating Example (Digital Filter Enabled), and Figure 30.3 shows a Comparator A1
Operating Example (Digital Filter Disabled).
(2)
and the VW1C2 bit becomes 1.
Functional Description
Comparator A1
Set the COMPSEL bit in the CMPA register to 1 (bits IRQ1SEL and IRQ2SEL enabled).
Set the VCA21 bit in the VCA2 register to 1 (LVREF pin input voltage) and
the VCA22 bit to 1 (LVCMP1 pin input voltage).
Set the VCA26 bit in the VCA2 register to 1 (comparator A1 circuit enabled).
Wait for td(E-A).
Select the interrupt type by the IRQ1SEL bit 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 (comparator A1 interrupt enabled).
Procedure for Setting Bits Associated with Comparator A1 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
30. Comparator A
Page 615 of 740

Related parts for r5f21346mnfp