easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the...

17
easyPIC40™ Development Board Users Manual www.LogiFind.com 1 To our valued customers I want to express my thanks to you for being interested in our products and for having confidence in LogiFind International CO,. Ltd..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. Please share your thoughts and feelings regarding our operation so that we can serve you better in the future. I thank you for your continued support and patronage. Your Dream is our Destination! The Microchip, TI,Freescale,ST,Atmel,Silicon and CYPRESS name, logo and products names are trademarks of Microchip, TI,Freescale,ST,Atmel,Silicon and CYPRESS Inc. in the U.S.A. and other countries. Sincerely, Owner and General Manager of LogiFind International CO,. Ltd.

Transcript of easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the...

Page 1: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 1

To our valued customers

I want to express my thanks to you for being interested in our products and for having confidence in LogiFind

International CO,. Ltd..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.

Please share your thoughts and feelings regarding our operation so that we can serve you better in the future. I

thank you for your continued support and patronage.

Your Dream is our Destination!

The Microchip, TI,Freescale,ST,Atmel,Silicon and CYPRESS name, logo and products names are trademarks of

Microchip, TI,Freescale,ST,Atmel,Silicon and CYPRESS Inc. in the U.S.A. and other countries.

Sincerely,

Owner and General Manager

of LogiFind International CO,. Ltd.

Page 2: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 2

CONTENTS

Chapter 1: Introduction .......................................................................................................................................... 3

1.1.1.1.1.1.1.1.What is easyPIC�40™? ................................................................................................................................... 3

1.2.1.2.1.2.1.2.Appliance .......................................................................................................................................................... 3

1.3.1.3.1.3.1.3.Power supply .................................................................................................................................................... 3

1.4.Programmer/Debugger Requirement .............................................................................................................. 3

1.5.1.5.1.5.1.5.What’s on board .............................................................................................................................................. 3

Chapter 2: Functional Modules Details ................................................................................................................. 4

2.1 Power supply and USB Module ................................................................................................................ 4

2.2 Small System for DIP40 PICs ................................................................................................................... 4

2.3 Six Digit 7�seg Display Module ................................................................................................................. 5

2.4 8 LEDs Module ....................................................................................................................................... 5

2.5 4*4 Matrix Keys Board .......................................................................................................................... 6

2.6 Joystick Module ......................................................................................................................................... 6

2.7 Stepper Motor and Buzzer Module driven by ULN2003A .................................................................... 7

2.8 DS18B20/Remote/ADC Modules .............................................................................................................. 8

2.9 Real Time Clock/EEPROM Module ........................................................................................................ 9

2.10 SD/MMC Card Module ..........................................................................................................................11

2.11 RS232 to TTL Converter communication Module ............................................................................. 12

2.12 LCD 2x16 characters display Module(Socket) .................................................................................... 12

2.13 GLCD 128x64 display Module(Socket) ................................................................................................ 13

2.14 ICSP Programming Port ....................................................................................................................... 14

2.15 System Reset ........................................................................................................................................... 15

Schematic ............................................................................................................................................................. 16

Contact Us ............................................................................................................................................................ 16

Disclaimer ............................................................................................................................................................... 17

Page 3: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 3

Chapter 1: Introduction

1.11.11.11.1....What is easyPIC�40™?

The easyPIC540 is a demonstration and development platform for Microchip’s 8/165bit microcontrollers with

40PINOUTs. The board provides a platform to highlight this new family’s benchmark for lower power

consumption and high5performance operation. It includes the development board, the User’s guide and demos.

The easyPIC540 together with online debugger ICD2/KIT2/ KIT3 produced by Microchip, can bring you a

multiplier benefit.

1.21.21.21.2....Appliance

The easyPIC540 represents a development system which can be used as a stand5alone device. it has many users

among students, hobbyists, enthusiasts and professionals. And it is ideal for low5cost experimenting and final

product design.

1.31.31.31.3....Power supply

For connection with a power supply source the easyPIC540 uses a Jack EX5PWR. The power supply voltage level

can vary from +7510V DC.

1.4. Programmer/Debugger Requirement

An external PIC programmer or Debugger is required to download code to the DIP540 PICs on the board.It

supports many Programmers or Debuggers like PICKIT2,PICKIT3 or ICD2 etc.

1.51.51.51.5....What’s on board

Page 4: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 4

Chapter 2: Functional Modules Details

2.1 Power supply and USB Module

3.3V

PW

R

R21K

C7

10 4

Vin1

GN

D2

