Fujitsu 8FX Hardware Manual page 618

8-bit microcontroller new 8fx family
Table of Contents

Advertisement

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).
596
FUJITSU SEMICONDUCTOR LIMITED
MB95630H Series
MN702-00009-2v0-E

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb95630h series

Table of Contents