Datasheet

20
UNI-DS6
MikroElektronika
page
Figure 16-3 shows in detail how to connect a touch panel to the microcontroller. Bring the end of the at cable close to
the CN22 connector (Figure 3A). Plug the cable into the connector (Figure 3B) and press it easily so as to fully t the
connector (Figure 3C)� Now, a GLCD can be plugged into the appropriate connector (Figure 3D)�
NOTE: LEDs and pull-up/pull-down resistors on ports which are in use should be off when the touch panel is in use�
Figure 16-1 shows how to place a touch panel over a GLCD display. Make sure that the at cable is to the left of the
GLCD, as shown in Figure 1D�
16. Touch panel
A touch panel is a thin, self-adhesive, transparent, touch-sensitive panel� It is placed over a GLCD displayIts main function
is to register pressure at some specic 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 SW19 are used to connect the microcontroller and touch panel�
Figure 16-2: Touch panel connection schematic
D5
D4
D3
D2
D1
D0
E
R/W
RS
LED-
Vo
LED+
VCC
Vee
GND
RST
CS2
D7
CS1
D6
1
20
TOUCHPANEL
CONTROLLER
GLCD
Q7
BC856
Q5
BC846
VCC-BRD
VCC-BRD
VCC-BRD
VCC-BRD
Q8
BC856
Q
BC846
6
R48
1K
R47
1K0
R46
1K0
CN22
R45
1K0
R44
1K
R
K
66
100
R50
1K
R51
1K0
R
K
67
100
C25
100nF
C26
100nF
R49
1K0
Q
BC846
9
SW19
RF0
RA0
RF1
RA1
RB8
RC0
RB9
RC1
BO TOMT
BO TOMT
LEFT
LEFT
DRIVEA
DRIVEA
DRIVEB
DRIVEB
LEFT
LEFT
TOP
TOP
RIGHT
RIGHT
BOTTOM
BOTTOM
RA4 RE4
RE2
RA12
RB4 RF12
RB12 RG4
RC4 RG12
RC12 RH4
RD4 RJ4
RD12
USB-VBUS
RA6
RA14 RF6
RB6 RF14
RB14 RG6
RC6 RG14
RC14 RH6
RD6 RJ6
RD14
#RX232A
#TX232A
#SCL
#SDA
#SS1#
#SCK1
#MISO1
#MOSI1
USB-DP
RA0 RE0
RA8 RF0
RE6
RB0 RF8
RB8 RG0
RC0 RG8
RC8 RH0
RD0 RJ0
RD8
RA2
RA10 RF2
RF4
RB2 RF10
RB10 RG2
RC2 RG10
RC10 RH2
RD2 RJ2
RD10
RA5
RA13
RB5 RF13
RB13 RG5
RC5 RG13
RC13 RH5
RD5 RJ5
RD13
RA7
RA15 RF7
RF5
RF3
RB7 RF15
RB15 RG7
RC7 RG15
RC15 RH7
RD7 RJ7
RD15
#RX232B
#TX232B
#CS1#
#CS2#
#SS2#
#SCK2
#MISO2
#MOSI2
USB-DN
RA1 RE1
RA9 RF1
RE7
RE5
RE3
RB1 RF9
RB9 RG1
RC1 RG9
RC9 RH1
RD1 RJ1
RD9
RA3
RA11
RB3 RF11
RB11 RG3
RC3 RG11
RC11 RH3
RD3 RJ3
RD11
VCC-SW VCC-5V
CN20 CN21
Figure 16-3: Connecting touch panel
D
C
B
A
A
C
D
Figure 16-1: Placing touch panel over a GLCD