36
240x128 SmartGLCD

SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

240x128SmartGLCD

Page 2: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 2

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.

TO OUR VALUED CUSTOMERS

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 3: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

What is the SmartGLCD 240x128? 4

Package Contains 5

1. Key Features 6

System Specification 7

2. Power supply 8

3. PIC18F87K22 microcontroller 10

Key microcontroller features 10

4. Programming the microcontroller 11

5. Programming with bootloader 12

mikroBootloader software 12

Identifying device COM port 13

step 1 – Choosing COM port 13

step 2 - Establishing Connection 14

step 3 - Browsing for .HEX file 14

step 4 – Selecting .hex file 15

step 5 – Uploading .hex file 15

step 6 – Progress bar 16

step 7 - Finishing upload 16

Tips and Tricks: Speed-up UART data transfer 17

6. Programming with mikroProg™ programmer 18

7. mikroProg Suite™ for PIC® Software 20

8. microSD Card Slot 22

9. Touch Screen 24

10. RGB backlight 26

11. Contrast potentiometer 27

12. USB UART 28

13. Buzzer 30

14. Pinout 32

15. Dimensions 33

What’s next? 34

Page 3

Table of Contents

Page 4: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 4

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.

What is the SmartGLCD 240x128?

Page 5: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Smar

tGLC

D 2

40

x12

8 -

pino

ut

SPI L

ines

Inte

rrup

t Li

nes

Ana

log

Line

s

I2C

Line

s

UA

RT li

nes

INT

I2C/SPI

PWM Analog I/O mikroProg

Gro

und

I2C/SPI

TXU

ART

Dig

ital

I/O

AN

2A

N3

Dig

ital

I/O

Dig

ital

I/O

Digital I/O

Dig

ital

I/O

AN

4

SCK

1/S

CL1

SDI1

/SD

A1

SDO

1

SDO

2SD

I2/S

DA

2SC

K2

/SCL

2

RX

5V power supplyGround Ground

3.3V power supply output

5V

pow

er

supp

ly

RA

2R

A3

RA

4R

A5

RB

0R

B1

RB

2R

B3

RB

4R

C3R

C4R

C5R

D0

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

E0R

E1R

E2R

E3R

E4R

E5R

E6R

E7N

CR

F1R

F2R

F3R

F4R

F5R

F6R

F7

GN

D

RG

1

RST

RG

2

PGD

GN

D

PGC

5V 5V

Smar

tGLC

D 2

40x1

28 P

inou

tve

r. 1

.51

010

0000

0244

47

Page 5Page 4

01 02

04 05

03

06

Damage resistant

protective box

SmartGLCD 240x128

development board

SmartGLCD 240x128 user’s guide

SmartGLCD 240x128 schematic and pinout

DVD with documentation

and examples

USB cable

240x128SmartGLCD

SCHEMATICS

We present you with a complete color schematics for SmartGLCD 240x128 development board. We want you to know what your board is consisted of andhow it actually works.

240x128SmartGLCD

Package Contains

19122011 www.mikroe.com

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.

Page 6: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 6

01

02 03

01

02

03

04

05

06

07

08

09

10

11

12

GLCD 240x128 display

RESET button

Power supply pads

I/O pads

Pads for mikroProg programmer

USB connector

Touch panel connector

PIC18F87K22 microcontroler

Contrast potentiometer

microSD card slot

USB UART module

Buzzer

1. Key Features

Page 7: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 7

power supply

Via USB cable (5V DC)

weight

~210g (0.46 lbs)

board dimensions

140x90cm (5.51x3.24’’)

power consumption

~350mA in idle state

(backlight is ON)

06

07

04 0512

System Specification

11080910

Page 8: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 8

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).

When the board is powered up the GLCD display will be automatically turned on. The USB connection can provide up to 500mA of current

which is more than enough for the operation of all on-board modules and the microcontroller as well.

2. Power supply

Figure 2-1: connecting USB power supply

through CN1 connector

Figure 2-2: connecting external 5V power supply through CN2 connector

Figure 2-3: connecting external 5V power supply through CN4 connector

Page 9: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 9

Figure 2-4: Power supply schematic

FB1

FERRITEBEAD

VCCVCC-3.3VCC-MMC VINVOUT

REG1

MC33269DT-3.31

32

E1E2 E3

10uF10uF 47uF

C10C11

100nF100nF

CN1

USB MINI-BVCC

VCC

VCCVCC-3.3

CN2

CN4

Page 10: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 10

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;

