15.4.4.2 Completing conversions
A conversion is completed when the result of the conversion is transferred into the data
result registers, ADC_RH and ADC_RL. This is indicated by the setting of
ADC_SC1[COCO]. An interrupt is generated if ADC_SC1[AIEN] is high at the time that
ADC_SC1[COCO] is set.
A blocking mechanism prevents a new result from overwriting previous data in ADC_RH
and ADC_RL if the previous data is in the process of being read while in 12-bit or 10-bit
MODE (the ADC_RH register has been read but the ADC_RL register has not). When
blocking is active, the data transfer is blocked, ADC_SC1[COCO] is not set, and the new
result is lost. In the case of single conversions with the compare function enabled and the
compare condition false, blocking has no effect and ADC operation is terminated. In all
other cases of operation, when a data transfer is blocked, another conversion is initiated
regardless of the state of ADC_SC1[ADCO] whether single or continuous conversions
are enabled.
If single conversions are enabled, the blocking mechanism could result in several
discarded conversions and excess power consumption. To avoid this issue, the data
registers must not be read after initiating a single conversion until the conversion
completes.
In fifo mode, a blocking mechanism will keep current channel conversion and no channel
fifo and result fifo switching until a block mechanism is released.
15.4.4.3 Aborting conversions
Any conversion in progress is aborted in the following cases:
• A write to ADC_SC1 occurs.
• The current conversion will be aborted and a new conversion will be initiated, if
ADC_SC1[ADCH] are not all 1s and ADC_SC4[AFDEP] are all 0s.
• The current conversion and the rest of conversions will be aborted and no new
conversion will be initialed, if ADC_SC4[AFDEP] are not all 0s.
• A new conversion will be initiated when the FIFO is re-fulfilled upon the levels
indicated by the ADC_SC4[AFDEP] bits).
• A write to ADC_SC2, ADC_SC3, ADC_SC4, ADC_CVH, or ADC_CVL occurs.
This indicates a mode of operation change has occurred and the current and rest of
conversions (when ADC_SC4[AFDEP] are not all 0s) are therefore invalid.
• The MCU is reset.
• The MCU enters Stop mode with ADACK not enabled.
Functional description
MC9S08PA4 Reference Manual, Rev. 5, 08/2017
310
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 ...