+5 V3

L7 805

D1

GND2

VCC1

POWER(7510 V)

+C8

47 0u

VCC

5V

123

J2

55

66

VC

C1

DA

TA

52

DA

TA

+3

GN

D4

USB/POW ER

C2 10 45V

FU

SE

ON

OFF

PO

WE

RS

W

VIN3

GN

D1

VOUT2

LM1 117 53 .3

C4

10 4+C3

10 u

C6

10 4+C5

10 u

5V 3.3V

VCC

POWER/USB

RC4RC5

The easyPIC540 is powered with +(7510)VDC from “POWER” JACK connector or from USB connector. Current

consumption from power supply is typical around 100mA with shipped easyPIC540 demo code.The L7805 and

LM111753.3V chip provides 5.0V and 3.3V for the system.The USB port is for USB communication and power.

2.2 Small System for DIP40 PICs

C15

22 p

C16

22 p

MCLRVPP/THV1

RA0 /AN02

RA1 /AN13

RA2 /AN2/VREF54

RA3 /AN3/VREF+5

RA4 /T0CKI6

RA5 /AN4/SS7

RE0/RD/AN58

RE1/WR/AN69

RE2/CS/AN710

VDD11

VSS12

OSC1/CLKIN13

OSC2/CLKOUT14

RC0 /T1OSO/T1CKI15

RC1 /T1OSI/CCP216

RC2 /CCP117

RC3 /SCK/SCL18

RD0 /PSP019

RD1 /PSP120

RD2 /PSP221

RD3 /PSP322

RC4 /SDI/SDA23

RC5 /SDO24

RC6 /TX/CK25

RC7 /RX/DT26

RD4 /PSP427

RD5 /PSP528

RD6 /PSP629

RD7 /PSP730

VSS31

VDD32

RB0 /INT33

RB134

RB235

RB3 /PGM36

RB437

RB538

RB6 /PGC39

RB7 /PGD40

PIC5DIP40

VCCVCC

MCLRRA0RA1RA2RA3RA4RA5RE0RE1RE2

OSC2RC0RC1RC2RC3 RC4

RC5RC6RC7

RD0RD1 RD2

RD3

RD4RD5RD6RD7

RB0RB1RB2RB3RB4RB5RB6RB7

OSC1

Y1

C17 10 4VCC

C18 10 4VCC

J12 J13

Microcontroller12

US

B_E

N

C27

10 4

The board contains DIP40 socket for 16F/18F MCUs with 40 PINs.The easyPIC40 development system comes

with the PIC16F877A microcontroller in a DIP40 package by default.It equipes a socket allow you change

different crystal very easily.The 2p Jumper USB_EN is for enabling the USB connection,but it is only available

for the microcontrollers with USB function inside,like PIC18F4550.

Page 5: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 5

2.3 Six Digit 7�seg Display Module

Q290 15

Q590 15

Q490 15

RA0RA1

RD

0

R33R34R35R36R37R38R39R40

Q190 15

Q690 15

VCC

DS

11

DS

22

DS

33

E4

D5

C6

DP

7

DS

68

DS

59

DS

410

G11

B12

A13

F14

75SEGMENT

ONONONONONONONON

SW 9J10

J11

ONONONONONON

SW 10

RD0RD1RD2RD3RD4RD5RD6RD7

RA0RA1RA2RA3RA4RA5

Q3

R41R42R43R44R45R46

VCC VCC VCCVCC

VCCVCC

DS

1

DS

2

DS

3

DS

4

DS

5

DS

6

DS1 DS2 DS3 DS4

DS5 DS6

75SEGMENT

One seven segment digit consist of 7+1 LEDs which are arranged in a specific formation which can be used to

represent digits from 0 to 9 and even some letters. One additional LED is used for marking the decimal dot, in

case you want to write a decimal point in the desired segment. The easyPIC540 contains six of these digits put

together to form 65digit 75segment display. Driving such a display is done using multiplexing techniques. Data

lines are shared between segments, and therefore the same segment LEDs in each digit are connected in parallel.

Each digit has it’s unique digit select line, which is used to enable the digit to which the data is currently being

sent. By multiplexing data through all six segments fast enough, you create an illusion that all six segments are in

operation simultaneously. This is possible because human eye has a slower reaction time than the mention changes.

This way you can represent numbers in decimal or hexadecimal form. Eight data lines that are common for all the

digits are connected to PORTD, and digit select lines are connected to RA0– RA5 lines on the microcontroller

sockets.

