Datasheet
939
SAM9G45 [DATASHEET]
Atmel-6438O-ATARM-SAM9G45-Datasheet_08-Dec-15
39.10 Operating Modes
The Touchscreen ADC Controller features several operating modes, each defining a conversion sequence:
The ADC Mode: at each trigger, all the enabled channels are converted
The Touchscreen Mode: at each trigger, the touchscreen inputs are converted with the switches accordingly
set and the results are processed and stored in the corresponding data registers
The Interleaved Mode: at each trigger, the 8 conversions for the touchscreen and the analog inputs
conversions are performed. Only the analog inputs results are managed by the PDC and the touchscreen
conversions can be performed less often than the analog inputs.
The Operating Mode of the TSADCC is programmed in the field TSAMOD in the “TSADCC Mode Register” .
The conversion sequences for each Operating Mode are described in the following paragraphs.
The conversion sequencer, combined with the Sleep Modes, allows automatic processing with minimum processor
intervention and optimized power consumption. In any case, the sequence starts with a trigger event.
Note: The reference voltage pins always remain connected in normal mode as in sleep mode.
39.10.1 ADC Mode
In the ADC Mode, the active channels are defined by the “TSADCC Channel Status Register” , which is defined by
writing the “TSADCC Channel Enable Register” and “TSADCC Channel Disable Register” . The results are stored
in the “TSADCC Channel Data Register x (x = 0..7)” and in the “TSADCC Last Converted Data Register” , so that
data transfers by using the PDC are possible.
At each trigger, the following sequence is performed:
1. If SLEEP is set, wake up the ADC cell and wait for the Startup Time.
2. If Channel 0 is enabled, convert Channel 0 and store result in both TSADCC_CDR0 and TSADCC_LCDR.
3. If Channel 1 is enabled, convert Channel 1 and store result in both TSADCC_CDR1 and TSADCC_LCDR.
4. If Channel 2 is enabled, convert Channel 2 and store result in both TSADCC_CDR2 and TSADCC_LCDR.
5. If Channel 3 is enabled, convert Channel 3 and store result in both TSADCC_CDR3 and TSADCC_LCDR.
6. If Channel 4 to Channel 7 are enabled, convert the Channels and store result in the corresponding
TSADCC_CDRx and TSADCC_LCDR.
7. If SLEEP is set, sleep down the ADC cell.
If the PDC is enabled, all the converted data are transferred contiguously in the memory buffer. The bit LOWRES
defines which resolution is used, either 8-bit or 10-bit, and thus the width of the PDC memory buffer.