R01UH0823EJ0100 Rev.1.00
Page 1637 of 1823
Jul 31, 2019
RX23W Group
47. Comparator B (CMPBa)
Figure 47.2
Block Diagram of Comparators B2 and B3 When Window Function is Enabled
Table 47.2
I/O Pins of Comparator B
Pin Name
I/O
Function
CMPB2
Input
Comparator B2 analog pin
CVREFB2
Input
Comparator B2 reference input voltage pin
CMPB3
Input
Comparator B3 analog pin
CVREFB3
Input
Comparator B3 reference input voltage pin
CMPOB2
Output
Comparator B2 output
CMPOB3
Output
Comparator B3 output
CPB1SPDMD: Bit in the CPB1MD register
CPB2OP, CPB2OE, CPB3OP, and CPB3OE: Bits in the CPB1OCR register
CPB2OUT and CPB3OUT: Bits in the CPB1FLG register
CPB2WCP and CPB3WCP: Bits in the CPB1CNT2 register
CPB2INTEN, CPB2INTPL, CPB2INTEG, CPB3INTEN, CPB3INTPL, and CPB3INTEG: Bits in the CPB1INT register
CPB2F[1:0], CPB2FEN, CPB3F[1:0], and CPB3FEN: Bits in the CPB1F register
CPB3WCP
CPB2WCP
00b
01b
11b
Sampling clock
1
CPB3FEN
0
To comparator
B3 interrupt
CPB3INTEN
1
CPB2FEN
0
Sampling clock
CPB3INTPL
0 : Falling-edge detection
1 : Rising-edge detection
10b
CPB3F[1:0]
CPB3INTEG
CMPOB3
CPB3OUT
CPB2OUT
00b
01b
11b
PCLK
PCLK/8
PCLK/64
10b
PCLK/32
CPB2F[1:0]
Digital filter
(3 times
match)
Single-edge
and polarity
detection
circuit
1
Both-edge
detection
circuit
0
CPB3OP
CPB3OE
0
1
To comparator
B2 interrupt
CPB2INTEN
CPB2INTPL
0 : Falling-edge detection
1 : Rising-edge detection
CPB2INTEG
CMPOB2
Single-edge
and polarity
detection
circuit
1
Both-edge
detection
circuit
0
CPB2OP
CPB2OE
0
1
Digital filter
(3 times
match)
PCLK
PCLK/8
PCLK/64
PCLK/32
CPB1SPDMD
VRFH
VRFL
CMPB3
CMPB2
(= 1)