To enable digit select lines for the 65digit 75segment display you have to turn on SW9 and SW10 switches. Digit

select lines are connected to PA0 – PA5 pins on the microcontroller sockets, while data lines are connected to RD0

– RD7 pins. Make sure to disconnect other peripherals from the interface lines in order not to interfere with

signal/data integrity.

2.4 8 LEDs Module

The board equipes 8 LEDs for OUTPUT test.All LEDs are connected to RD PORT.We have also provided an

additional PORT headers J4 on the near side of the SW3, so you can access any pin you want from both sides of

the board and make it easily to use this module for other development board.

In this example application,you only need to turn the “SW3” on.

Page 6: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 6

L1

L2

L3

L4

L5

L6

L7

L8

R13

1K

R12

1K

R11

1KR10

1K

R9

1K

R8

1K

R7

1K

R14

1K

RD0RD1RD2RD3RD4RD5RD6RD7

ONONONONONONONON

SW 3J4

LEDs

2.5 4*4 Matrix Keys Board

KEY1 KEY2 KEY3 KEY4

KEY5 KEY6 KEY7 KEY8

KEY9 KEY10 KEY11 KEY12

KEY13 KEY14 KEY15 KEY16

RB

0R

B1

RB

2R

B3

RB

4R

B5

RB

6R

B7

VCC

ON

ON

ON

ON

ON

ON

ON

ON S

W6

J7

RO

W4

RO

W1

RO

W2

RO

W3

CO

L1

CO

L2

CO

L3

CO

L4

R2810 K

R2710 K

R2610 K

R2510 K

R2410 K

R2310 K

R2210 K

R2910 K

RO

W4

RO

W1

RO

W2

RO

W3

CO

L1

CO

L2

CO

L3

CO

L4

The easyPIC540 contains 4*4 matrix key board for I/O input test,which has 8 up5pull resistors to ensure the

stability of voltage level of data online.In this example application,you need to turn the “SW6”, “SW9”and

“SW10” on.The 6 digit 75segment LED will display the key value of the keyboard.Prior to using this Module in

your application,make sure to disconnect other unused peripherals, LEDs and additional pull5up or pull5down

resistors from the interface lines in order not to interfere with signal/data integrity.

2.6 Joystick Module

Page 7: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 7

RB0RB1RB2RB3

R19R20R21

R18

R17

RB4

A1

CTR2

C3

B4

COM5

D6

SHIELD17

SHIELD28

Joy stick

J6

ONONONONON

SW 5

LEFTCTR

DOW N RIGHT

UPVCC

VCC

VCC

LEFTCTRDOW N

RIGHTUP

Joystick

The easyPIC540 contains a Joystick Convenient for I/O input (five positions).In this example application,you need

to turn the “SW5”, “SW9”and “SW10” on.The 6 digit 75segment LED will display the key value of the

Joystick.Prior to using this Module in your application,make sure to disconnect other unused peripherals, LEDs

and additional pull5up or pull5down resistors from the interface lines in order not to interfere with signal/data

integrity.

2.7 Stepper Motor and Buzzer Module driven by ULN2003A

IN11

IN22

IN33

IN44

IN55

IN66

IN77

GND8

VCC9

OUT710

OUT611

OUT512

OUT413

OUT314

OUT215

OUT116

VCC

VCC

BUZZER/SPEAKER

VCCULN2003A

RC2

VCC1

A2

B3

C4

D5

step

moto

r

RA0RA1RA2RA3

C24

ONONONONON

SW 8J9

STEPMOTOR& BUZZER

+

The ULN2003A is high5voltage high5current Darlington transistor arrays. Each consists of seven npn Darlington

pairs that feature high5voltage outputs with common5cathode clamp diodes for switching inductive loads. The

collector5current rating of a single Darlington pair is 500 mA. The Darlington pairs can be paralleled for higher

current capability. Applications include relay drivers, hammer drivers, lamp drivers, display drivers (LED and gas

discharge), line drivers, and logic buffers.We use the ULN2003A to drive a Buzzer and a Stepper Motor(as

following).

BYJ�48�5V

In this example application,you only need to turn the “SW8.1”~ “SW8.4” on for Stepper Motor and “SW8.5” for

Buzzer.Prior to using this Module in your application,make sure to disconnect other unused peripherals, LEDs and

additional pull5up or pull5down resistors from the interface lines in order not to interfere with signal/data integrity.

Page 8: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 8

2.8 DS18B20/Remote/ADC Modules

ADC_INPUTA

