TO OUR VALUED CUSTOMERS
I want to express my thanks to you for being interested in our products and for having
confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic products
and to constantly improve the performance thereof in order to better suit your needs.
Nebojsa Matic
General Manager
The PIC
®
, dsPIC
®
, PIC24
®
, PIC32
®
and Windows
®
logos and product names are trademarks of Microchip Technology
®
and Microsoft
®
in the U.S.A. and other countries.
Page 2
Table of Contents
What is the SmartGLCD 240x128?
Package Contains
1. Key Features
System Specification
2. Power supply
3. PIC18F87K22 microcontroller
Key microcontroller features
4. Programming the microcontroller
5. Programming with bootloader
mikroBootloader software
Identifying device COM port
step 1 – Choosing COM port
step 2 - Establishing Connection
step 3 - Browsing for .HEX file
step 4 – Selecting .hex file
4
5
6
7
8
10
10
11
12
12
13
13
14
14
15
step 5 – Uploading .hex file
step 6 – Progress bar
step 7 - Finishing upload
6. Programming with mikroProg
™
programmer
7. mikroProg Suite
™
for PIC
®
Software
8. microSD Card Slot
9. Touch Screen
10. RGB backlight
11. Contrast potentiometer
12. USB UART
13. Buzzer
14. Pinout
15. Dimensions
What’s next?
15
16
16
18
20
22
24
26
27
28
30
32
33
34
Tips and Tricks: Speed-up UART data transfer 17
Page 3
What is the SmartGLCD 240x128?
The SmartGLCD 240x128 is a compact smart
display, with many on-board peripherals. It’s
designed to become a control interface of your
device. Main part of the board is a large 240x128
pixel graphical LCD with a 4-wire resistive touch
screen. It features RGB backlight, which can
greatly improve user experience, but can also
be used as a signaling feature. The heart of the
board is PIC18F87K22, an 8-bit microcontroller
delivering 12MIPS of processing power. Other
modules like USB UART, piezo buzzer, microSD
slot and connection pads can be found on board
as well. The board is preprogrammed with
UART bootloader. We have also provided a nice
example which will give you a great out-of-the-
box experience.
Page 4
Package Contains
www.mikroe.com
19122011
Copyright ©2011 Mikroelektronika.
All rights reserved. Mikroelektronika, Mikroelektronika logo and other
Mikroelektronika trademarks are the property of Mikroelektronika.
All other tradmarks are the property of their respective owners.
Unauthorised copying, hiring, renting, public performance
and broadcasting of this DVD prohibited.
01
Damage resistant
protective box
02
SmartGLCD 240x128
development board
03
DVD with documentation
and examples
SmartGLCD
240x128
I2C/SPI
SCK1/SCL1
SDI1/SDA1
SDO1
Digital I/O
Digital I/O
SCHEMATICS
I2C/SPI
SDO2
SDI2/SDA2
SCK2/SCL2
TX
RX UART
Ground
Digital
I/O
AN2
AN3
AN4
SmartGLCD 240x128 - pinout
RA2
RA3
RA4
RA5
RB0
RB1
RB2
RB3
RB4
RC3
RC4
RC5
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RE0
RE1
RE2
RE3
RE4
RE5
RE6
RE7
NC
RF1
RF2
RF3
RF4
RF5
RF6
RF7
RG1
RG2
GND
5V
GND
RST
PGD
PGC
5V
ver. 1.51
INT
PWM
Analog I/O
SmartGLCD
SmartGLCD 240x128 Pinout
Digital I/O
Digital I/O
5V power
supply
mikroProg
0 100000 024447
240x128
Interrupt Lines
UART lines
We present you with a complete color schematics for SmartGLCD 240x128
development board. We want you to know what your board is consisted of and
how it actually works.
3.3V power supply output
Ground
5V power supply
Ground
Analog Lines
I2C Lines
SPI Lines
04
SmartGLCD 240x128
user’s guide
05
SmartGLCD 240x128
schematic and pinout
Page 5
06
USB cable