English
Language : 

XC161 Datasheet, PDF (96/419 Pages) Infineon Technologies AG – 16-Bit Single-Chip Microcontroller with C166SV2 Core Volume 2 (of 2): Peripheral Units
XC161 Derivatives
Peripheral Units (Vol. 2 of 2)
The Analog/Digital Converter
16.2.4 Channel Injection Mode
Channel Injection Mode allows the conversion of a specific analog channel (also while
the ADC is running in a continuous or auto scan mode) without changing the current
operating mode. After the conversion of this specific channel the ADC continues with the
original operating mode.
Channel Injection mode is enabled by setting bit ADCIN and requires the Wait for Read
Mode (ADWR = 1). The channel to be converted in this mode is specified in bitfield
CHNR of register ADC_DAT2.
Note: Bitfield CHNR in ADC_DAT2 is not modified by the A/D converter, but only the
ADRES bitfield. Since the channel number for an injected conversion is not
buffered, bitfield CHNR of ADC_DAT2 must never be modified during the sample
phase of an injected conversion, otherwise the input multiplexer will switch to the
new channel. It is recommended to only change the channel number with no
injected conversion running.
#x
Conversion
of Channel..
# x-1
# x-2
# x-3
# x-4
# ...
Write ADC_DAT; # x+1
#x
ADC_DAT Full
# x-1
# x-2
Read ADC_DAT
# x+1
#x
# x-1
# x-2
Injected
Conversion
of Channel # y
ADC_DAT2 Full
Read ADC_DAT2
#y
Channel Injection
Request
Write ADC_DAT2
Int. Request
ADEINT
# x-3
# x-4
# x-3
# x-4
MC_ADC0003_INJECT
Figure 16-5 Channel Injection Example
User’s Manual
ADC_X1, V2.1
16-14
V2.2, 2004-01