Date post: | 01-Jun-2018 |
Category: |
Documents |
Upload: | paul-vintimilla-tapia |
View: | 239 times |
Download: | 0 times |
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 1/30
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
MikroElektronikaDevelopment tools - Books - Compilers
Software and Hardware
solutions for Embedded World
EASYdsPIC4
User’s Manual
With useful implemented peripherals, plentiful practical
code examples and a broad set of additional add-on
boards (Serial Ethernet, Compact Flash, MMC/SD,
ADC, DAC, CAN, RTC, RS-485, etc.), MikroElektronika
development boards make fast and reliable tools thatcan satisfy the needs of experienced engineers and
beginners alike.
3 in 1ICD m
i k r o
IN-CIRCUITDEBUGGER
ICD m i k r o
IN-CIRCUITDEBUGGER
MICROCHIP
DEVELOPMENT
BOARD
MICROCHIP
DEVELOPMENT
BOARD
dsPICdsPIC
USB 2.0
IN-CIRCUITPROGRAMMER
USB 2.0
IN-CIRCUITPROGRAMMER
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 2/30
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4
KEY FEATURES
1. External power supply from 8 to 16 V
AC/DC;
2. Choose between external and USB power
supply. When powering from your PC’s USBport, you don’t need an external supply;
3. Very fast and flexible USB programmer
on board with mikroICD (In-Circuit
Debugger). The key feature is expanability.
By downloading new software, you will be
able to program new MCUs in coming years;
4. You can connect LCD if you need it for your
application in 4-bit mode;5. RS232 communication port;
6. 4.096V voltage reference is used for working
with A/D Converter;
7. ICD2 connector;
8. PC keyboard connector;
9. For the purpose of presentation all PORTB
pins are connected to potentiometers P1 and
P2 and can be used to measure voltages
set by these potentiometers;
10. If jumper is set to the upper position the pins of appropriate port
are set to logical one (pull-up). If jumper is set to the lower pos-
tion, the pins are set to logical zero (pull-down). It is very impor-
tant to select pull-up for port if you expect logical zero on its
inputs and vice versa;
11. The first four switches on SW1 are used to enable or disable
LEDs connected to MCU pins. Switches 5 and 6 are used to
select SDO line and switches 7 and 8 to select SDI line.;
12. Switches 1, 2 and 3 on SW2 are used to select the SCK line.
Switches 4,5 and 6 are used to select the CS line. Switch num-
ber 7 is used to enable the LCD backlight, and switch number 8
to enable the GLCD backlight;
13. Port Expander;
14. Set GLCD contrast according to your display characteristics;
15. You can connect Graphic LCD if you need it for your applica-
tion or LCD in 8-bit mode;
16. MCU Card sockets
17. 36 buttons enable you to control every pin on your microcon-
troller;
18. You can choose how to affect pin by pressing button, high
state or low state.
19. Reset circuit - if the reset button is pressed a hardware reset will
take place (MCU will start executing from the beginning).
20. See all the signals - each pin has a LED;
21. Set LCD contrast according to your display characteristics;
Width 250 mm 9.84 Inches
Height 210 mm 8.27 Inches
Development board dimensions
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 3/30
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
3
page
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
C O N T E N
T S
CONNECTING THE SYSTEM page 4
INTRODUCTION page 5
Power Supply page 10
On-board USB 2.0 programmer page 11
LEDs page 12
Jumpers page 7
Switches and their functions page 6
MCU card page 8
Pushbutton switches page 14
Graphic LCD page 16
LCD 2x16 in 4-bit mode page 17
LCD 2x16 in 8-bit mode page 21
RS-232 Communication page 18
PS/2 (Keyboard) connector page 20
CONTENTS
DESCRIPTION OF THE DEVELOPMENT SYSTEM page 6
ICD2 (In-Circuit Debugger) connector page 27
A/D Converter input page 21
Direct port access page 23
Port Expander page 25
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 4/30M 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
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
4
page
C O
N N E C T I N G
T H E S Y S T
E M
The development system box contains the development system, product CD, USB cable,RS232 cable and this manual.
The first thing to do is to take the system out of the box. Unpack the USB cable and con-
nect it to the PC. Please use USB ports on the back of the PC with direct connection to the
motherboard.
Install the dsPICFLASH programmer and drivers. Start the installation from the product
CD: CD_Drive:\product\zip\dsPICFlash_setup.exe.
After the installation connect the USB cable to the EASYdsPIC4 board. You will be asked
for the dsPICFLASH drivers. Point to them in order to finish the driver installation. They
are placed in the folder:
System_Drive:\Program Files\Mikroelektronika\dsPICFLASH-mikroICD\Driver.NT
Run and use dsPICFLASH as explained in the document ‘dsPICflash with mikroICD
support ’:
CD_Drive:\product\pdf\dspicflash_manual.pdf .
After these 4 steps, your EASYdsPIC4 is installed and ready for use. You can try to read a
program from the chip or to load an example from the examples folder of mikroElektroni-
ka’s compilers for dsPIC or from the product CD:
CD_Drive:\product\zip\EASYdsPIC4_examples.zip.
CONNECTING THE SYSTEM
Step no.1
Step no.2
Step no.3
Step no.4
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 5/30
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
5
page
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
I N T
R O D U C T I O N
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
INTRODUCTION
The EASYdsPIC4 development system is a full-featured development board for Microchip
dsPIC microcontrollers. It has been designed to allow students and engineers to easily exer-cise and explore the capabilities of dsPIC microcontrollers. It allows dsPIC microcon-
trollers to be interfaced with external circuits and a broad range of peripheral devices, allow-
ing the user to concentrate on software development.
Figure 1 illustrates the development board. On a silkscreen, there are identification marks
next to each component. These marks describe connections to the microcontroller, operation
modes and provide other useful notes. The need for additional schematics is minimized as
all relevant information is printed on the board.Figure 1.EASYdsPIC4 development board
MICROCHIP
DEVELOPMENT
BOARD
MICROCHIP
DEVELOPMENT
BOARD
dsPICdsPIC
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 6/30
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
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
6
page
S W I T C H E S SWITCHES
Figure 2.
Group of 8 switches
Switch is ON
Switch is OFF
1 ON
4
3
2
5
8
7
6
Switch 1 is ON, and other
switches are OFF
The EASYdsPIC4 development board features a number of peripherial devices. In order to
enable these devices before programming, you need to check if appropriate jumpers or
switches have been properly set.
Switches are devices that have two positions - ON and OFF, which have a role to establish
or break a connection between two contacts. The EASYdsPIC4 development board has two
groups of switches.
The upper four switches of SW1 are used to enable LEDs connected to PORTB/C,
PORTA/D, PORTE and PORTF. For example, if the switch for PORTB is OFF, all PORTB
LEDs will be turned off. Switches 5 and 6 of SW1 are used to enable SDO(Serial Data Out-
put) and switches 7 and 8 to enable SDI (Serial Data Input).
The first two switches of SW2 are used to enable SCK, switches 3, 4 and 5 are used for
enabling CS (Chip Select) lines. Witches 7 and 8 are used to enable LCD Backlight and
GLCD Backight respectively.
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 7/30
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
7
page
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
J U M P E R S
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
JUMPERS
Jumpers, like switches, can break or establish a connection between two points. Beneath the
plastic cover of the jumper is a metal contact, which makes a connection if the jumper is placed between two disconnected pins.
For example, jumper J16 is used as switch. It is used to connect the 4.096V voltage refer-
ence to the microcontroller’s RB0 pin. A connection is made when the jumpers are placed
between two contacts.
More often jumpers are used as a selector between two possible connections by using a three
pin connector. As illustrated in Fig. 4, the middle contact can be connected to the left or right
pin, depending on the jumper’s position.
Left lineis selected
All lines aredisconnected
Right lineis selected
Jumper is ON
Jumper is OFF
Figure 3.
Figure 4.
Jumper as a switch
Jumper as amultiplexer
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 8/30
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
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
8
page
M
C U S O C K E T S MCU SOCKETS
EASYdsPIC4 is delivered with a PIC30F4013, 40-pin microcontroller. Users can remove
this one and fit a different microcontroller in DIP40, DIP28, DIP28, DIP18 packages. Thereare two different sockets for 40-pin MCUs (DIP40Aand DIP40B). There are also two sock-
ets for 28-pin MCUs (DIP28A and DIP28B).
For example,PIC30F4013 should be placed in DIP40B socket and PIC30F4011 should be
placed in DIP40A socket.
Figure 5. MCU sockets
Note: Since all packages have parallel connections, there must not be more than one micro-
controller on the board at a time.
Note: If you use DIP28A, DIP40A, or DIP40B MCU socket, use OSC1 oscillator socket. If
you use DIP28B or DIP18 MCU socket, use OSC2 oscillator socket.
EASYd PIC4 U ’ M l
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 9/30
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
9
page
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
M C U C A R D
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
Microcontroller’s pins are routed to various peripherals as illustrated in Fig. 6. All ports have
direct connections to Direct Port Access connectors. Such connectors are typically used for
connecting external peripherals to the board or for providing useful points for connecting
digital logic probe.
All ports are connected to LEDs, push-button switches and pull-up/down resistors, which
allow easy monitoring and testing of digital pin state .
DIP40A DIP28A DIP28B DIP18
MCU SOCKETS
RB6
1 ON
4 3
2
PB&C LED
SW1
5
8
7
6
VCCVCC
VCC
PORTB
RB6 RB6
PORTB
J1J15CN1
P I
C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RSTbut
1
0 K
R e s e t
1 0 0 n
VCC
R
7
C 8
T41
System connectionFigure 6.
EASYd PIC4 U ’ M l
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 10/30
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
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
10
page
P O W E R S U P P L Y POWER SUPPLY
As a power supply source, users can select either a regulated supply from the USB cable
(default) or an external power supply. In case of the USB power supply, the system should be connected to a PC using the USB programming cable, while the jumper J12 should be
set in the right-hand position.
In the case of an external power supply, the EASYdsPIC4 board produces +5V using an
LM7805 voltage regulator. The external power supply can be AC or DC, with a voltage
between 8V and 16V and the jumper J12 should be set in the left-hand position. In Fig. 7
you can see USB and external power supply connectors.
GND
Vin Vout
CON2
8-12V (AC/DC)
E1470uF C14
100nF
E2470uF
2
5V
1
2
3
External Power Supply
USB Power Supply
EXT
EXT
USB
USB
REG17805
5V
DB18280C1500
J16CON3
CN6 1 2 3
VCC
EXT. line is selected
All lines are disconnected
USB line is selected
E3470uF
CN10V C C
GND
D-
D+
USBProgrammer
Connector
USB 2.0USB 2.0
J12 in the left-hand
position: system will
take power from the
external AC/DC
power adapter.
J12 in the right-hand
position: system will
take power from the
USB cable.
USB and power supply connectorsFigure 7. Figure 8. Power supply select jumper
Figure 9. JP16 is set to USB power supply
USB
connector
External power
supply connector
POWERSUPPLY
SELECTABLE
POWERSUPPLY
SELECTABLE
EASYd PIC4 U ’ M l
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 11/30
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
11
page
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
O N
- B O A R D U
S B 2 . 0 P R
O G R A M M
E R
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
ON-BOARD USB 2.0 PROGRAMMER
Figure 10. USB 2.0 programmer
There is no need for the use of external
equipment during programming asEASYdsPIC4 development system has
its own on-board USB programmer. All
you need to do is connect the system to
a PC using USB cable. Then, load your
program into the microcontroller via
the ds PICflash programming software
which is supplied with EASYdsPIC4.
Note: There is no need for reseting MCU after programming. The programmer will reset the
MCU automatically.
USB 2.0
IN-CIRCUITPROGRAMMER
USB 2.0
IN-CIRCUITPROGRAMMER
VCC
PROGRAM
R16 27
d s
P I C f l a s
h
O n - B
o a r d
U S B
p r o g r a m m e r
R15 27
1 K RSTbut
USBDP
USBDN
RB5
PGC
RB5 PGC
mRST
MULTIPLEXER
R 1 8
VCC
D1BAT43
1 0 K
R 6
1 0 K
R e s e t
1 0 0 n
VCC
TO PERIPHERALS ONDEVELOPMENT BOARD
CN10V C C
GND
D-
D+
USBProgrammer
Connector
C15100nF
VCC
R 7
C 8
FP1F.BEAD
VCC
P I C 3 0 F 4 0 1
3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB7-PGD
mRST
RB4
PGD
RB4 PGD
MULTIPLEXER
T41RF PGC
RB6 PGC
RB7 PGD
RF3 PGD
RF3
RB7
RF
RB6
USB2.0USB 2.0
X38MHz
C1922pF
C1822pF
TO OTHER MCU SOCKETS
Figure 11. USB 2.0 programmer schematic
EASYdsPIC4 User’s Manual
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 12/30
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
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
12
page
L E D s LEDs
Light Emitting Diodes (LEDs) are the most commonly used components, usually for dis-
playing pin’s digital state. EASYdsPIC4 has 36 LEDs that are connected to the microcon-
troller’s PORTB, PORTC, PORTD, PORTE and PORTF.
Each group of LEDs can be enabled or disabled using the switch SW1. The first switch
enables LEDs on PORTB and PORTC, the second switch enables LEDs on PORTA and
PORTD. Switches 3 an 4 are used to enable LEDs connected to PORTE and PORTF respec-
tively.
Fig. 13. illustrates the connection of a LEDs connected to PORTB of the microcontroller. A
resistor is used in series with the LED to limit the LED's current. In this case the resistor's
value is 1K.
Figure 12. Light Emitting Diodes
EASYdsPIC4 User’s ManualM E
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 13/30
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
13
page
EASYdsPIC4 User s ManualMikroElektronika
Development tools
L E D s
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
The LEDs are enabled when the corresponding switch on SW1 is on. When enabled, LEDs
will display the state of the corresponding microcontroller pin; otherwise the LEDs will
always be off, no matter what the port state is, as no current can flow through LED.
RN68x1K
123456789
RB 0
RB1
RB2
RB 3
RB4
RB 5
RB 6
RB7
1 ON
4
3
2
5
8
7
6
PF-LED
PE-LED
PA&D-LED
PB&C-LED
RB4
RF3
SW1
RF2
RB5
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB7-PGD
SPI-SDO
SPI-SDI
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
Figure 13.Light Emitting Diodes schematic
EASYdsPIC4 User’s Manual MikroElektronika
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 14/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User s Manual MikroElektronika
Development tools
14
page
P U S
H B U T T O
N S W I T C H
E S PUSHBUTTON SWITCHES
EASYdsPIC4 has 36 push buttons, which can be used to change states of digital inputs to
microcontroller's ports. There is also one switch that acts as a RESET. Reset switch schemat-ic is shown in Figure 14.
VCC
PROGRAM
d s
P I C f l a s
h
O
n - B
o a r d
U S B
p r o g r a m m e r
1 K RSTbut
mRST
R 1 8
VCC
D1BAT43
1 0 K
R 6
1 0 K
R
e s e t
1 0 0 n
VCC
R 7
C 8
T41
X38MHz
C1922pF
C1822pF
VCC
P
I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C7
22pF
C8
22pF
OSC1A
OSC1B
RB6-PGC
RB6-PGD
mRST
Figure 16.
Pushbutton switches
Figure 15.Reset switch
Figure 14. Reset switch schematic
EASYdsPIC4 User’s ManualMikroElektronika
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 15/30
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
15
page
EASYdsPIC4 User s ManualMikroElektronika
Development tools
P U S
H B U T T O
N S W I T C H
E S
USB with
2.0 PROGRAMMER
E SYdsPI
ICD
4
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RB8
RB9
RB2
RB10
RB11
RB12
RC13
RC14
RD0
RD1
RD2
RD3
RD8
RD9
RA11
RE0 RF0
RE1 RF1
RE2 RF2
RE3 RF3
RE4
RE5
RE8
PORTB PORTB/C PORTD/A PORTE PORTF
0V while button
is pressed
+5V while button
is pressed J15
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
DIP40A DIP28A DIP28B DIP18
MCU SOCKETS
RF4
RF5
RF6
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
Buttons connections to PORTA, PORTB, PORTC, PORTD, PORTE and PORTF are shown
in Fig. 17. Jumper J15 determines whether a button press will bring logical zero or logical
one to the appropriate pin.
When button is not pressed, pin state is determined by the pull-up or pull-down port
jumpers.
In the example shown in Fig. 17, J15 is connected to +5V, therefore pressing the buttons will
bring logical one to the appropriate pins.
Figure 17. Pushbutton switches schematic
EASYdsPIC4 User’s Manual MikroElektronika
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 16/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User s ManualDevelopment tools
16
page
G R A P H I C
L C D 1 2 8 X 6 4 GRAPHIC LCD
A graphic LCD (GLCD) allows advanced visual messages to be displayed. While a charac-
ter LCD can display only alphanumeric characters, a GLCD can be used to display mes-sages in the form of drawings and bitmaps. The most commonly used graphic LCD has the
screen resolution of 128x64 pixels. The GLCD’s contrast can be adjusted using the poten-
tiometer P3, which is placed to the right of the GLCD. GLCD backlight can also be turned
on or off using the switch 8 of switch group SW2.
P310K
Vee
VCC
Vo
ContrastAdjustment
D 5
D 4
D 3
D 2
D 1
D 0 E
R / W R
S
L E D
- V o
L E D +
V C C
V e e
G N D
R S T
C S 2
D 7
C S 1
D 6
1 20
mikroElektronika
EasydsPIC4
Development system
R D 1
R D 0
R B 3
R B 2
R B 1
R B 0
R F 4
R F 1
R F 0
R F 5
R B 5
R D 3
R B 4
R D 2
R2310
VCC
1 ON
4
3
2
5
8
7
6
RB7
RE8
RF6
RB6
RB6
RB5
SW2
GLCD-BCK
LCD-BCK
SPI-SCK
PE-CS
VCC
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB7-PGD
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
Figure 18. GLCD schematic
Figure 19.
GLCD
GRAPHIC LCD
CONNECTOR
ON-BOARD
GRAPHIC LCD
CONNECTOR
ON-BOARD
EASYdsPIC4 User’s ManualMikroElektronika
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 17/30
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
17
page
EASYdsPIC4 User s ManualDevelopment tools
L C D 2 X 1 6 I N
4 - B I T M O
D E
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
LCD 2X16 IN 4-BIT MODE
The standard character LCD is probably the most widely used data visualization compo-
nent. Usually, it can display two lines of 16 alphanumeric characters, each character madeup of 5x8 pixels. The character LCD communicates with the microcontroller via a 4-bit data
bus. The connection to the microcontroller is shown in Fig. 21 where there are only four
data lines. It is important that the LCD is only inserted or removed from the EASYdsPIC4
when the power is off. Potentiomenter P4 is used to adjust the LCD’s contrast and switch 7
of switch group SW2 is used to turn on or off the LCD’s backlight.
P410K
ContrastAdjustment
VCC
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
D 7
D 6
D 5
D 4
D 3
D 2
D 1
D 0 E
R / W R
S
V E E
V C C
G N D
1 16
LCD4 Display
mikroElektronika
A K D 4
R B 3
R B 2
R B 1
R D 1
R D 0
V E E
V C C
R B 0
1 ON
4
3
2
5
8
7
6
RB7
RE8
RF6
RB6
RB8
RB5
SW2
GLCD-BCK
LCD-BCK
SPI-SCK
PE-CS
VCC
R2310
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
Figure 20.
LCD
Figure 21. LCD Schematic
MICROCHIP
DEVELOPMENT
BOARD
MICROCHIP
DEVELOPMENT
BOARD
dsPICdsPIC
EASYdsPIC4 User’s Manual MikroElektronika
D
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 18/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
EASYdsPIC4 User s ManualDevelopment tools
18
page
R S -
2 3 2 C O M M U N I C A T I O N RS-232 COMMUNICATION
RS-232 communication enables point-to-point data transfer. It is commonly used in data
acquisition applications, for the transfer of data between the microcontroller and a PC. Sincethe voltage levels of a microcontroller and PC are not directly compatible with each other,
a level transition buffer such as the MAX232 must be used.
There are two jumper groups J8 and J9 for connecting MCU lines to MAX232 tranciever.
Jumper J8 is used to connect RC14, RF2 or RF4 MCU pin to RX line on RS232 port .
Jumper J9 is used to connect RC13, RF3 or RF5 MCU pin to TX line on RS232 port..
Figure 22. RS232 connector
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 19/30
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
19
page
Development tools
R S 2 3 2 C O M M U N I C A T
I O N
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
DIP40A DIP28A DIP28B DIP18
MCU SOCKETS
1 5
6 9
6 9
1 5
1 2 3 4 5 6 7 8 9
CN12SUB-D 9p
RS232CON
MA
X 2 3 2
C1+
VS+
C1-
C2+
C2-
VS-
T2OUT
R2IN
VCC
GND
T1OUT
R1IN
R1OUT
T1IN
T2IN
R2OUT
1
2
3
4
56
7
8
16
15
14
13
1211
10
9
U4
E910uF
E1010uF
E11
10uF
E1210uF
VCC
RS232CON
CONNECTMCU TO PC
Receivedata (Rx)
SendData (Tx)
CONNECTPC TO MCU
SERIALCABLE
PC
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X1
10MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB6-PGD
mRST
RX
TX
RF2
RF4
RC14
RF3
RF5
RC13
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
J8
J9
Figure 23. RS232 connector schematic
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 20/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
o oo s
20
page
P
S / 2 C O M M U N I C A T I O N PS/2 COMMUNICATION
The PS/2 connector allows direct connection between EASYdsPIC4 and devices that use
PS/2 communication, such as PC, keyboard or mouse. For example, the microcontroller can be connected to a keyboard to capture pressed keys or it can be connected to a PC to act as
a keyboard. CLK and DATA lines are used for data tansfer. In this case, they are connected
to pins RC14 and RC13 respectively.
PS2CONNECTOR
DATANCGND VCCCLKNC
J37
J36
R31K
R21K C11
100n
DATA
CLK
NC
NC
+5V
VCC
P
I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
VCC
VCC
Figure 25. Keyboard connected to development board
Figure 26. PS2 connector schematic
Figure 24.PS2 connector
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 21/30
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
21
page
A N A L O G T O D I G I T A
L C O N V E
R T E R I N P U T
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
A/D CONVERTER INPUT
Figure 27. A-D Converter input
EASYdsPIC4 development board has two potentiometers for working with Analog to
Digital Converter (ADC). Both potentiometers outputs are in the range of 0V to 5V. Twoanalog signals can be connected on two different analog input pins at the same time. There
are two jumper groups J6 and J7 for connecting MCU lines to potentiometers P1 and P2.
Jumper J6 is used to connect RB0, RB1, RB2 or RB3 MCU pin to potentiometer P1. Jumper
J7 is used to connect RB4, RB5, RB6 or RB7 MCU pin to potentiometer P2.
In order to measure analog signal without interference, turn the coresponding switch on
SW1 to OFF position. This will disable connection from the used PORTB pin to the pull-
up/down resistors.
Applications of A-D Conversion are various. Microcontroller takes analog signal from itsinput pin and translates it into a digital value. Basically, you can measure any analog signal
that fits in range acceptable by dsPIC. That range is 0V to 5V.
ADC INPUT
ENABLED
ADC INPUT
ENABLED
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 22/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
22
page
A N A L O G T O D I G I T A
L C O N V E
R T E R I N P U T
VCC
P I C 3 0
F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB7-PGD
P1P10K
J6
R B 0
P2P10K
VCC VCC
R B 1
R B 2
R B 3
R B 4
R B 6
R B 5
R B 7
RB6
RB7
RB4
RB5
RB2
RB3
RB0
RB1
8
9
6
7
4
5
2
3
1
RN1
8 X 1 0 K
J7
2
3
1J1
Up
Pull
Down
R30100
VCC
E1410uF
J28
6
VCCGND
VCC
M
CP1541
M
CP 5
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
Figure 28. A-D Converter input schematic
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 23/30
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
23
page
D I R E C T P
O R T A C C E S S
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
DIRECT PORT ACCESS
These connectors can be used for system expansion with external boards such as Serial
Ethernet, Compact Flash, MMC/SD, ADC, DAC, CAN, RTC, RS-485, etc. Ensure that the
on-board peripherals are disconnected from microcontroller by setting the appropriate jumpers, while external peripherals are using the same pins. The connectors can also be used
for attaching logic probes or other test equipment.
All microcontroller input/output pins can be accessed via connectors placed along the right
side of the board. Each port (PORTA, PORTB, PORTC, PORTD, PORTE and PORTF) can be accessed via 10-pin connector (IDC10) providing VCC and GND.
Figure 29.Direct port access connectors
Figure 30.
Example of how to connectexternal peripheral with flatcable
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 24/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
24
page
D I R E C T P
O R T A C C E S S
VCC
P I C 3 0 F 4
0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB6-PGD
mRST
RB4
RB6
RB0
RB2
RB5
RB7
RB1
RB3
HEADER 5x2
CN1
RB6
RB7
RB4
RB5
RB2
RB3
RB0
RB1
8
9
6
7
4
5
2
3
1
2
3
1J1
Pull-up line isconnected
All linesare disconnected
Pull-down lineis connected
RN1
VCC
VCC
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
Figure 31. Direct port access schematic
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 25/30
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
25
page
P O
R T E X P A N
D E R
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
PORT EXPANDER
Figure 32. Port Expander
The MCP23S17 device family provides 16-bit, general purpose parallel I/O exopansion for
SPI applications.
The MCP23S17 consists of multiple 8-bit configuration registers for input, output and polar-
ity selection. The system master can enable the I/O as either inputs or outputs by writing the
I/O configuration bits. The data for each input or output is kept in the corresponding input
or output register. The polarity of the Input Port register can be inverted with Polarity
Inversion register. All registers can be read by the system master.
In order to enable SPI communication you need to select source pins for SDO, SDI, SCK and CS lines, depending on MCU you are using.
For example, if you are using PIC30F4013 you need to select RF3 pin for SDO line, RF2
pin for SDI line and RF6 pin for SCK line. For CS line, you can choose RB5, RB7 or RB8
pin.
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 26/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
26
page
P O
R T E X P A N
D E R
1 ON
4
3
2
5
8
7
6
PF-LED
PE-LED
PA&D-LED
PB&C-LED
RB4
RF3
SW1
RF2
RB5
SPI-SDO
SPI-SDI
1 ON
4
3
2
5
8
7
6
RB7
RE8
RF6
RB6
RB8
RB5
SW2
GLCD-BCK
LCD-BCK
SPI-SCK
PE-CS
VCC
PA4
PA6
PA0
PA2
PA5
PA7
PA1
PA3
HEADER 5x2
CN11
VCC
PB4
PB6
PB0
PB2
PB5
PB7
PB1
PB3
CN12
VCC
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
GPB0
GPB1
GPB2
GPB3
GPB4
GPB5
GPB6
GPB7
VDD
VSS
CS
SCK
SI
SO
M C P 2 3 S 1 7
GPA7
GPA6
GPA5
GPA4
GPA3
GPA2
GPA1
GPA0
INTA
INTB
RESET
A2
A1
A0
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15
16
17
18
19
20
21
22
23
24
25
26
27
28
DIP40A DIP28A DIP28B DIP18
MCU SOCKETS
VCC
C6100n
E4100uF
VCC
R110K
VCC
R6BAT43
Figure 33. Port Expander schematic
EASYdsPIC4 User’s ManualMikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 27/30
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
27
page
I C D
2 C O N N E C
T O R
USB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
ICD2 (IN-CIRCUIT DEBUGGER) CONNECTOR
The ICD2 is low-cost In-Circuit Debugger (ICD) and In-Circuit Serial Programmer (ICSP).
ICD2 is intended to be used as an evaluation, debugging and programming aid in a labora-tory enviroment.
The ICD2 offers these features:
- Real-time and single-step code execution
- Breakpoints, Register and Variable Watch/Modify
- In-Circuit Debugging
- Target VCC monitor
1
23
45
6
VCC
CN23
RJ12CONNECTOR
ICD2Connector
RB6-PGC
RB5-PGC
VCC
P I C 3 0 F 4 0 1 3
RB0
RB1
RB2
RB3
RC13
RC14
RB4
RB5
RB6/PGC
RB7/PGD
RB8
RD9
RD3
GND
RD8
RD2
VCC
RF6
RF3
RF2
RF5
RF4
RF1
RF0
RD1
RD0
RB12
RB11
RB10
RB9
AVCC
AGND
RA11
VCC
GND
OSC1
OSC2
MCLR
VCC
GND
X110MHz
C722pF
C822pF
OSC1A
OSC1B
RB6-PGC
RB7-PGD
RF2-PGC
PGC
PGD
RB7-PGD
RB4-PGD
RF3-PGD
DIP40A DIP28A DIP28B DIP18
MCU SOCKETS
1 0 K
R e s e t
1 0 0 n
VCC
R 7
C 8
T41
J10
J11
Figure 34.
ICD2 Connector
Figure 35. ICD2 Connector schematic
Note: There are two jumper groups J10 and J11. J10 connects RF2, RB6 and RB5 pin to
PGC line on ICD2 connector. J11 connects RF3, RB7 and RB4 pin to PGD line on ICD2
connector
EASYdsPIC4 User’s Manual MikroElektronika
Development tools
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 28/30
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 DUSB with 2.0 PROGRAMMER
E SYdsPI
ICD
4
28
page
None part of this manual, including the product and software described in it, may be repro-
duced, transmitted, transcribed, stored in a retrieval system, or translated into any language
in any form or by any means, without express written permission of MikroElektronika com-
pany, excepting documentation kept the purchaser for backup purposes.
Product warranty or service will not be extended if the product is repaired, modified or
altered, unless such repair, modification or alteration is authorized in writing by
MikroElektronika.
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 MERCHANT ‘S ABILITY OR FITNESS FOR
A PARTICULAR PURPOSE.
MIKROELEKTRONIKA, ITS DIRECTORS, OFFICERS, EMPLOYEES OR DISTRIBUTORS
WON’T BE LIABLE FOR ANY DAMAGES WHETHER DIRECT, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL (INCLUDING DAMAGES FOR LOSS OF PROFITS OR INCOME,
LOSS OF BUSINESS, LOSS OF USE OR DATA, INTERRUPTION OF BUSINESS AND
SIMILAR DAMAGES) EVEN IF MIKROELEKTRONIKA HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES ARISING FROM ANY DEFECT OR ERROR IN THIS
MANUAL OR THE PRODUCT.
SPECIFICATION AND INFORMATION CONTAINED IN THIS MANUAL ARE FURNISHED
FOR INTERNATIONAL USE ONLY, AND ARE SUBJECT TO CHANGES AT ANY TIME
WITHOUT NOTICE, AND SHOULD BE CONSTRUED AS A COMMITMENT BY
MIKROELEKTRONIKA.
MikroElektronika assumes no responsibility or liability for any errors or inaccuracies that
may appear in this manual, including the product and software described in it.
Product and corporate names appearing in this manual may or may not be registered trade-
marks or copyrights of their respective companies, and are used only for identification or
explanation and to the owners’ benefit, without intent to infringe.
First edition
May 2007
u s e d t o
N a n d
e L E D s
s e l e c t -
O a n d
e s p
a n d e r
u s e d f o r
g S C K
i n e s a n d
b l i n g
a n d L C D
h t j u
m p e r
p p e r
n s e t s
s o f t h e
r i a t e
o g i c a l
l l - u p ) . I f
i s s e t
r p o s i -
n s a r e
o g i c a l
u l l -
B 0 - R B 7
c o n -
t o o m e t e r s
P 2
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 29/30
E A S
Y d
s P
I C 4
A V R
8 0 5 1
A R M
P I C
6 8 H C 0 8
P S o C
C O M P I L
E R S
B O O K S
D E V . T
O O L S
M a k i n g
i t e a s y
W i t h b u i l t i n
U S B
p r o g r a m m e r
P
I
4
U S B
D e v e l o p m e n t
t o
o l f o r
M I C R O C H I P
D S P I C
M C U s
M i k r o E l e k
t r o n i k a
T o o l s - C o m p i l e r s - B o o k s
w w w . m i k r o e . c o m
E x t e r n a l
p o w e r
s u p p l y f r o m
8 t o
1 6 V
A C / D C .
R S 2 3 2
c o m m u -
n i c a t i o n p o r t
G r a p h i c L C D
c o n n e c t o r
G L C D / L C D c o n t
r a s t
C h o o s e b e t w e e n
e x t e r n a l o r U S B
p o w e r s u p p l y .
W i t h U S B p o w e r
s u p p l y s e l e c t e d ,
y o u d o n ’ t n e e d
e x t e r n a l s u p p l y .
R e s e t c i r c u i t
Y o u c a n c o n n e c t
L C D i f y o u n e e d
i t f o u r y o u r a p p l i -
c a t i o n i n 4 - b i t
m o d e .
S W 1 i s
t u r m O N
O F F t h e
a n d f o r
i n g S D O
S D I l i n e
P o r t E x
B
u t t o n s f o r s i m u l a t i n g p i n s
h
i g h s t a t e o r l o w s t a t e
V e r y f a s t a n d f l e x i b i l e
U S B 2 . 0 p r o g r a m m e r
S W 2 i s
s e l e c t i n
a n C S l i
f o r e n a b
G L C D a
b a c k l i g h
S e t t i n g
t o t h e u
p o s i t i o n
t h e p i n s
a p p r o p r
p o r t t o l
o n e ( p u
j u m p e r
t o l o w e r
t i o n , p i n
s e t t o l o
z e r o ( p u
d o w n )
P i n s R B
c a n b e
n e c t e d t
p o t e n t i o
P 1 a n d P
P S 2 k e y b o a r d
C o n n e c t o r
E A S Y d s P I C 4 s u p p o r t s 1 8 - p i n ,
2 8 - p i n a n d 4 0 - p i n d s P
I C M C U s
S e e a l l t h e s i g -
n a l s - e a c h p i n
h a s a L E D
C h o o s e h o w
p r e s s i n g t h e b u t -
t o n w i l l a f f e c t t h e
p i n , h i g h s t a t e o r
l o w s t a t e
I C D 2
C o n n e
c t o r
MikroElektronika
8/9/2019 EasyDspic4 Manual
http://slidepdf.com/reader/full/easydspic4-manual 30/30
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
MikroElektronika
Software and Hardware
solutions for Embedded World
If you are experiencing problems with any of our
products or you just want additional information,
please let us know. We are committed to meeting
your every need.
Technical Support :
If you have any other question, comment or a busi-
ness proposal, please contact us:
E-mail: [email protected]
Web: www.mikroe.com
Forum: www.mikroe.com/forum/