Status And Control Register 2 (Adcx_Sc2) - NXP Semiconductors MC9S08SU16 Reference Manual

Table of Contents

Advertisement

ADC Control Registers

17.4.2 Status and Control Register 2 (ADCx_SC2)

The ADC_SC2 register controls the compare function, conversion trigger, and conversion
active of the ADC module.
Address: Base address + 1h offset
Bit
7
Read
ADACT
Write
Reset
0
Field
7
Conversion Active
ADACT
Indicates that a conversion is in progress. ADACT is set when a conversion is initiated and cleared when a
conversion is completed or aborted.
0
Conversion not in progress.
1
Conversion in progress.
6
Conversion Trigger Select
ADTRG
Selects the type of trigger used for initiating a conversion. Two types of trigger are selectable: software
trigger and hardware trigger. When software trigger is selected, a conversion is initiated following a write
to ADC_SC1. When hardware trigger is selected, a conversion is initiated following the assertion of the
ADHWT input.
0
Software trigger selected.
1
Hardware trigger selected.
5
Compare Function Enable
ACFE
Enables the compare function.
0
Compare function disabled.
1
Compare function enabled.
4
Compare Function Greater Than Enable
ACFGT
Configures the compare function to trigger when the result of the conversion of the input being monitored
is greater than or equal to the compare value. The compare function defaults to triggering when the result
of the compare of the input being monitored is less than the compare value.
0
Compare triggers when input is less than compare level.
1
Compare triggers when input is greater than or equal to compare level.
3
Result FIFO empty
FEMPTY
0
Indicates that ADC result FIFO have at least one valid new data.
1
Indicates that ADC result FIFO have no valid new data.
2
Result FIFO full
FFULL
264
6
5
ADTRG
ACFE
0
0
ADCx_SC2 field descriptions
Table continues on the next page...
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
4
3
FEMPTY
ACFGT
0
1
Description
2
1
FFULL
REFSEL
0
0
NXP Semiconductors
0
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc9s08su16vfkMc9s08su8vfk

Table of Contents