ACMP_C1 field descriptions
Field
Description
7
DACEN
DAC Enable
Enables the output of 6-bit DAC.
0
The DAC is disabled.
1
The DAC is enabled.
6
DACREF
DAC Reference Select
0
The DAC selects Bandgap as the reference.
1
The DAC selects V
DDA
as the reference.
DACVAL
DAC Output Level Selection
Selects the output voltage using the given formula: V
output
= (V
in
/64)x(DACVAL[5:0]+1) The V
output
range is
from V
in
/64 to V
in
, the step is V
in
/64
16.3.4 ACMP Control Register 2 (ACMP_C2)
Address: 2Ch base + 3h offset = 2Fh
Bit
7
6
5
4
3
2
1
0
Read
Write
Reset
0
0
0
0
0
0
0
0
ACMP_C2 field descriptions
Field
Description
7–3
Reserved
This field is reserved.
This read-only field is reserved and always has the value 0.
ACIPE
ACMP Input Pin Enable
This 3-bit field controls if the corresponding ACMP external pin can be driven by an analog input.
0
The corresponding external analog input is not allowed.
1
The corresponding external analog input is allowed.
16.4 Functional description
The ACMP module is functionally composed of two parts: digital-to-analog (DAC) and
comparator (CMP).
The DAC includes a 64-level DAC (digital to analog converter) and relevant control
logic. DAC can select one of two reference inputs, V
DD
or on-chip bandgap, as the DAC
input V
in
by setting ACMP_C1[DACREF]. After the DAC is enabled, it converts the data
Functional description
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
332
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 ...