Datasheet

Chapter 9 Analog Comparator (S08ACMPV3)
MC9S08DZ60 Series Data Sheet, Rev. 4
Freescale Semiconductor 171
9.3 Memory Map/Register Definition
The ACMP includes one register:
An 8-bit status and control register
Refer to the direct-page register summary in the memory section of this document for the absolute address
assignments for the ACMP register.This section refers to register and control bits only by their names and
relative address offsets.
Some MCUs may have more than one ACMP, so register names include placeholder characters (x) to
identify which ACMP is being referenced.
9.3.1 ACMPx Status and Control Register (ACMPxSC)
ACMPxSC contains the status flag and control bits used to enable and configure the ACMP.
Table 9-2. ACMP Register Summary
Name
76543210
ACMPxSC
R
ACME ACBGS ACF ACIE
ACO
ACOPE ACMOD
W
76543210
R
ACME ACBGS ACF ACIE
ACO
ACOPE ACMOD
W
Reset: 0 0 0 0 0 0 0 0
Figure 9-3. ACMPx Status and Control Register (ACMPxSC)
Table 9-3. ACMPxSC Field Descriptions
Field Description
7
ACME
Analog Comparator Module Enable. Enables the ACMP module.
0 ACMP not enabled
1 ACMP is enabled
6
ACBGS
Analog Comparator Bandgap Select. Selects between the bandgap reference voltage or the ACMPx+ pin as the
input to the non-inverting input of the analog comparator.
0 External pin ACMPx+ selected as non-inverting input to comparator
1 Internal reference select as non-inverting input to comparator
5
ACF
Analog Comparator Flag. ACF is set when a compare event occurs. Compare events are defined by ACMOD.
ACF is cleared by writing a one to it.
0 Compare event has not occurred
1 Compare event has occurred
4
ACIE
Analog Comparator Interrupt Enable. Enables the interrupt from the ACMP. When ACIE is set, an interrupt is
asserted when ACF is set.
0 Interrupt disabled
1 Interrupt enabled