![](http://datasheet.mmic.net.cn/100000/IF180C52TXXX-20R_datasheet_3493957/IF180C52TXXX-20R_601.png)
601
32099I–01/2012
AT32UC3L016/32/64
screen inputs, are automatically activated. In addition, if any other channels are enabled, they
will be converted before and after the resistive touch screen conversion.
At each trigger, the following sequence is performed:
1.
If ACR.SLEEP is one, wake up the ADC cell and wait for the startup time.
2.
Convert all enabled channels before TSPO and store the results in the LCDR.
3.
Apply supply on the inputs X
P and XM during the Sample and Hold Time.
4.
Convert Channel X
M and store the result in TMP.
5.
Apply supply on the inputs X
P and XM during the Sample and Hold Time.
6.
Convert Channel X
P, subtract TMP from the result and store the subtracted result in
LCDR.
7.
Apply supply on the inputs X
P and XM during the Sample and Hold Time.
8.
Convert Channel Y
P, subtract TMP from the result and store the subtracted result in
LCDR.
9.
Apply supply on the inputs Y
P and YM during the Sample and Hold Time.
10. Convert Channel Y
M and store the result in TMP.
11. Apply supply on the inputs Y
P and YM during the Sample and Hold Time.
12. Convert Channel Y
P, subtract TMP from the result and store the subtracted result in
LCDR.
13. Apply supply on the inputs Y
P and YM during the Sample and Hold Time.
14. Convert Channel X
P, subtract TMP from the result and store the subtracted result in
LCDR.
15. Convert all enabled channels after TSPO + 3 and store results in the LCDR.
16. If ACR.SLEEP is one, place the ADC cell in a low-power state.
The resulting buffer structure stored in memory is:
1.
X
P - XM
2.
Y
P - XM
3.
Y
P - YM
4.
X
P - YM.
The vertical position can be easily calculated by dividing the data at offset 1(X
P - XM) by the data
at offset 2(Y
P - XM).
The horizontal position can be easily calculated by dividing the data at offset 3(Y
P - YM) by the
data at offset 4(X
P - YM).