VCC3

GND1

DQ2

DS18 B2 0

R16 4.7K

VCC

VCC

VCC

DS18B20/REMOTE/ADC

VCC

R15

1K

RE1

RC1

C1910 4

GND1

VCC2

18 38V3

RE

MO

TE RE2

J5

ONONON

SW 4

DS18B20 � Digital Temperature Sensor

DS18B20 is a digital temperature sensor that uses 15wire® interface for it’s operation. It is capable of measuring

temperatures within the range of 555 to 128°C, and provides ±0.5°C accuracy for temperatures within the range of

510 to 85°C. It requires 3V to 5.5V power supply for stable operation. It takes maximum of 750ms for the

DS18B20 to calculate temperature with 95bit resolution. 15wire® serial communication enables data to be

transferred over a single communication line, while the process itself is under the control of the master

microcontroller. The advantage of such communication is that only one microcontroller pin is used. Multiple

sensors can be connected on the same line. All slave devices by default have a unique ID code, which enables the

master device to easily identify all devices sharing the same interface.The easyPIC540 provides a separate socket

for the DS18B20. Communication line with the microcontroller is connected via SW4.3.

In order to connect DS18B20 to the microcontroller you must turn SW4.3 “ON”.Prior to using DS18B20 in your

application,make sure to disconnect other unused peripherals, LEDs and additional pull5up or pull5down resistors

from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to enable 6 digit 75segment to display temperature value.

ADC input

Digital signals have two discrete states, which are decoded as high and low, and interpreted as logic 1 and logic

0. Analog signals, on the other hand, are continuous, and can have any value within defined range. A/D converters

are specialized circuits which can convert analog signals (voltages) into a digital representation, usually in form of

an integer number. The value of this number is linearly dependent on the input voltage value. Most

microcontrollers nowadays internally have A/D converters connected to one or more input pins. Some of the most

important parameters of A/D converters are conversion time and resolution. Conversion time determines how fast

can an analog voltage be represented in form of a digital number. This is an important parameter if you need fast

data acquisition. The other parameter is resolution. Resolution represents the number of discrete steps that

supported voltage range can be divided into. It determines the sensitivity of the A/D converter. Resolution is

represented in maximum number of bits that resulting number occupies. Most PIC® microcontrollers have 105bit

resolution, meaning that maximum value of conversion can be represented with 10 bits, which converted to

integer is 210=1024. This means that supported voltage range, for example from 055V, can be divided into 1024

discrete steps of about 4.88mV. easyPIC540 provides an interface in form of a potentiometer for simulating analog

input voltages that can be routed to any of the 10 supported analog input pins.

Page 9: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 9

In order to connect ADC INPUT to the microcontroller you must turn SW4.1 “ON”.Prior to using ADC in your

application,make sure to disconnect other unused peripherals, LEDs and additional pull5up or pull5down resistors

from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to enable 6 digit 75segment to display ADC value.

1838V Remote Control

1838V is miniaturized infrared receivers for remote control and other applications requiring improved ambient

light rejection.The separate PIN diode and preamplifier IC are assembled on a single leadframe. The epoxy

package contains a special IR filter.This module has excellent performance even in disturbed ambient light

applications and provides protection against uncontrolled output pulses.

In order to connect 1838V to the microcontroller you must turn SW4.2 “ON”.Prior to using 1838V in your

application,make sure to disconnect other unused peripherals, LEDs and additional pull5up or pull5down resistors

from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to enable 6 digit 75segment to display the KEY value of the Remote

Control.

2.9 Real Time Clock/EEPROM Module

VCC

VCC21

X12

X23

GND4

RST5

I/O6

SLCK7

VCC18

DS13 02

Y232 .7 68K

A01

A12

A23

GND4

VCC8

SDA5

SCL6

WP7

24 CXX

VCC

R31

10 K

R30

10 K

VCC

RC3RC4

BUZZER/SPEAKER

RB0RB4RB5

C20 10 4VCC

C2110 4VCC

C2322 P

C2222 P

VCC

EEPROM

RTC

ONONONONON

SW 7J8

EEPROM

EEPROM is short for Electrically Erasable Programmable Read Only Memory. It is usually a secondary storage

memory in devices containing data that is retained even if the device looses power supply. Because of the ability

to alter single bytes of data, EEPROM devices are used to store personal preference and configuration data in a

wide spectrum of consumer, automotive, telecommunication, medical, industrial, and PC applications.

EasyPIC540 supports serial EEPROM which uses I2C communication interface and has 1024 bytes of available

