M I K R O E L E K T R O N I K A S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D
2
21
1
page
EasyAVR
USB
4
EasyAVR4 User
’
s Manual
MikroElektronika
Development
tools
LL
CC
DD
22
XX
11
66
II
NN
44
--
BB
IITT
MM
OO
DD
EE
2x16 LCD
2x16 LCD
2x16 LCD
CONNECTOR
2x16 LCD
CONNECTOR
ON-BOARD
ON-BOARD
A standard character LCD is probably the most widely used data visualization component.
Usually, it can display two lines of 16 alphanumeric characters, each made up of 5x8 pix-
els. The character LCD communicates with the microcontroller via a 4-bit or 8-bit data bus,
each requiring the use of a different connector on EasyAVR4. For 4-bit data bus use, the
LCD should be placed in the upper left of the board, just above the LEDs. The connection
to the microcontroller is shown in Fig. 28 where there are only four data lines. It is impor-
tant to note that the LCD should be placed or removed from EasyAVR4 only when the
power is off.
LCD 2X16 IN 4-BIT MODE
D7
D6
D5
D4
D3
D2
D1
D0
E
R/W
RS
VEE
VCC
GND
P2
10K
Contrast
Adjustment
1
14
VCC
LCD Display
4-bit mode
A
TMEGAxxxx
PB1
PB2
PB3
PB4
PD1
PD2
PB5
PB6
PB7
PD4
PD5
PD6
PC1
PC0
PD7
PC2
PC3
PC4
PC5
PC6
PC7
PA7
PA6
PA5
PA4
PA3
PA2
PA0
PA1
PD3
PB0
PD0
RST
VCC
GND
XT2
XT1
AREF
AGND
AVCC
VCC
OSCILLATOR
10K
Reset
100n
VCC
PA
7
PA
6
PA
5
PA
4
GND
GND
GND
GND
PD6
GND
PD4
RS
E
D4
D5
D6
D7
Figure 27.
Figure 28.
LCD 2x16 in 4-bit mode
LCD 2x16 in 4-bit
mode schematics