Atmel Evaluation Kit AT91SAM9M10-G45-EK AT91SAM9M10-G45-EK Data Sheet

Product codes
AT91SAM9M10-G45-EK
Page of 1361
 910
SAM9M10 [DATASHEET]
6355F–ATARM–12-Mar-13
 
• For Trigger Counter between 8 and (2
TSFREQ+1
):
1.
Increment Trigger Counter.
2.
If Trigger Counter equals (2
TSFREQ+1
), then set Trigger Counter to 0.
3.
If Channel 4 to Channel 7 are enabled, convert Channels and store result in the corresponding 
TSADCC_CDRx and TSADCC_LCDR.
The Trigger Counter is cleared when TSAMOD is written to define the Interleaved Mode, then it simply rolls over.
40.10.4
Manual  Mode
The TSADCC features a manual mode allowing to control the state (open/close) of the four switches.
Writing TSAMOD to “Manual Mode” automatically enables the ADC pins as analog inputs.The switches positions
are controlled through the 
. In this mode, the “Sample and Hold
Time” used is the one defined for the Touchscreen mode (TSSHTIM).
To perform a measurement, the following sequence must be followed
1.
Select the switch (switches) to close.
2.
If SLEEP is set, wake up the ADC cell and wait for the Startup Time.
3.
Enable the Channel to convert and start a conversion. If SLEEP is set, wake up the ADC cell and wait for 
the Startup Time are performed before the conversion.The result is stored in TSADCC_CDRx (and 
TSADCC_LCDR if PDCEN is enabled).
4.
If SLEEP is set, sleep down the ADC cell.
5.
Open the switches to reduce power consumption.