English
Language : 

XC161 Datasheet, PDF (97/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
A channel injection can be triggered in two ways:
• setting of the Channel Injection Request bit ADCRQ via software
• a compare or a capture event of Capture/Compare register CC31 of the CAPCOM2
unit, which also sets bit ADCRQ.
The second method triggers a channel injection at a specific time, on the occurrence of
a predefined count value of the CAPCOM timers or on a capture event of register CC31.
This can be either the positive, the negative, or both the positive and the negative edge
of an external signal. In addition, this option allows recording the time of occurrence of
this signal.
Note: The channel injection request bit ADCRQ will be set on any interrupt request of
CAPCOM2 channel CC31, regardless whether the channel injection mode is
enabled or not. It is recommended to always clear bit ADCRQ before enabling the
channel injection mode.
After the completion of the current conversion (if any is in progress) the converter will
start (inject) the conversion of the specified channel. When the conversion of this
channel is complete, the result will be placed into the alternate result register
ADC_DAT2, and a Channel Injection Complete Interrupt request will be generated,
which uses the interrupt request flag ADEIR (for this reason the Wait for Read Mode is
required).
Note: The result of an injected conversion is directly written to ADC_DAT2. If the
previous result has not been read in the meantime, it is overwritten.
Standard conversions are suspended if the temporary buffer is full.
User’s Manual
ADC_X1, V2.1
16-15
V2.2, 2004-01