Download netX Design-In Guide
Transcript
Standard Circuits 136/158 To make the circuit and the netX work as a touch panel controller, appropriate driver software must perform the following tasks: Starting in idle mode, the two I/O signals (XM3_IO0 and IO1) must be held low and the analog value on the two ADC inputs must be captured periodically. In this state, all switches are turned off and due to the 200k pull-up and pull-down resistors, the value on the YU input will be around maximum, while the value on the XR input will be around 0, as long as the panel is not being touched. In this case the application is to remain in idle mode. If the XR input value is significantly higher than 0 and the YU input value significantly lower than max., it can be assumed, that the panel is currently being touched. Now the TP-XON must be set to high level, which turns on the two upper switches, connecting XR to 3.3 V and XL to GND. At the position being touched, the conducting XL-XR and YL-YU layers of the panel contact each other, building a voltage divider with the voltage at the touch point being proportional to the X position of the touched point. After a (panel specific) settling time, this voltage (and hence the corresponding position) can be measured at the YU input. When the X position has been captured, the TP-XON I/O (XM3_IO0) must be set to low level again, while the TP-YON I/O (XM3_IO1) must set to high level. This turns on the two lower switches, connecting YU to 3.3 V and YL to GND. Now (again after a certain settling time) the voltage level at the XR input resembles the Y position of the current touch point. When the Y position has been captured, TP-YON I/O (XM3_IO1) must be set to low level again. Now the current position is known and the system can return to idle mode. Due to non-linearity and wear/aging, it is recommended, to also implement a calibration function that shows a few calibration points at known positions on the display, while the user consecutively touches these points. By comparing the measured coordinates to the coordinates of the calibration points, appropriate correction factors can then be calculated, allowing to compensate the deviations. The required settling time between changing the switch signals and performing the acquisition of the analog touch panel signals must be evaluated. In electrically noisy environments it may also be necessary to perform several measurements and use the average, trading response time for accuracy. netX Design-In Guide | netX 100/500 DOC081106AN02EN | Revision 2 | English | 2012-10 | Released | Public © Hilscher, 2008-2012