![Infineon Technologies TC1796 User Manual Download Page 1985](http://html1.mh-extra.com/html/infineon-technologies/tc1796/tc1796_user-manual_20554371985.webp)
TC1796
Peripheral Units (Vol. 2 of 2)
Analog-to-Digital Converter (ADC)
User’s Manual
25-54
V2.0, 2007-07
ADC, V2.0
Master/Slave Functionality
The special master/slave mode is entered if both ADC modules requested to be master
at the same time
and
both ADC modules requested a synchronized conversion for the
same channel. In this case, each ADC module compares the received channel number
from the synchronization bridge with the channel number stored in their arbitration result.
Three cases must be treated:
•
SYSTAT.CHNRSY < channel number in arbitration result register
ADC module behaves as master.
Clear the synchronized conversion request (bit SYSTAT.SYREQ) because this is the
master (see description on master functionality).
•
SYSTAT.CHNRSY = channel number in arbitration result
ADC module provides master/slave functionality.
•
SYSTAT.CHNRSY > channel number in arbitration result
ADC module behaves as slave and bit SYSTAT.SYREQ remains set.
(see description on slave functionality)
In the case that this ADC module provides master/slave functionality, bit STAT.SYMS is
set and any write action to the arbitration result is disabled. This means that the
synchronized conversion is started next in the slave.
From this point, the behavior is similar to the one of a master until the synchronized
conversion is finished. At the end of the synchronized conversion, bit STAT.SYMS is
cleared and bit MSS1.MSRSY is set for each ADC module.
25.1.10.4 Conversion Timing during Synchronized Conversion
The settings for the conversion and sample timing can be selected individually for each
ADC module. Thus, the conversions are started synchronously but the master can finish
its synchronized conversion at a different time than the slave.
25.1.10.5 Service Request Generation in Synchronized Injection
The Synchronized Injection based service request is automatically generated either in
the master ADC module or in each ADC module while each provides master/slave
functionality.
In the case that both ADC modules have finished their conversion, bit STAT.IENREQ
and STAT.IENPAR are set in the master ADC module. This sets bit MSS1.MSRSY and
generates a service request if enabled and configured. Beside setting bit MSS1.MSRSY,
bits STAT.IENREQ and STAT.IENPAR are automatically cleared.
A service request can be generated in both ADC modules for the converted channel if
the channel-specific service request node pointer is configured and enabled.