English
Language : 

MC9S08RG60 Datasheet, PDF (180/232 Pages) Motorola, Inc – Microcontrollers
Analog Comparator (ACMP) Module
13.5 ACMP Status and Control Register (ACMP1SC)
Bit 7
6
5
4
3
2
1
Bit 0
Read:
ACO
ACME ACBGS ACF ACIE
Write:
0
ACMOD1 ACMOD0
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 13-3 ACMP Status and Control Register (ACMP1SC)
ACME — Analog Comparator Module Enable
The ACME bit enables the analog comparator module. When the module is not enabled, it remains in
a low-power state.
1 = Analog comparator enabled
0 = Analog comparator disabled
ACBGS — Analog Comparator Bandgap Select
The ACBGS bit is used to select the internal bandgap as the comparator reference.
1 = Internal bandgap reference selected as comparator non-inverting input
0 = External pin ACMP1+ selected as comparator non-inverting input
ACF — Analog Comparator Flag
The ACF bit is set when a compare event occurs. Compare events are defined by the ACMOD0 and
ACMOD1 bits. The ACF bit is cleared by writing a 1 to the bit.
1 = Compare event has occurred.
0 = Compare event has not occurred.
ACIE — Analog Comparator Interrupt Enable
The ACIE bit enables the interrupt from the ACMP. When this bit is set, an interrupt will be asserted
when the ACF bit is set.
1 = Interrupt enabled
0 = Interrupt disabled
ACO — Analog Comparator Output
Reading the ACO bit will return the current value of the analog comparator output. The register bit is
reset to 0 and will read as 0 when the analog comparator module is disabled (ACME = 0).
ACMOD1:ACMOD0 — Analog Comparator Modes
The ACMOD1 and ACMOD0 bits select the flag setting mode that controls the type of compare event
that sets the ACF bit.
180
MC9S08RC/RD/RE/RG
Freescale Semiconductor