EasyManuals Logo

Renesas RX Series User Manual

Renesas RX Series
1823 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1647 background imageLoading...
Page #1647 background image
R01UH0823EJ0100 Rev.1.00 Page 1647 of 1823
Jul 31, 2019
RX23W Group 47. Comparator B (CMPBa)
Figure 47.4 shows an operation example of comparator Bn (n = 2, 3) when the window function is enabled.
The internal reference voltage (VRFH/VRFL) for the window function and the analog input voltage are compared. The
CPBnOUT bit is set to 1 when VRFL < the analog input voltage < VRFH, and the CPBnOUT bit is set to 0 when the
analog input voltage < VRFL, or VRFH < the analog input voltage.
To use the comparator Bn interrupt, set the CPB1INT.CPBnINTEN bit to 1 (interrupt enabled). If the comparison result
changes at this time, a comparator Bn interrupt request is generated. For details on interrupts, refer to
section 47.4,
Comparator B2 and Comparator B3 Interrupts
.
The values of the registers should not be changed during comparison.
Figure 47.4 Operating Example of Comparator Bn When Window Function is Enabled (n = 2, 3)
0
Analog input voltage (V)
Reference input voltage
(VRFH)
Set to 0 by program,
or becomes 0 when the interrupt request is accepted
by the interrupt request destination
CMPBn
Reference input voltage
(VRFL)
CPB1FLG.CPB2OUT flag
CPB1FLG.CPB3OUT flag
IR104.IR flag (comparator B2)
IR105.IR flag (comparator B3)
The above figure applies when the following conditions are met.
CPB1F.CPBnFEN bit = 0 (without filter)
CPB1INT.CPBnINTEG bit = 1 (both edges)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RX Series and is the answer not in the manual?

Renesas RX Series Specifications

General IconGeneral
CoreRXv1, RXv2, RXv3
Flash MemoryUp to 8 MB
RAMUp to 1 MB
Operating Voltage1.62V to 5.5V
Operating Temperature-40°C to +85°C or +105°C
PackageBGA, LQFP
ADC Resolution12-bit
DAC Resolution12-bit
Communication InterfacesSCI, SPI, I2C, USB, Ethernet, CAN
Architecture32-bit
Security FeaturesMemory Protection Unit (MPU)

Related product manuals