24
LV24- v6 Development System
MikroElektronika
page
Figure 19-3 shows in detail how to connect a touch panel to the microcontroller. Bring the end of the flat cable close to the CN22
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 PORTD must be off when using a touch panel.
Figure 19-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.
19.0.
Touch Panel
The touch panel is a thin, self-adhesive, transparent, touch-sensitive panel. It is placed over a GLCD display. 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 SW15 are used for connecting the microcontroller and touch panel.
Figure 19-2
: Touch panel connection schematic
Figure 19-3
: Connecting touch panel
4
3
2
1
1
2
3
4
Figure 19-1
: Placing touch panel over a GLCD
Touch panel is connected to the microcontroller via pins RB8, RB9, RD10 and RD11