memory. Board contains socket for serial EEPROMs in DIP8 packaging, so you can easily exchange it with

different memory size EEPROM IC. EEPROM itself supports single byte or 165byte (page) write and read

operations. Data rate is 400 kHz for both 3.3V and 5V power supply. I2C is a multi5master serial single5ended bus

Page 10: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 10

that is used to attach low5speed peripherals to computer or embedded systems. I²C uses only two open5drain lines,

Serial Data Line (SDA) and Serial Clock (SCL), pulled resistors. SCL line is driven by a master, while SDA is

used as bidirectional line either by master or slave Up to 112 slave devices can be connected to the same bus. Each

slave must have a unique address.

In order to connect I2C EEPROM to the microcontroller you must turn SW7.4 and SW7.5 “ON”.Prior to using

EEPROM in your application,make sure to disconnect other unused peripherals, LEDs and additional pull5up or

pull5down resistors from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to enable 6 digit 75segment and Joystick module.Press “Down” to write

“123456” into the eeprom,and press “Center” to read and display the 65digit 75segment LED module.

DS1302 Real Time Clock

The DS1302 Trickle Charge Timekeeping Chip contains a real time clock/calendar and 31 bytes of static RAM. It

communicates with a microprocessor via a simple serial interface. The real time clock/calendar provides seconds,

minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for

months with less than 31 days, including corrections for leap year. The clock operates in either the 24–hour or

12–hour format with an AM/PM indicator. Interfacing the DS1302 with a microprocessor is simplified by using

synchronous serial communication. Only three wires are required to communicate with the clock/RAM: (1) RST

(Reset), (2) I/O (Data line), and (3) SCLK (Serial clock). Data can be transferred to and from the clock/RAM 1

byte at a time or in a burst of up to 31 bytes. The DS1302 is designed to operate on very low power and retain data

and clock information on less than 1 microwatt. The DS1302 is the successor to the DS1202. In addition to the

basic timekeeping functions of the DS1202, the DS1302 has the additional features of dual power pins for primary

and back–up power supplies, programmable trickle charger for VCC1, and seven additional bytes of scratchpad

memory.

DS1302 pin assignment

Number Name Function

1 VCC2 Power Supply Pins

2 X1, 32.768 kHz Crystal Pins

3 X2 32.768 kHz Crystal Pins

4 GND Ground

5 RST Reset

6 I/O Data Input/Output

7 SCLK Serial Clock

8 VCC1 Power Supply Pins

In order to connect DS1302 module to the microcontroller you must turn SW7.1, SW7.2 and SW7.3 “ON”.Prior

to using DS1302 RTC in your application,make sure to disconnect other unused peripherals, and additional

Page 11: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 11

pull5up or pull5down resistors from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to enable 6 digit 75segment to display the real time.

2.10 SD/MMC Card Module

This module mainly shows the SD/MMC card Read/Write. Through the study of this section, we should

understand the relevant knowledge about SD/MMC card Read/Write.

SD/MMC card is used as storage media for a portable device,in a form that can easily be removed for access by

a PC. For example,a digital camera would use an SD/MMC card for storing image files.With an SD/MMC

reader(typically small box that connects via USB or some other serial connection).communicates with Multi

Media Card via SPI communication.

11

22

33

44

55

66

77

88

99

1010

00

00

33

SD/MMC

CS

C1410 4 S

D/M

MC

CA

RD

J3

ON

ON

ON

ON

SW 2

CS

RC

2R

C4

RC

3R

C5

3.3V

3.3V

R4 10 K

R5 10 K

R6 10 K

R3 10 K

3.3V

CS

MOSI

SCK

MISO

In order to connect SD/MMC Card Module to the microcontroller you must turn SW2 “ON”. Prior to using The

SD/MMC Card Module in your application, make sure to disconnect other unused peripherals, and additional

pull5up or pull5down resistors from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to enable 6 digit 75segment to display the written data in The SD/MMC

Card.

Page 12: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 12

2.11 RS232 to TTL Converter communication Module

VCC

C12

10 4

C9 10 4

C11 10 4

C10 10 4C1+

1C15

3C2+

4C25

5

T2 in10

T1 in11

V+2

V56

VCC16

T2 out7

T1 out14

R1in13

R2in8

R1ou t12

R2ou t9

GND15

RS23 2

162738495

UART

RC6RC7

RS232

J2

ONON

SW 1

C13 10 4VCC

