Easypic5 Manual v100
Easypic5 Manual v100
Switches 7
Jumpers 8
MCU Sockets 9
Power Supply 11
On-Board USB 2.0 Programmer 12
Oscillator 14
mikroICD (Hardware In-Circuit Debugger) 16
LEDs 17
Reset Circuit 19
Push Buttons 20
7-segment Displays 22
2x16 Character LCD 23
Graphic LCD 24
Touch Panel 25
RS-232 Communication Module 26
USB Communication Module 27
PS/2 Communication Module 28
DS1820 Digital Thermometer 29
A/D Converter Test Inputs 30
Direct Port Access Connectors 32
4 EasyPIC5 KEY FEATURES DIP switch SW9 turns on/off touch panel controller, PS/2
1. External power supply connector 8 - 16V AC/DC; and LCD and GLCD backlights;
2. Power supply selector. It is possible to use external or 14. EasyPIC5 supports microcontrollers in DIP8, DIP14,
USB power supply. When using USB port, there is no DIP18, DIP20, DIP28 and DIP40 packages;
need for external power supply; 15. Jumper to determine port performance in idle state (pull-
3. Power ON/OFF switch; up/pull-down). Select pull-up to enable port pins to detect
4. On-board USB programmer with mikroICD support. Its logic zero (0) and vice versa;
key feature is an ability to upgrade. By downloading a 16. PORTA connected to a resistor network using DIP switch
new software, it will be possible to program new MCUs SW1. If a switch is OFF, the appropriate pin does not have
in coming years; a resistor attached. It enables PORTA pins to be used in
5. RS-232 communication module with selectable TX and analog mode as well as digital I/O pins. The same applies
RX for all microcontrollers; to other ports: PORTB, PORC, PORTD and PORTE;
6. USB port for MCU with USB support; 17. 36 LEDs connected to the microcontroller I/O ports;
7. PC keyboard connector; 18. 20-pin connector allows an easy connection of graphic LCD;
8. DS1820 temperature sensor connector; 19. Graphic LCD contrast potentiometer;
9. A/D input selector used for testing the operation of A/D 20. Reset circuit;
converter. It is connected to potentiometers P1 and P2; 22. 36 push buttons allow control of every pin on the micro-
10. 7- segment displays in multiplex mode; controller;
11. 16-pin connector allows an easy connection of LCD; 21. Jumper to select high/low state of an input pin when the
12. LCD contrast potentiometer; appropriate push button is pressed;
13. DIP switch SW6 turns on/off LEDs on ports A, B, C, D 23. Touch panel connector; and
and E and enables digits on 7-segment LED display. 24. Touch panel controller.
CONNECTING THE SYSTEM 5
Apart from this manual, the development system box contains development system, product CD, USB cable
and user manuals for PICflash programmer, mikroICD Debugger and Installing USB drivers. In order to use the
EasyPIC5 properly, it is necessary to go through the following steps:
Step no.2 Install PICflash programmer software to enable a program to be transferred from PC to the
microcontroller chip. For detailed installation instructions refer to the PICflash programmer
manual.
Step no.3 Install USB drivers on your PC to enable programmer's hardware to operate properly on
the EasyPIC5 board. For detailed installation instructions refer to the Installing USB driv-
ers manual.
Step no.4 Connect the EasyPIC5 to PC using USB cable. Please use one of the USB ports on the
back of the PC because these are directly connected to the computer motherboard. If you
turn ON the power supply switch on the EasyPIC5 board for the very first time, your PC
will immediately detect a new hardware. You will be immediately prompted whether Win-
dows should search for new drivers update or not. Select the option No, not this time and
click Next. Another window appears, click Next and the operating system will automatical-
ly find the drivers. Click Finish to complete this process and run PICflash as explained in the
PICflash programmer manual.
After these four steps, your EasyPIC5 is successfully installed and ready for use. You can read a program from
the chip or write another one into it. The product CD provides numerous simple program examples to make
your first steps Easy...
.
6 INTRODUCTION
The EasyPIC5 is a full-featured development system for almost all Microchip PIC microcontrollers.
It is designed to allow students and engineers to easily test and explore the capabilities of PIC
microcontrollers. It also allows PIC microcontrollers to be interfaced with external circuits and a
INTRODUCTION
broad range of peripheral devices. The user can therefore concentrate on software development
only.
Figure 1 illustrates the EasyPIC5 development system. There are identification marks next to each
component on a silkscreen, both on the top and bottom. These marks describe connection to the
microcontroller, operation modes and provide additional useful information so that there is almost no
need for additional schematics.
SWITCHES
tem, switches are grouped in nine DIP switches.
DIP switches SW1 - SW5 are used to enable external pull-up/pull-down resistors on port pins. Each
pull-up/pull-down resistor is individually enabled.
DIP switch SW6 is used to enable/disable LEDs connected to the microcontroller ports. Each group
of 8 port LEDs has its own switch. Four lower switches in this group are used to enable/disable 7-
segment LED displays. Each display digit can be individually enabled.
DIP switches SW7 and SW8 select MCU pins to be used as RX or TX in serial communication.
DIP switch SW9 is used to control both LCD backlights, communication via PS/2 connector and
touch panel driver.
Figure 2 illustrates the DIP switch SW9. As seen, switches 1, 2, 3 and 4 are ON, whereas 5, 6, 7
and 8 are OFF.
Similarly, jumpers are used to break or establish connection between two points. Under the plastic
cover of a jumper, there is a metal contact which establishes connection when the jumper is placed
over two pins.
J UMPERS
Jumper is commonly used as a selector between two possible connections via 3-pin connector. As
illustrated in Figure 4, the middle connector pin can be connected to the left or right pin, depending
on the jumper’s position.
Jumper is not placed and Jumper is placed on the left side Jumper is placed on the right side
middle pin is unconnected. connecting middle and left pin. connecting middle and right pin.
Note: There are two DIP18 sockets with different pinouts (DIP18A and DIP18B). If you use 18-pin micro-
controllers, make sure to select the right socket. For example, PIC18F1220 uses DIP18A socket,
while PIC16F628A uses DIP18B socket.
All 8-pin microcontrollers use DIP8 socket. The exception is PIC10F family which uses 10F MCU socket.
Note: Since all packages have parallel connections, it is not allowed to have more than one microcon-
troller on the board at a time.
Note: Some of the 28-pin PIC microcontrollers use the seventh pin as RA5, while some of them use this
pin as VCC. Depending on this, jumper J18 must be set in RA5 and VCC position, respectively. For
example, if you use the PIC18F2331 microcontroller, jumper J18 has to be set in VCC position.
10 The microcontroller pins are routed to various peripherals as illustrated in Figure 6. All MCU ports
are directly connected to Direct Port Access 2x5 (10-pin) connectors. These are normally used for
connecting external peripherals to the board or as points for digital logic probe connecting.
All ports are connected to LEDs and push buttons, which allows you to easily test and monitor dig-
ital pin state.
MCU SOCK ETS
Some of the pins are connected to on-board peripherals, such as DS1820 temperature sensor, RS-
232 communication module, 7-segment displays, LCD etc.
POWER SUPPLY
cable, jumper J6 should be set in the right-hand position.
J6 in the left-hand
position: system is
powered from external
AC/DC power adapter.
J6 in the right-hand
position: system is
powered from PC over
USB cable.
Figure 8 Power supply select jumper
12 ON-BOARD USB 2.0 PROGRAMMER
There are two different programming modes for PIC MCUs: Low-Voltage and High-Voltage. Some
of the PIC MCUs are shipped with Low-Voltage programming mode enabled by default. PICflash is
a High-Voltage programmer only and it can program MCUs regardless of whether they have Low-
Voltage programming mode enabled or disabled. In the USB programmer section there is the jumper
group J10. These jumpers are used for PGM pin selection. The PGM pin is used to enter program-
ming mode when Low-Voltage programming is enabled. As the Low-Voltage programming mode is
not supported by PICflash programmer, this jumper group J10 should remain in default position.
Note: There is no need to reset MCU after programming because it will be automatically cleared by
the programmer.
J8 and J9 for DIP28, DIP40,
Figure 12 DIP18A and DIP18B 13
When using DIP28, DIP40, DIP18A and DIP18B sockets, jumpers J8 and J9 should be set in the
upper position (default) as shown in Figure 12.
When using DIP8, DIP14 and DIP20 sockets, these jumpers should be set in the lower position as
shown in Figure 13.
Jumper J7 allows the use of the MCLR pin as a RESET or a digital I/O pin. It can be RE3, RA5 or
RA3 pin depending on MCU in use.
When J7 is in lower position, the hardware reset is enabled by pressing the reset button. The MCLR
pin cannot be used as I/O pin.
When J7 is in upper position, the MCLR pin can be used as I/O pin. Hardware reset is disabled in
this case.
Figure 14 J7 jumper
14 OSCILLATOR
The EasyPIC5 enables you to use microcontrollers fitting eight different sockets. Since these are not
close to each other, there are two on-board clock oscillators. One of them, denoted by OSC1, is con-
nected to DIP28, DIP40, DIP18A and DIP18B sockets. Another one, denoted by OSC2, is connected to
OSCILLATOR
DIP8, DIP14 and DIP20 sockets. There are identification marks next to each MCU socket on a
silkscreen indicating which oscillator should be used. Quartz crystal is placed in the X1 socket by default.
If you use OSC2, it is necessary to remove it from the X1 socket and place it in the X2 socket.
Figure 15 Oscillators
Note: 10F MCU socket is not connected to either oscillator. The appropriate MCUs have only an internal
oscillator and do not use quartz crystal. Refer to the Figure above.
On some of the microcontrollers, oscillator input pins can also be used as digital input/output pins. 15
In order to implement this feature, the EasyPIC5 has jumpers enabling MCU to be connected to
either oscillator or digital I/O pins. Refer to the schematic of the OSC oscillator in Figure 16.
OSCILLATOR
Figure 16 Oscillator connection with MCU
16 MikroICD (IN-CIRCUIT DEBUGGER)
MikroICD is a highly effective tool for Real-Time debugging on hardware level. The mikroICD debug-
ger enables you to execute a program on PIC microcontroller and view variable values, special func-
tion registers (SFRs) and EEPROM while the program is running.
Mik roICD (IN-CIRCUIT DEBUGGER)
MikroICD can be used with any PIC compiler manufactured by MikroElektronika (mikroC,
mikroBasic or mikroPascal). You just have to select the appropriate build type (Release or ICD
Debug), build a project, program the MCU and run debugger.
The mikroICD debugger uses on-board programmer to communicate with the compiler and supports
common debugger commands:
Note: For more information on how to use mikroICD debugger please refer to the mikroICD User’s Man-
ual. You can also find it in Help documentation inside any of the before mentioned compilers.
LEDs 17
Light Emitting Diodes (LEDs) are components used for displaying pin digital state. The EasyPIC5
has 36 LEDs connected to the microcontroller PORTA, PORTB, PORTC, PORTD and PORTE.
LEDs
Each group of eight port LEDs can be enabled or disabled using switches of the DIP switch SW6.
The exception is PORTE which has four LEDs and shares the same switch with PORTA.
Port LEDs are enabled when the corresponding switch of the DIP switch SW6 is ON. In this case,
LEDs will display the state of the corresponding microcontroller pin. Otherwise, the LEDs are always
off, no matter what the port state is, as no current can flow through them.
Figure 18 LEDs
18 Figure 19 illustrates the connection between LEDs and PORTB. Resistors are serially connected to
the LEDs in order to limit their current. In this case the resistor value is 1K.
LEDs
RESET CIRCUIT
Figure 20 Reset button
As seen in Figure 21, the microcontroller MCLR pin is connected to the programmer instead of
being directly connected to the RESET button.
PUSH BUTTONS
By pressing the button, the RB4 pin is
connected to ground via J17.
Common marking of
7-segment display segments
Note: Have in mind that LCD should be placed or removed from the EasyPIC5 only after the power
is turned off.
24 GRAPHIC LCD
Figure 30 GLCD
Note: Have in mind that GLCD should be placed or removed from the EasyPIC5 only after the power is turned off.
TOUCH PANEL 25
Touch panel is a tin, self-adhesive, transparent
panel which could be placed over the screen of
graphic LCD. It consists of two separate foils
TOUCH PANEL
which form a “sandwich” structure. It is very sensi-
tive to press so that even a soft touch causes
some changes on the output signal. It is used in
various user-friendly devices in combination with
graphic LCD.
Connector CN13 enables this device to be con-
nected to on-board touch panel controller the
active part of which consists of 5 discrete transis-
tors. Four switches of the DIP switch SW9 enable
or disable connection between this controller and
RA0, RA1, RC0 and RC1 pins.
There are many applications of A/D conversion. The microcontroller takes an analog signal from its
input pin and converts it into a digital value. Basically, you can measure any analog signal that fits
in the range acceptable by PIC (0 - VCC).
A/D CONVERTER TEST INPUTS
In order to measure an analog signal without interference, turn off the corresponding switch of the
DIP switch SW1. This will disable connection between PORTA pins and pull-up/down resistors.
31
Pull-up/down resistors on
PORTA analog input pins
should be disabled using the
Note: When the both potentiometers are in use, be sure that jumpers J15 and J16 do not select the
same pin. Otherwise, the development system can be permanently damaged.
32 DIRECT PORT ACCESS CONNECTORS
All microcontroller input/output pins can be accessed via IDC-10 connectors (2x5) placed along the
right side of the board. For each microcontroller port there is one connector providing up to eight
port pins and two additional pins connected to VCC and GND.
DIRECT PORT ACCESS CONNECTORS
These connectors can be used to connect the system to external peripherals such as Serial Ethernet,
Compact Flash, MMC/SD, ADC, DAC, CAN, RTC, RS-485 etc. If on-board and external peripherals use
the same pins then on-board peripherals must be disconnected from the microcontroller using appropri-
ate jumpers. The connectors can also be used for attaching logic probes or other test equipment.
Package content:
Development system: EasyPIC5 comes with PIC16F887
CD: mikroE product CD with software
Cables: USB cable
Documentation: User manual for EasyPIC5, driver installation guide Installing USB MMC/SD multimedia card
drivers, manual for PICflash programmer and manual for mikroICD
System specifications:
USB programmer: USB type B
Power supply: External 8-16V AC/DC
PC over USB cable (5V DC)
Power consumption: >75mA (depends on connected pheriperials)
Size: 25 x 21cm (9,8 x 8,2 inch) CAN-SPI board
Weight: 393g (0.866 lbs)
MikroDRIVE board
RS485 board