- 8-bit architecture;

- 128KB of Flash memory;

- 3,862 bytes of RAM;

- 1024 bytes of EEPROM;

- 80 pin TQFP;

- 24 ch, 12-bit ADC;

- UART, SPI, I2C; etc.

Data/Memory Bus

Data Bus

PIC18F16 MIPS 8-bit Core- nanoWatt

- Up to 64MHz

31 LevelStack

ProgramCounter

Instruction Data

I/O Timers Comparators ADC12-Bit USART CCP MSSP

Flash(Up to 128KB) RAM

(Up to 3.9KB)

DataAddressAddress

Decoder

SPII2C

Page 11: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 11

01

02

Using USB UART mikroBootloader

Using external mikroProg™ for PIC, dsPIC, PIC32 programmer

Figure 4-1:PIC18F87K22 microcontroller

The microcontroller can be programmed in two ways:

4. Programming the microcontroller

Page 12: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 12

5. Programming with bootloader

Microcontroller is preprogrammed with USB UART Bootloader,

which can be used to upload new device firmware. To trans-

fer firmware .HEX file from a PC to MCU you need to use mikro-

Bootloader USB UART application, which can be downloaded from:

Upon download, unzip it to desired location and start the

mikroBootloader application:

http://www.mikroe.com/smartglcd/

note

Figure 5-1: mikroBootloader window

mikroBootloader software

01 When you start mikroBootloader software a window should appear, as shown in the image above.

Before starting mikroBootloader software, connect SmartGLCD

to a PC using a USB cable provided with the package.

Page 13: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 13

Identifying device COM port

Figure 5-2: Identifying COM port

step 1 – Choosing COM port

01

02

03

01 Open Device Manager window and expand Ports (COM & LPT) section to check which COM port is assigned to SmartGLCD board (in this case it is COM18).

Figure 5-3: Choosing COM port

01

02

03

Click the Change Settings button.

From the drop down list, select appropriate Port (in this case it is COM18) and Baud rate (115200).

Click OK.

Page 14: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 14

01

01

Figure 5-4: Connecting with mikroBootloader Figure 5-5: Browse for HEX

01 01Press the Reset button on SmartGLCD board and click Connect within 5s, otherwise the existing microcontroller program will run. If connected, the button’s caption will be changed to Disconnect.

Click the Browse for HEX button and from a pop-up window (Figure 5-6) choose a .HEX file to be uploaded in MCU memory.

step 2 - Establishing Connection step 3 - Browsing for .HEX file

Page 15: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 15

Figure 5-7: Begin uploading

step 4 – Selecting .hex file step 5 – Uploading .hex file

01

02

01

Figure 5-6: Locating and selecting .hex file

01

02

Select .HEX file from the Open dialog window.

Click the Open button.

01 In order to upload .HEX file click the Begin uploading button.

Page 16: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 16

01

step 6 – Progress bar

01

step 7 - Finishing upload

Figure 5-8: Progress bar Figure 5-9: Restarting MCU

01 01

02

Progress bar enables you to monitor .HEX file uploading.

Click OK button after the uploading process has been finished.

Press Reset button on SmartGLCD board and wait for 5 seconds. Your program will run automatically.

Page 17: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 17

01

02

03

04

Right click on the USB Serial Port (COM18) item and then select Properties.

Select Port Settings tab.

Click the Advanced... button.

Set Latency Timer to 1 and click OK.

Tips and Tricks: Speed-up UART data transfer

If .HEX file transfer from your PC to

MCU is too slow, it’s possible to speed

up data transfer by setting latency

time of COM port to 1 ms. This is done

in Device Manager:

02

03

04

01

note

Page 18: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 18

6. Programming with mikroProg™ programmer

Figure 6-2:The mikroProg can be also attached on the front side of the board. In this case, solder

1x5 header to front side pads (CN3).

Figure 6-1: The mikroProg can be attached on the back side of the board. Just solder 1x5 header to

back side pads (CN3) before connecting it.

The microcontroller can be programmed with the external mikroProg™ 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.

If bootloader program is accidently erased you can upload it again through mikroProg programmer.

Program Bootloader18F87K22.hex can be found under Firmware folder (page 12).note

Page 19: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 19

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.

VCC

PIC18F87K22

RH

1R

H5

RH

4R

F1E

NV

RE

GAV

CC

AG

ND

RA

3R

A2

RA

1R

A0

GN

DV

CC

RA

5R

A4

RC

1R

C0

RC

6R

C7

RJ4

