2
Development System EasydsPIC6
MikroElektronika
page
Figure 21-3 shows in detail how to connect a touch panel to the microcontroller. Bring the end of the flat cable close to the CN9
connector (Figure 1). Plug the cable into the connector (Figure 2) and press it easily so as to fully fit the connector (Figure 3). Now, a
GLCD can be plugged into the appropriate connector (Figure 4).
NOTE:
LEDs and pull-up/pull-down resistors on ports PORTB and PORTC must be off when using a touch panel.
Figure 21-1 shows how to place a touch panel over a GLCD display. Make sure that the flat cable is to the left of the GLCD, as shown
in Figure 4.
21.0. Touch Panel
The touch panel is a thin, self-adhesive, transparent, touch-sensitive panel. It is placed over a GLCD. Its main function is to register
pressure at some specific display point and to forward its coordinates in the form of analog voltage to the microcontroller. Switches 5,
6, 7 and 8 on the DIP switch SW12 are used for connecting the microcontroller and touch panel.
Figure 21-2
: Touch panel and microcontroller connection schematic
Figure 21-3
: Connecting touch panel
4
3
2
1
1
2
3
4
Figure 21-1
: Placing touch panel over a GLCD
Touch panel is connected to the microcontroller via pins RB6, RB7, RC13 and RC14