R01UH0823EJ0100 Rev.1.00
Page 1636 of 1823
Jul 31, 2019
RX23W Group
47. Comparator B (CMPBa)
Figure 47.1
Block Diagram of Comparators B2 and B3 When Window Function is Disabled
00b
01b
11b
CPB1SPDMD: Bit in the CPB1MD register
CPB2VRF and CPB3VRF: Bits in the CPB1REF register
CPB2OP, CPB2OE, CPB3OP, and CPB3OE: Bits in the CPB1OCR register
CPB2OUT and CPB3OUT: Bits in the CPB1FLG 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
PCLK
PCLK/8
PCLK/64
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
PCLK/32
CPB3F[1:0]
CPB3INTEG
CMPB3
CVREFB3
CMPB2
CVREFB2
Internal
reference
voltage
CPB3VRF
0
CPB2VRF
1
CMPOB3
CPB3OUT
CPB2OUT
CPB1SPDMD
1
0
00b
01b
11b
PCLK
PCLK/8
PCLK/64
10b
PCLK/32
CPB2F[1:0]
Digital filter
(3 times
match)
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