RJ5

RH

0R

E2

RE

3R

E4

RE

5R

E6

RE

7R

D0

VC

CG

ND

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

J0R

J1

RH2 RJ2RJ3RB0RB1RB2RB3RB4RB5RB6GND

OSC2OSC1

VCCRB7RC5RC4RC3RC2RJ7RJ6

RH3RE1RE0RG0RG1RG2RG3MCLRRG4GNDVDDcore/VcapRF7RF6RF5RF4RF3RF2RH7RH6

VC

C

VC

C

VCC

D1BAT43

R221K

VCC

C5100nF

E5

10uF

VCCPGCPGD

CN3

mRST#

PGD

PGCmRST#

Figure 6-3: mikroProg™ connection schematic

note

Page 20: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 20

7. mikroProg Suite™ for PIC® Software

The mikroProg™ programmer requires

special programming software called

mikroProg Suite™ for PIC®. It can be

used for programming all Microchip® mi-

crocontroller families, including PIC10®,

PIC12®, PIC16®, PIC18®, dsPIC30/33®,

PIC24® and PIC32®. The software has

intuitive interface and SingleClick™

programming technology. Just down-

load the latest version of mikroProg Suite™ and your programmer is ready

to program new devices. mikroProg Suite™ is updated regularly, at least

four times a year, so your programmer

will be more and more powerful with

each new release.

Figure 7-1: Main window of mikroProg Suite™ for PIC® programming software

Page 20

Page 21: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 21

01

04

02

05

03

06

Start Installation

Choose destination folder

Accept EULA and continue

Installation in progress

Install for all users

Finish installation

Software Installation Wizard

Page 22: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

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).

8. microSD Card Slot

Figure 8-1: microSD card slot

Page 22

Page 23: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 23

Figure 8-2: microSD Card Slot module connection schematic

R292K2

R282K2

R272K2

R323K3

R331K

R313K3

R303K3

VCC-MMC

MM

C-C

S#

MM

C-C

D#

RC

5-MO

SI

RC

3-SC

K

CN5microSD CARD

CDCMDVCC

CLKGNDDAT0

G

VCC

C100nF

12

FB1

FERRITEBEAD

VCCVCC-3.3VCC-MMC VINVOUT

REG1

MC33269DT-3.31

32

E1E2 E3

10uF10uF 47uF

C10C11

100nF100nF

VCC

PIC18F87K22

RH

1R

H5

RH

4R

F1E

NV

RE

GAV

CC

AG

ND

RA

3R

A2

RA

1R

A0

GN

DV

CC

RA

5R

A4

RC

1R

C0

RC

6R

C7

RJ4

RJ5

RH

0R

E2

RE

3R

E4

RE

5R

E6

RE

7R

D0

VC

CG

ND

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

J0R

J1

RH2 RJ2RJ3RB0RB1RB2RB3RB4RB5RB6GND

OSC2OSC1

VCCRB7RC5RC4RC3RC2RJ7RJ6

RH3RE1RE0RG0RG1RG2RG3MCLRRG4GNDVDDcore/VcapRF7RF6RF5RF4RF3RF2RH7RH6

VC

C

VC

C

VC

C

RC3-SCKRC4-MISORC5-MOSI

MMC-CD#

C5100nF

RC

4-M

ISO

MM

C-C

S#

E5

10uF

Page 24: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Figure 9-1: Touch Screen

9. Touch Screen

Page 24

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.

Page 25: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 25

Figure 9-2: Touch Screen connection schematic

TOU

CH

PAN

EL

TOUCH PANELCONTROLLER

Q6BC556

Q4BC546

VCC

VCC

VCC

VCC

Q8BC556

QBC546

5

R1K

21

R10K

15

R10K

7

R10K

14

R10K

13

RK

17100

R10K

18

R10K

19

RK

20100

C6100nF

C9100nF

R10K

26

QBC546

7

LEFT

TOP

RIGHT

BOTTOM

DRIVEB

DRIVEA

CN6

VO

GLC

D-C

DG

LCD

-RD

#G

LCD

-WR

#G

LCD

-D0

GLC

D-D

1G

LCD

-D2

GLC

D-D

3G

LCD

-D4

GLC

D-D

5G

LCD

-D6

GLC

D-D

7G

LCD

-CE

#G

LCD

-RE

S#

Vee

GLC

D-M

DG

LCD

-FS

GLCDCONTROLLER

RA6963

VCC

PIC18F87K22

RH

1R

H5

RH

4R

F1E