The SP3232 transceivers has a proprietary low5dropout transmitter output stage enabling true RS5232

performance from a 3.0V to 5.5V supply with a dual charge pump. The device requires only four small 0.1µF

external chargepump capacitors. The SP3232 is guaranteed to run at data rates of 120kbps while maintaining

RS5232 output levels. The SP3232 has 2 receivers and 2 drivers. The SP3232 is pin, package, and functionally

compatible with the industry5standard SP3232 and SP3232, respectively. The device feature a shutdown mode in

which all receivers can remain active while using only 1µA supply current.

In order to connect RS232 Module to the microcontroller you must turn SW1 “ON”. Prior to using The SD/MMC

Card Module in your application, make sure to disconnect other unused peripherals, and additional pull5up or

pull5down resistors from the interface lines in order not to interfere with signal/data integrity.

In this example application,you also need to connect a RS232 M/F cable to your computer. And,at the same time,

run the RS232 test software to monitor the data sent from the dev board.

2.12 LCD 2x16 characters display Module(Socket)

11

22

33

44

55

66

77

88

99

1010

1111

1212

1313

1414

1515

1616

LCD160 2

5V

5V

5V

RA3

RA1RA2

RD0RD1RD2RD3RD4RD5RD6RD7

1602

5VO

L

C26

10 4

5V

Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the end user of some

Page 13: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 13

electronic device. Character LCDs can be used to represent standard and custom characters in the predefined

number of fields. The easyPIC540 provides the connector and the necessary interface for supporting 2x16

character LCDs. This type of display has two rows consisted of 16 character fields. Each field is a 7x5 pixel

matrix. Board equips an universal socket allowing you to install 16x2 LCD very easily.

Connector pinout explained

15GND

255V

35Vo,LCD contrast level from potentiometer 16025VOL

45RS,Register Select Signal

55E,Display Enable

65R/W,Determines whether display is in Read or Write mode. It’s always connected to GND, leaving the display

in Write mode all the time.

7~145Data Port,Display is supported in 85bit data mode.

155LED+,Connection with 5V

165LED5,Connection with GND

IMPORTANT:

Make sure to Place the LCD in the right direction.

Make sure to turn off the power supply before placing LCD onto the board. Otherwise your display can be

permanently damaged.

2.13 GLCD 128x64 display Module(Socket)

11

22

33

44

55

66

77

88

99

1010

1111

1212

1313

1414

1515

1616

1717

1818

1919

2020

LCD128 64

5V

5V

1286

45V

OL

RD0RD1RD2RD3RD4RD5RD6RD7

RA0RA1RA2

1602

5VO

L

RA3

RA4

