MC9S08JM16CGTE FREESCALE [Freescale Semiconductor, Inc], MC9S08JM16CGTE Datasheet - Page 131

no-image

MC9S08JM16CGTE

Manufacturer Part Number
MC9S08JM16CGTE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Refer to the direct-page register summary in the memory section of this data sheet for the absolute address
assignments for all ACMP registers.This section refers to registers and control bits only by their names.
Some MCUs may have more than one ACMP, so register names include placeholder characters to identify
which ACMP is being referenced.
9.3.1.1
ACMPSC contains the status flag and control bits which are used to enable and configure the ACMP.
Freescale Semiconductor
ACBGS
ACME
Field
ACIE
ACO
ACF
7
6
5
4
3
An 8-bit status and control register
Reset:
W
R
Analog Comparator Module Enable — ACME enables the ACMP module.
0 ACMP not enabled
1 ACMP is enabled
Analog Comparator Bandgap Select — ACBGS is used to select between the bandgap reference voltage or
the ACMP+ pin as the input to the non-inverting input of the analog comparatorr.
0 External pin ACMP+ selected as non-inverting input to comparator
1 Internal reference select as non-inverting input to comparator
Note: refer to this chapter introduction to verify if any other config bits are necessary to enable the bandgap
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 ACF.
0 Compare event has not occurred
1 Compare event has occurred
Analog Comparator Interrupt Enable — ACIE enables the interrupt from the ACMP. When ACIE is set, an
interrupt will be asserted when ACF is set.
0 Interrupt disabled
1 Interrupt enabled
Analog Comparator Output — Reading ACO will return the current value of the analog comparator output. ACO
is reset to a 0 and will read as a 0 when the ACMP is disabled (ACME = 0).
ACMP Status and Control Register (ACMPSC)
reference in the chip level.
ACME
0
7
Table 9-2. ACMP Status and Control Register Field Descriptions
= Unimplemented
ACBGS
0
6
Figure 9-3. ACMP Status and Control Register
MC9S08JM16 Series Data Sheet, Rev. 2
ACF
5
0
ACIE
0
4
Description
ACO
0
3
ACOPE
0
2
Analog Comparator (S08ACMPV2)
0
1
ACMOD
0
0
131

Related parts for MC9S08JM16CGTE