NV

RE

GAV

CC

AG

ND

RA

3R

A2

RA

1R

A0

GN

DV

CC

RA

5R

A4

RC

1R

C0

RC

6R

C7

RJ4

RJ5

RH

0R

E2

RE

3R

E4

RE

5R

E6

RE

7R

D0

VC

CG

ND

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

J0R

J1

RH2 RJ2RJ3RB0RB1RB2RB3RB4RB5RB6GND

OSC2OSC1

VCCRB7RC5RC4RC3RC2RJ7RJ6

RH3RE1RE0RG0RG1RG2RG3MCLRRG4GNDVDDcore/VcapRF7RF6RF5RF4RF3RF2RH7RH6

VC

C

VC

C

VC

C

GLCD-D2GLCD-D3

DRIVEA

DRIVEB

GLCD-D7GLCD-D6

GLC

D-D

5G

LCD

-D4

LEFT

BO

TTO

M

GLC

D-R

ES

#G

LCD

-MD

GLCD-FS

GLCD-CE#GLCD-WR#

GLC

D-R

D#

GLC

D-C

D

GLC

D-D

0G

LCD

-D1

VCC10K

10K

R34

R23

GLCD-FS

GLCD-MDC5100nF

VO

CONTRAST

VEE

VR10K

E5

10uF

Page 26: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

10. RGB backlight

Page 26

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 the RGB color backlight - a very

useful feature which can give

your graphical user interfaces an

astonishing look.

Display’s backlight module consists

of three LEDs: red, green and blue,

which can shine simoutaneously.

LED can be driven by PWM signals

coming from three separate

microcontroller pins. Duty ratio of

the PWM signal determines the

intensity of color (or brightness) of

each LED. Combined together they

can create more than 16 milion

different backlight colors.

Figure 10-1:The same graphics

with different backlight colors

Page 27: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 27

11. Contrast potentiometer

On the backside of the board there is a small

potentiometer which can be used to change

contrast of the GLCD. The brighter the backlight, the

less contrast you will need to properly display the

graphical content.

Figure 11-1:Constrast

potentiometer

Page 28: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

12. USB UART

Page 28

Fast on-board FTDI® chip allows you to communicate with a PC or other UART devices

using USB UART connection. Before connecting the board to a PC, make sure that you

have the appropriate FTDI drivers installed on your operating system. Drivers can be

found on the Product DVD:

USB-B connector (CN1) is used for connecting the USB cable, which is delivered with

the board package. Plug it in as shown in Figure 12-1.

Figure 12-1: Connecting USB cable

to SmartGLCD board

DVD://download/eng/software/development-tools/universal/ftdi/vcp_drivers.zip19122011

www.mikroe.com

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.

Available on Product DVD!

Page 29: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 29

Figure 12-2: USB UART module connection schematic

UART-TX

UART-RX

OSCIDTR#

OSCOTXD

TEST

VCC

RTS#

DSR#

AGND

RESET#

VCCIO

DCD#

NC

GND

RXD

CTS#

CBUS1

USBDM

GND

CBUS2

GND

USBDP

NC

CBUS3

CBUS0

3V3OUT

RI#

CBUS4

FT232RL

U12VCC

C15

100nF

VCC

C16

100nF

C17100nF

CN1

USBDMUSBDP

USB MINI-B

VCC

E4

10uF

VCC-3.3

VCC

VCC

R94K7

R1010K

VC

PIC18F87K22

RH

1R

H5

RH

4R

F1E

NV

RE

GAV

CC

AG

ND

RA

3R

A2

RA

1R

A0

GN

DV

CC

RA

5R

A4

RC

1R

C0

RC

6R

C7

RJ4

RJ5

RH

0R

E2

RE

3R

E4

RE

5R

E6

RE

7R

D0

VC

CG

ND

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

J0R

J1

RH2 RJ2RJ3RB0RB1RB2RB3RB4RB5RB6GND

OSC2OSC1

VCCRB7RC5RC4RC3RC2RJ7RJ6

RH3RE1RE0RG0RG1RG2RG3MCLRRG4GNDVDDcore/VcapRF7RF6RF5RF4RF3RF2RH7RH6

VC

C

VC

C

VC

C

UA

RT-

RX

UA

RT-

TXC5100nF

E5

10uF

C

Page 30: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Figure 13-1: Buzzer module

13. Buzzer

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. Frequency of the signal determines

the pitch of the sound and duty cycle of the signal can be used to

increase or decrease the volume.

Page 30

