21
EasyPIC6 Development System
MikroElektronika
page
16.0. On-Board 2x16 LCD Display
On-board 2x16 display is connected to the microcontroller through a port expander. In order to use this display, it is necessary to set the DIP
switch SW10 to the ON position, thus connecting the on-board LCD display to port expander’s port 1. The DIP switch SW6 enables the port
expander to use serial communication. Potentiometer P5 is used for display contrast adjustment.
Unlike common LCD display, the on-board LCD display has no backlights and receives data to be displayed through the port expander
which employs SPI communication for the purpose of communicating with the microcontroller. Similar to standard 2x16 LCD display, the
on-board 2x16 LCD display also displays digits in two lines each containing up to 16 characters of 7x5 pixels.
VCC-MCU
VCC-MCU
X1
8MHz
C6
22pF
C7
22pF
COG-D7
RB0
PE-INT
A
PE-INTB
RB1
D7
COG-D6
D6
COG-D5
D5
COG-D4
D4
D3
D2
D1
D0
R/W
COG-E
E
COG-RS
RS
VCC-MCU
GND
Vo
VCC-MCU
VCC-MCU
RA2
SW6
SW10
CN17
RA3
RC3
RC4
RC5
P1.2
U5
P1.2
P1.3
P1.3
P1.4
P1.4
P1.5
P1.5
P1.6
P1.6
P1.7
P1.7
SCK
SPI-
SPI-SCK
CS#
PE-
PE-CS#
MOSI
SPI-
SPI-MOSI
MISO
SPI-
SPI-MISO
PE-
#
RST
PE-
#
RST
PE-INTB
PE-INTA
MCP23S17
P5
10K
Top view
GND
CS
SCK
SI
SO
GPA7
GPA6
GPA5
GPA4
GPA3
GPA2
GPA1
GPA0
INTA
INTB
RESET
A2
A1
A0
VCC
GPB0
GPB1
GPB2
GPB3
GPB4
GPB5
GPB6
GPB7
VCC-
MCU
PICxxxx
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
DIP40
R2
100K
Figure 16-2
: On-board 2x16 LCD display connection schematic
6:&65676&.0,62026, 21
6: 21
Figure 16-1
: On-board 2x16 LCD display
DIP switch SW10 to
turn the on-board 2x16
LCD display ON
Contrast adjustment
potentiometer