MB95630H Series
596
FUJITSU SEMICONDUCTOR LIMITED
MN702-00009-2v0-E
CHAPTER 28 COMPARATOR
28.2 Configuration
●
Comparator
The comparator monitors the voltages of two external analog inputs and compares them. Using
the voltage of the non-inverting analog input (positive input) as a reference voltage, the
comparator outputs "H" if the voltage of the inverting analog input (negative input) is lower
than the reference voltage; otherwise, it outputs "L".
●
Edge detection circuit
Except in stop mode, watch mode or time-base timer mode, upon detection of a rising edge or
falling edge of comparator output, the edge detection circuit automatically raises an interrupt
flag (CMR0C:IF).
●
Comparator control register (CMR0C)
This register has the following functions:
•
To power up or power down the comparator (CMR0C:PD)
•
To enable or disable comparator output (CMR0C:VCOE)
•
To enable or disable comparator analog input (CMR0C:VCID)
Except in stop mode, watch mode or time-base timer mode, if CMR0C:IE has been set to "1",
upon detection of a rising edge or falling edge of comparator output, the comparator generates
an interrupt request and the interrupt flag bit (CMR0C:IF) is automatically set to "1" at the
same time.
The output status of a comparator can be read through the OS bit in the comparator control
register (CMR0C).
Summary of Contents for 8FX
Page 2: ......
Page 4: ......
Page 8: ...iv ...
Page 18: ...xiv ...
Page 22: ...xviii ...
Page 650: ......