Page 31: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 31

Figure 13-2: Buzzer module schematic

10K

R36

1KR35

Q9BC546

1KR37 BZ1

VCC

VCC

PIC18F87K22

RH

1R

H5

RH

4R

F1E

NV

RE

GAV

CC

AG

ND

RA

3R

A2

RA

1R

A0

GN

DV

CC

RA

5R

A4

RC

1R

C0

RC

6R

C7

RJ4

RJ5

RH

0R

E2

RE

3R

E4

RE

5R

E6

RE

7R

D0

VC

CG

ND

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

J0R

J1

RH2 RJ2RJ3RB0RB1RB2RB3RB4RB5RB6GND

OSC2OSC1

VCCRB7RC5RC4RC3RC2RJ7RJ6

RH3RE1RE0RG0RG1RG2RG3MCLRRG4GNDVDDcore/VcapRF7RF6RF5RF4RF3RF2RH7RH6

VC

C

VC

C

VC

C

C5100nF

E5

10uF

Page 32: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 32

14. Pinout

SPI Lines

Interrupt Lines

Analog Lines

I2C Lines

UART lines

INT

I2C/SPI

PWM Analog I/O mikroProg

Gro

und

I2C/SPI

TXU

ART

Dig

ital

I/O

AN

2A

N3

Dig

ital

I/O

Dig

ital

I/O

Digital I/O

Dig

ital

I/O

AN

4

SCK

1/S

CL1

SDI1

/SD

A1

SDO

1

SDO

2SD

I2/S

DA

2SC

K2

/SCL

2

RX

5V power supplyGround Ground

3.3V power supply output

5V

pow

er

supp

ly

RA

2R

A3

RA

4R

A5

RB

0R

B1

RB

2R

B3

RB

4R

C3R

C4R

C5R

D0

RD

1R

D2

RD

3R

D4

RD

5R

D6

RD

7R

E0R

E1R

E2R

E3R

E4R

E5R

E6R

E7N

CR

F1R

F2R

F3R

F4R

F5R

F6R

F7

GN

D

RG

1

RST

RG

2

PGD

GN

D

PGC

5V 5V

Page 33: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 33

15. Dimensions140

5512

12

.34

21

90

83

35

43

32

68

2.5

4

10

0

Tolerance +/- 0.5mm

11,6457

7.7

73

06

14

.73

58

0

12,7500

12,74000

11,56455

301181

1285040

7276

2 (79)

12.57500

13.12516

4.8190

Legend

Pad hole size

Mounting hole size

45 milsø 1.14 mmø

ø 157 mils

ø 4 mm

107.54232

1144488

display margin

display

active surface

57

.52

26

4

64

25

20

74

29

13

1.663

16.3642

Page 34: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 34

You still don’t have an appropriate compiler? Locate PIC® compiler that suits you best on the

Product DVD provided with the package:

Choose between mikroC™, mikroBasic™ and mikroPascal™ and download fully functional

demo version, so you can begin building your first applications.

Once you have chosen your compiler, and since you already got the board, you are ready to start writing your first

projects. Visual GLCD software for rapid development of graphical user interfaces enables you to quickly create

your 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. Visual GLCD is also available on the Product DVD.

Your journey through each and every feature of SmartGLCD board ends here. You got to know it’s modules and organization. Now you are ready

to use it. We are suggesting several steps which are probably the best way to begin with. We invite you to join the users of SmartGLCD brand.

You will find very useful projects and tutorials and can get help from a large ecosystem of users. Welcome!

Compiler

Projects

DVD://download/eng/software/compilers/

What’s next?

Page 35: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

Page 35

DISCLAIMER

All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. 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. Any modification of this manual is prohibited.

MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of merchantability or fitness for a particular purpose.

MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary.

TRADEMARKS

The MikroElektronika name and logo, the MikroElektronika logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, mikroBUS™, Click Boards™, EasyPIC and mikromedia™ are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for identification or explanation and to the owners’ benefit, with no intent to infringe.

Copyright © MikroElektronika, 2013, All Rights Reserved.

HIGH RISK ACTIVITIES

The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazard-ous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.

Page 36: SmartGLCD - Mikroelektronika · 2016-03-25 · Page 4 The SmartGLCD 240x128 is a compact smart display, with many on-board peripherals. It’s designed to become a control interface

If you want to learn more about our products, please visit our website at www.mikroe.com

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,

do not hesitate to contact us at [email protected] 240x128 Manual

ver. 1.51

0 100000 024430