Acmpx Status And Control Register (Acmpxsc) - ROHS MC9S08QE128 Reference Manual

Table of Contents

Advertisement

Analog Comparator (S08ACMPV3)
Refer to the direct-page register summary in the memory section of this data sheet 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 to identify
which ACMP is being referenced.
9.3.1

ACMPx Status and Control Register (ACMPxSC)

ACMPxSC contains the status flag and control bits which are used to enable and configure the ACMP.
7
R
ACME
W
Reset:
0
Table 9-2. ACMPx Status and Control Register Field Descriptions
Field
7
Analog Comparator Module Enable — ACME enables the ACMP module.
ACME
0 ACMP not enabled
1 ACMP is enabled
6
Analog Comparator Bandgap Select — ACBGS is used to select between the bandgap reference voltage or
ACBGS
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
Analog Comparator Flag — ACF is set when a compare event occurs. Compare events are defined by ACMOD.
ACF
ACF is cleared by writing a one to ACF.
0 Compare event has not occurred
1 Compare event has occurred
4
Analog Comparator Interrupt Enable — ACIE enables the interrupt from the ACMP. When ACIE is set, an
ACIE
interrupt will be asserted when ACF is set.
0 Interrupt disabled
1 Interrupt enabled
3
Analog Comparator Output — Reading ACO will return the current value of the analog comparator output. ACO
ACO
is reset to a 0 and will read as a 0 when the ACMP is disabled (ACME = 0).
2
Analog Comparator Output Pin Enable — ACOPE is used to enable the comparator output to be placed onto
ACOPE
the external pin, ACMPxO.
0 Analog comparator output not available on ACMPxO
1 Analog comparator output is driven out on ACMPxO
1:0
Analog Comparator Mode — ACMOD selects the type of compare event which sets ACF.
ACMOD
00 Encoding 0 — Comparator output falling edge
01 Encoding 1 — Comparator output rising edge
10 Encoding 2 — Comparator output falling edge
11 Encoding 3 — Comparator output rising or falling edge
172
6
5
ACBGS
ACF
0
0
= Unimplemented
Figure 9-3. ACMPx Status and Control Register
MC9S08QE128 MCU Series Reference Manual, Rev. 2
4
3
ACO
ACIE
ACOPE
0
0
Description
2
1
0
ACMOD
0
0
0
Freescale Semiconductor

Hide quick links:

Advertisement

Table of Contents
loading

Related Products for ROHS MC9S08QE128

This manual is also suitable for:

Mc9s08qe96Mc9s08qe64

Table of Contents