R01UH0823EJ0100 Rev.1.00
Page 1650 of 1823
Jul 31, 2019
RX23W Group
47. Comparator B (CMPBa)
47.4
Comparator B2 and Comparator B3 Interrupts
Comparator B generates two interrupt requests from sources, comparator B2 and . The comparator Bn interrupt (n = 2, 3)
uses the IR104.IR flag, IR105.IR flag, IPR104.IPR[3:0] bits, IPR105.IPR[3:0] bits, and the respective single interrupt
vector.
To use the comparator Bn interrupt, set the CPB1INT.CPBnINTEN bit to 1 (interrupt enabled). In addition, select either
single-edge detection or both-edge detection using the CPB1INT.CPBnINTEG bit. When single-edge detection is
selected, select the polarity using the CPB1INT.CPBnINTPL bit.
Inputs can also be passed through the digital filter with four different sampling clocks.
47.5
Usage Note
47.5.1
Module Stop Function Setting
Operation of comparator B can be enabled or disabled by setting a bit in the module stop control register B (MSTPCRB).
Comparator B is initially disabled after a reset. Registers only become accessible after it has been released from the
module stop state. For details, refer to
section 11, Low Power Consumption
.