English
Language : 

MC9S12GRMV1 Datasheet, PDF (258/1292 Pages) Freescale Semiconductor, Inc – MC9S12G Family Reference Manual and Data Sheet
5V Analog Comparator (ACMPV1)
Table 3-2. ACMPC Register Field Descriptions (continued)
Field
Description
5
ACICE
ACMP Input Capture Enable—
Establishes internal link to a timer input capture channel. When enabled, the associated timer pin is disconnected
from the timer input. Refer to ACE description to account for initialization delay on this path.
0 Timer link disabled
1 ACMP output connected to input capture channel 5
4
ACMP Digital Input Buffer Enable—
ACDIEN Enables the input buffers on ACMPP and ACMPM for the pins to be used with digital functions.
Note: If this bit is set while simultaneously using the pin as an analog port, there is potentially increased power
consumption because the digital input buffer may be in the linear region.
0 Input buffers disabled on ACMPP and ACMPM
1 Input buffers enabled on ACMPP and ACMPM
3-2
ACMOD
[1:0]
ACMP Mode—
Selects the type of compare event setting ACIF.
00 Flag setting disabled
01 Comparator output rising edge
10 Comparator output falling edge
11 Comparator output rising or falling edge
0
ACE
ACMP Enable—
This bit enables the ACMP module and takes it into normal mode (see Section 3.5, “Modes of Operation”). This bit
also connects the related input pins with the module’s low pass input filters. When the module is not enabled, it
remains in low power shutdown mode.
Note: After setting ACE=1 an initialization delay of 63 bus clock cycles must be accounted for. During this time the
comparator output path to all subsequent logic (ACO, ACIF, timer link, excl. ACMPO) is held at its current state.
When resetting ACE to 0 the current state of the comparator will be maintained.
0 ACMP disabled
1 ACMP enabled
3.6.2.2 ACMP Status Register (ACMPS)
Address 0x0261
7
6
5
4
3
2
R
ACO
0
0
0
0
ACIF
W
Reset
0
0
0
0
0
0
Figure 3-4. ACMP Status Register (ACMPS)
1 Read: Anytime
Write:
ACIF: Anytime, write 1 to clear
ACO: Never
Access: User read/write1
1
0
0
0
0
0
MC9S12G Family Reference Manual, Rev.1.23
260
Freescale Semiconductor