![NXP Semiconductors MC9S08PA4 Reference Manual Download Page 330](http://html1.mh-extra.com/html/nxp-semiconductors/mc9s08pa4/mc9s08pa4_reference-manual_1721838330.webp)
16.3.1 ACMP Control and Status Register (ACMP_CS)
Address: 2Ch base + 0h offset = 2Ch
Bit
7
6
5
4
3
2
1
0
Read
Write
Reset
0
0
0
0
0
0
0
0
ACMP_CS field descriptions
Field
Description
7
ACE
Analog Comparator Enable
Enables the ACMP module.
0
The ACMP is disabled.
1
The ACMP is enabled.
6
HYST
Analog Comparator Hysterisis Selection
Selects ACMP hysterisis.
0
20 mV.
1
30 mV.
5
ACF
ACMP Interrupt Flag Bit
Synchronously set by hardware when ACMP output has a valid edge defined by ACMOD. The setting of
this bit lags the ACMPO to bus clocks. Clear ACF bit by writing a 0 to this bit. Writing a 1 to this bit has no
effect.
4
ACIE
ACMP Interrupt Enable
Enables an ACMP CPU interrupt.
0
Disable the ACMP Interrupt.
1
Enable the ACMP Interrupt.
3
ACO
ACMP 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 (ACE = 0)
2
ACOPE
ACMP Output Pin Enable
ACOPE enables the pad logic so that the output can be placed onto an external pin.
0
ACMP output cannot be placed onto external pin.
1
ACMP output can be placed onto external pin.
ACMOD
ACMP MOD
Determines the sensitivity modes of the interrupt trigger.
00
ACMP interrupt on output falling edge.
01
ACMP interrupt on output rising edge.
Table continues on the next page...
Memory map and register definition
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
330
NXP Semiconductors
Summary of Contents for MC9S08PA4
Page 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Page 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Page 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Page 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Page 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Page 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Page 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Page 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Page 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Page 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Page 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Page 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...