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
Содержание MC9S08PA4
Страница 1: ...MC9S08PA4 Reference Manual Supports MC9S08PA4 Document Number MC9S08PA4RM Rev 5 08 2017 ...
Страница 2: ...MC9S08PA4 Reference Manual Rev 5 08 2017 2 NXP Semiconductors ...
Страница 22: ...MC9S08PA4 Reference Manual Rev 5 08 2017 22 NXP Semiconductors ...
Страница 28: ...System clock distribution MC9S08PA4 Reference Manual Rev 5 08 2017 28 NXP Semiconductors ...
Страница 150: ...Port data registers MC9S08PA4 Reference Manual Rev 5 08 2017 150 NXP Semiconductors ...
Страница 196: ...Human machine interfaces HMI MC9S08PA4 Reference Manual Rev 5 08 2017 196 NXP Semiconductors ...
Страница 224: ...Instruction Set Summary MC9S08PA4 Reference Manual Rev 5 08 2017 224 NXP Semiconductors ...
Страница 232: ...Functional Description MC9S08PA4 Reference Manual Rev 5 08 2017 232 NXP Semiconductors ...
Страница 258: ...FTM Interrupts MC9S08PA4 Reference Manual Rev 5 08 2017 258 NXP Semiconductors ...
Страница 268: ...Initialization application information MC9S08PA4 Reference Manual Rev 5 08 2017 268 NXP Semiconductors ...
Страница 294: ...Functional description MC9S08PA4 Reference Manual Rev 5 08 2017 294 NXP Semiconductors ...
Страница 370: ...Memory map and register description MC9S08PA4 Reference Manual Rev 5 08 2017 370 NXP Semiconductors ...
Страница 398: ...Resets MC9S08PA4 Reference Manual Rev 5 08 2017 398 NXP Semiconductors ...
Страница 400: ...MC9S08PA4 Reference Manual Rev 5 08 2017 400 NXP Semiconductors ...