`

Page 14: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 14

Graphical Liquid Crystal Displays, or GLCDs are used to display monochromatic graphical content, such as text,

images, humanmachine interfaces and other content. The easyPIC540 provides the connector and necessary

interface for supporting GLCD with resolution of 128x64 pixels and proper PINOUTs.It is compatible with the

most popular LCD12864 in the market with KS108 or ST7920 display controller.The example we provide is only

for LCD12864 with ST7920 display controller.The easyPIC540 equips an universal socket allowing you to install

128*64 Graphical LCD very easily.

Connector pinout explained:

15GND

25VCC

35Vo,GLCD contrast level from potentiometer 128645VOL

45RS,Data (High), Instruction (Low) selection

55R/W,Determines whether display is in Read or Write mode.

65E,Display Enable line

7~14,D0–D7,Data lines

155PSB,Parallel/Serial Mode Selection

165NC

175RST

185VEE

195LEDA 5 5V

205LEDK 5 GND

IMPORTANT:

Make sure to Place the LCD in the right direction.

Make sure to turn off the power supply before placing LCD onto the board. Otherwise your display can be

permanently damaged.

2.14 ICSP Programming Port

VCC123456

ICSP1

RB6RB7

MCLR

65

43

21

ICSP2

VCC

RB6RB7

MCLR

The easyPIC540 has two standard ICSP interface which allow you to connect PICKIT2/PICKIT3/ICD2 directly.

Page 15: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 15

2.15 System Reset

VCC

R32

10KRES

ET

MCL

R

C25 104

The easyPIC540 reset circuit is made with 10K pull5up resistor,RESET button connected to GND and a 0.1uF

capacitor for filtering.

Page 16: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 16

Schematic

1 2 3 4 5 6 7 8

A

B

C

D

87654321

D

C

B

A

Title

Number Revisio nSize

A3

Date: 16 5Ju n5201 6 Sh eet of File: J:\1 00MHZ\10 0MHZ.Dd b Drawn By:

11

22

33

44

55

66

77

88

99

1010

1111

1212

1313

1414

1515

1616

1717

1818

1919

2020

LCD128 64

11

22

33

44

55

66

77

88

99

1010

1111

1212

1313

1414

1515

1616

LC D160 2

5V

5V

VCC

VCC

5V

3.3V

VCC

VCC

L1

L2

L3

L4

L5

L6

L7

L8

PW

RR13

1K

R12

1K

R11

1KR10

1K

R9

1K

R8

1K

R7

1K

R3210 K

R 21K

C 15

22 p

C 16

22 p

C12

10 4

C9 10 4

C11 10 4

C10 10 4

C7

10 4

VCC21

X12

X23

GND4

RST5

I/O6

SLCK7

VCC18

DS13 02

Y232 .7 68K

RESET

KEY1 KEY2 KEY3 KEY4

KEY5 KEY6 KEY7 KEY8

KEY9 KEY10 KEY11 KEY12

KEY13 KEY14 KEY15 KEY16

MCLR

C1+1

C153

C2+4

C255

T2 in10

T1 in11

V+2

V56

VCC16

T2 out7

T1 out14

R1in13

R2in8

R1ou t12

R2ou t9

GND15

RS23 2

162738495

UART

RC6RC7

ADC_INPUTA

12864

5VO

LVin

1

GN

D2

+5 V3

L7 805

D1

GND2

VCC1

POWER(7510 V)

+C8

47 0u

VCC3

GND1

DQ2

DS18 B2 0

R16 4.7K

VCC

VCC

VCC

Q290 15

Q590 15

Q490 15

DS18B20/REMOTE/ADC

4X4 KEY BOARD

RESET

LCD12864LCD1602

RS232

VCC

A01

A12

A23

GND4

VCC8

SDA5

SC L6

WP7

24 CXX

VCC

R31

10 K

R30

10 K

VCC

RC3RC4

5V

MCLR VP P/THV1

RA0 /AN02

RA1 /AN13

RA2 /AN2/VR EF54

RA3 /AN3/VR EF+5

RA4 /T0C KI6

RA5 /AN4/SS7

RE0/R D/AN58

RE1/WR/AN69

RE2/C S/AN710

VDD11

VSS12

OSC1/CLKIN13

OSC2/CLKOUT14

RC0 /T1OSO/T1CKI15

RC1 /T1OSI/C CP216

RC2 /CCP117

RC3 /S CK/SCL18

RD0 /P SP019

RD1 /P SP120

RD2 /PSP221

RD3 /PSP322

R C4 /SDI/SDA23

R C5 /SDO24

RC6 /TX/CK25

RC7 /R X/DT26

RD4 /PSP427

RD5 /PSP528

RD6 /PSP629

RD7 /PSP730

VSS31

VDD32

RB0 /INT33

RB134

RB235

RB3 /P GM36

RB437

RB538

R B6 /PGC39

R B7 /PGD40

PIC5DIP40

VCC

5V

VCC

5V

MC LRRA0RA1RA2RA3RA4RA5RE0RE1RE2

OSC2RC0RC1RC2RC3 RC4

RC5RC6RC7

RD0RD1 RD2

RD3

RD4RD5RD6RD7

RB0RB1RB2RB3RB4RB5RB6RB7

OSC1

RA0RA1

RD

0

123456

ICS P1

RB6RB7

MCLR

RD0RD1RD2RD3RD4RD5RD6RD7

RA0RA1RA2

RA3

RA1RA2

RD0RD1RD2RD3RD4RD5RD6RD7

160

25V

OL

R33R34R35R36R37R38R39R40

IN11

IN22

IN33

IN44

IN55

IN66

IN77

GND8

VCC9

OUT710

OUT611

OUT512

OUT413

OUT314

OUT215

OUT116

VCC

VCC

BUZZER/SPEAKER

VCCULN2003A

RC2

VCC1

A2

B3

C4

D5

step

moto

r

Q190 15

Q690 15

RB0RB1RB2RB3

RA3

RA4

VCC

VCC

R19R20R21

R18

R17

RB4

123

J2

R15

1K

RE1

RB0RB4RB5

RC1

C1910 4

C25

10 4

GND1

VCC2

18 38V3

RE

MO

TE RE2

RA0RA1RA2RA3

R14

1K

RD0RD1RD2RD3RD4RD5RD6RD7

RB

0R

B1

RB

2R

B3

RB

4R

B5

RB

6R

B7

C26

10 4

5V

VCC

ON

ON

ON

ON

ON

ON

ON

ON S

W6

J7

RO

W4

RO

W1

RO

W2

RO

W3

CO

L1

CO

L2

CO

L3

CO

L4

R28 10 K

R27 10 K

R26 10 K

R25 10 K

R24 10 K

R23 10 K

R22 10 K

R29 10 K

ROW 4

ROW 1

ROW 2

ROW 3

COL1

COL2

COL3

COL4

A1

C TR2

C3

B4

COM5

D6

SHIELD17

SHIELD28

Joy stick

J6

ONONONONON

SW 5

LEFTCTR

DOW N R IGHT

UPVCC

VCC

VCC

LEFTCTRDOW N

RIGHTUP

C24

ONONONONON

SW 8J9

C20 10 4VCC

C2110 4VCC

C2322 P

C2222 P

VCC

J5

ONONON

SW 4

ONONONONONONONON

SW 3J4

Y1

C17 10 4VCC

C18 10 4VCC

J12 J13

J2

ONON

SW 1

C 13 10 4VCC

55

66

VC

C1

DA

TA

52

DA

TA

+3

GN

D4

USB/P OW ER

C 2 10 45V

FU

SE

ON

OFF

PO

WE

RS

W

VIN3

GN

D1

VOUT2

LM1 117 53 .3

C 4

10 4+C3

10 u

C6

10 4+C5

10 u

5V 3.3V

VCC

DS

11

DS

22

DS

33

E4

D5

C6

DP

7

DS

68

DS

59

DS

410

G11

B12

A13

F14

75SEGMENT

ONONONONONONONON

SW 9J10

J11

ONONONONONON

SW 10

RD0RD1RD2RD3RD4RD5RD6RD7

RA0RA1RA2RA3RA4RA5

Q3

R41R42R43R44R45R46

65

43

21

ICS P2

VCC VCC VCCVCC

VCCVCC

DS

1

DS

2

DS

3

DS

4

DS

5

DS

6

DS1 DS2 DS3 DS4

DS5 DS6

VCC

RB6RB7

MCLREEPROM

STEPMOTOR& BUZZER

+

RTC

ICSP

LEDs

75SEGMENT

Joystick

POWER/USB

Microcontroller

EasyPIC540 WWW.Log iFind.COM

By Jeff

RC4RC5

11

22

33

44

55

66

77

88

99

1010

00

00

33

SD/MMC

CS

C1410 4 S

D/M

MC

CA

RD

J3

ON

ON

ON

ON

SW 2

CS

RC

2R

C4

RC

3R

C5

3.3V

3.3V

R4 10 K

R5 10 K

R6 10 K

R3 10 K

3.3V

CS

MOSI

SCK

MISO

ONONONONON

SW 7J8

12

US

B_E

N

C 27

10 4

Contact Us

ebay Store 1: http://stores.ebay.com/logifind

ebay Store 2: http://stores.ebay.com/kitfind

ebay Store 3: http://stores.ebay.com/opendiy

LogiFind International CO,LTD

Address:Room 606,B# of Nanguo Building,NO.16,Zhuxi South Road,Nanning,Guangxi,P.R.China

Skype:love100mhz

E5MAIL:[email protected]

Website:www.LogiFind.com

Mobile:(86)15978193886

Page 17: easyPIC40™ Development Board Users Manual - oderlachs.deoderlachs.de/PIC/manual.pdf · for the microcontrollers with USB function inside,like PIC18F4550. easyPIC40™ Development

easyPIC�40™ Development Board Users Manual

www.LogiFind.com 17

Disclaimer

© 2013 LogiFind International CO,. Ltd. All rights reserved. LogiFind®, logo and combinations thereof, are

registered trademarks of LogiFind International CO,. Ltd. Other terms and product names may be trademarks of

others.

The information in this document is provided in connection with LogiFind products. No license, express or

implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale

of LogiFind products.Neither the whole nor any part of the information contained in or the product described in

this document may be adapted or reproduced in any material from except with the prior written permission of the

copyright holder.The product described in this document is subject to continuous development and improvements.

All particulars of the product and its use contained in this document are given by LogiFind in good faith. However

all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for

purpose are excluded.This document is intended only to assist the reader in the use of the product. LogiFind

International CO,. Ltd.shall not be liable for any loss or damage arising from the use of any information in this

document or any error or omission in such information or any incorrect use of the product.