Page 2
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.
Table of Contents What is the SmartGLCD 240x128? step 5 – Uploading .hex file Package Contains step 6 – Progress bar 1. Key Features step 7 - Finishing upload System Specification Tips and Tricks: Speed-up UART data transfer 17 2. Power supply 6.
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.
Digital Analog I/O mikroProg 240x128 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 5V power supply...
System Specification power supply Via USB cable (5V DC) power consumption ~350mA in idle state (backlight is ON) board dimensions 140x90cm (5.51x3.24’’) weight ~210g (0.46 lbs) Page 7...
2. Power supply The SmartGLCD board can be powered in two different ways: via USB connector (CN1) using MINI-B USB cable provided with the board (Figure 2-1), or via side headers (CN2 or CN4) using external 5V power supply (Figure 2-2 and Figure 2-3). Figure 2-1: Figure 2-2: Figure 2-3:...
3. PIC18F87K22 microcontroller The SmartGLCD development tool comes with the PIC18F87K22 microcontroller. This 8-bit microcontroller is rich with on-chip peripherals and features 128KB of Flash and 4KB of RAM. It can easily handle demanding graphical applications. Key microcontroller features - Up to 12 MIPS Operation;...
4. Programming the microcontroller Figure 4-1: PIC18F87K22 microcontroller The microcontroller can be programmed in two ways: Using USB UART mikroBootloader Using external mikroProg for PIC, dsPIC, PIC32 programmer ™ Page 11...
5. Programming with bootloader mikroBootloader software Microcontroller is preprogrammed with USB UART Bootloader, note which can be used to upload new device firmware. To trans- Before starting mikroBootloader software, connect SmartGLCD fer firmware .HEX file from a PC to MCU you need to use mikro- to a PC using a USB cable provided with the package.
Identifying device COM port step 1 – Choosing COM port Figure 5-2: Identifying COM port Figure 5-3: Choosing COM port Click the Change Settings button. Port From the drop down list, select appropriate (in this Device Manager Ports Open window and expand Baud rate case it is COM18) and (115200).
step 2 - Establishing Connection step 3 - Browsing for .HEX file Figure 5-4: Connecting with mikroBootloader Figure 5-5: Browse for HEX Press Reset click Browse for HEX button on SmartGLCD board and Click the button and from a Connect within 5s, otherwise the existing microcontroller pop-up window (Figure 5-6) choose a .HEX file to be program will run.
step 4 – Selecting .hex file step 5 – Uploading .hex file Figure 5-6: Locating and selecting .hex file Figure 5-7: Begin uploading Open dialog Begin Select .HEX file from the window. In order to upload .HEX file click the uploading button.
step 6 – Progress bar step 7 - Finishing upload Figure 5-9: Restarting MCU Figure 5-8: Progress bar Progress bar enables you to monitor .HEX file Click button after the uploading process has been uploading. finished. Reset Press button on SmartGLCD board and wait for 5 seconds.
Tips and Tricks: Speed-up UART data transfer Right click on the USB Serial Port (COM18) item and then select Properties. note If .HEX file transfer from your PC to Select Port Settings tab. MCU is too slow, it’s possible to speed up data transfer by setting latency Click the Advanced...
6. Programming with mikroProg programmer ™ mikroProg The microcontroller can be programmed with the external programmer which can be connected to the board via CN3 ™ connector. Before establishing this connection it is necessary to solder 1x5 male header to CN3 connection pads. This can be done in both ways: on the bottom, or the top side, as shown in Figures 6-1 and 6-2.
Page 19
BAT43 mRST# mRST# MCLR PIC18F87K22 OSC2 VDDcore/Vcap OSC1 100nF Figure 6-3: mikroProg connection schematic ™ note Make sure to use only the front row of mikroProg’s IDC10 connector (side with a knob and incision) when connecting it to 1x5 header on your SmartGLCD board. Page 19...
7. mikroProg Suite for PIC Software ™ ® mikroProg programmer requires ™ special programming software called mikroProg Suite for PIC . It can be ™ ® used for programming all Microchip ® crocontroller families, including PIC10 ® PIC12 , PIC16 , PIC18 , dsPIC30/33 ®...
Page 21
Software Installation Wizard Start Installation Accept EULA and continue Install for all users Choose destination folder Installation in progress Finish installation Page 21...
8. microSD Card Slot Figure 8-1: microSD card slot There is a built-in microSD card slot provided on-board. It enables the expansion of available memory space using microSD cards. Communication between the microcontroller and the card is done through Serial Peripheral Interface (SPI). Page 22...
9. Touch Screen The development system features a Graphical LCD in 240x128 pixel resolution. Display is covered with a 4-wire resistive touch panel. Together they form a functional unit called a touch screen, Figure 9-1. It enables data to be entered and displayed at the same time.
10. RGB backlight Graphical LCDs are only capable of showing monochromatic pixel but not color content. The color of the pixel is determined by the color of the backlight which illuminates the display. SmartGLCD has RGB color backlight - a very useful feature which can give your graphical user interfaces an astonishing look.
11. Contrast potentiometer On the backside of the board there is a small potentiometer which can be used to change Figure 11-1: contrast of the GLCD. The brighter the backlight, the Constrast less contrast you will need to properly display the potentiometer graphical content.
13. Buzzer Figure 13-1: Buzzer module The board is also equipped with piezo buzzer. It is an electric component which can be used to create sound when provided with electrical signal. This is usually a PWM signal coming from a microcontroller pin. Before entering the buzzer itself, the signal is amplified by the on-board buzzer driver circuit.
GUI. It will automatically create necessary code which is compatible with mikroElektronika compilers. Visual GLCD is rich with examples, which are an excellent starting point for your future projects. Just load the example, read well commented code, and see how it works on hardware.
Page 35
No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution.
Page 36
If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/esupport If you have any questions, comments or business proposals, SmartGLCD 240x128 Manual ver. 1.51 do not hesitate to contact us at office@mikroe.com...
Need help?
Do you have a question about the SmartGLCD 240x128 and is the answer not in the manual?
Questions and answers