R5F21324CNSP#U0 Renesas Electronics America, R5F21324CNSP#U0 Datasheet - Page 500

MCU 1KB FLASH 16K ROM 20-LSSOP

R5F21324CNSP#U0

Manufacturer Part Number
R5F21324CNSP#U0
Description
MCU 1KB FLASH 16K ROM 20-LSSOP
Manufacturer
Renesas Electronics America
Series
R8C/3x/32Cr
Datasheet

Specifications of R5F21324CNSP#U0

Core Processor
R8C
Core Size
16/32-Bit
Speed
20MHz
Connectivity
I²C, LIN, SIO, SSU, UART/USART
Peripherals
POR, PWM, Voltage Detect, WDT
Number Of I /o
15
Program Memory Size
16KB (16K x 8)
Program Memory Type
FLASH
Ram Size
1.5K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 4x10b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
20-LSSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
R8C/32C Group
REJ09B0573-0100 Rev.1.00 Dec. 18, 2009
Page 471 of 573
28.3
Figure 28.2
Table 28.3
i = 1 or 3
1
2
3
4
5
6
Step
Comparator B1 and comparator B3 operate independently. Their operations are the same.
Table 28.3 lists the Procedure for Setting Registers Associated with Comparator B.
Figure 28.2 shows an Operating Example of Comparator Bi (i = 1 or 3).
If the analog input voltage is higher than the reference input voltage, the INTiCOUT bit in the INTCMP register is
set to 1. If the analog input voltage is lower than the reference input voltage, the INTiCOUT bit is set to 0. To use
the comparator Bi interrupt, set the INTiEN bit in the INTEN register to 1 (interrupt enabled). If the comparison
result changes at this time, a comparator Bi interrupt request is generated. Refer to 28.4 Comparator B1 and
Comparator B3 Interrupts for details of interrupts.
Select the function of pins IVCMPi and IVREFi. Refer to 7.5 Port Settings .
However, set registers and bits other than listed in step 2 and the following steps.
INTF
INTCMP
Wait for comparator stability time (100 µ s max.)
INTEN
INTiIC
Reference input voltage
Functional Description
Register
Analog input voltage (V)
INTCMP register
INTiCOUT bit in
INTiIC register
Procedure for Setting Registers Associated with Comparator B
Operating Example of Comparator Bi (i = 1 or 3)
The above applies when:
Bits INTiF1 to INTiF0 in INTF register = 00b (no filter)
INTiPL bit in the INTEN register = 0 (both edges)
i = 1 or 3
IR bit in
Select whether to enable or disable the filter.
Select the sampling clock.
INTiCP0
INTiEN
INTiPL
ILVL2 to ILVL0
IR
0
Bit
1 (operation enabled)
When using an interrupt: 1 (interrupt enabled)
When using an interrupt: Select the input polarity.
When using an interrupt: Select the interrupt priority level.
When using an interrupt: 0 (no interrupt requested: initialization)
Set to 0 by a program.
Setting Value
28. Comparator B

Related parts for R5F21324CNSP#U0