Advertisement

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
Development tools - Books - Compilers
3
in
ICD
ICD
IN-CIRCUIT
IN-CIRCUIT
DEBUGGER
DEBUGGER
MICROCHIP
MICROCHIP
PIC
PIC
DEVELOPMENT
DEVELOPMENT
BOARD
BOARD
ICD
4
EasyPIC
User's Manual
1
USB 2.0
USB 2.0
IN-CIRCUIT
IN-CIRCUIT
PROGRAMMER
PROGRAMMER
Software and Hardware
solutions for Embedded World
EasyPIC4
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 that
can satisfy the needs of experienced engineers and
beginners alike.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EasyPIC4 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for MicroElektronika EasyPIC4

  • Page 1 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 EasyPIC4 Development tools - Books - Compilers User’s Manual...
  • Page 2 EasyPIC4 User’s Manual MikroElektronika Development tools First edition September 2006 No part of this manual, including the product and software described in it, may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means, except documentation kept buy the pur- chaser for backup purposes, without the express written permission of MikroElektronika company.
  • Page 3: Table Of Contents

    EasyPIC4 User’s Manual MikroElektronika Development tools CONTENTS CONNECTING THE SYSTEM page 4 INTRODUCTION page 5 DESCRIPTION OF THE DEVELOPMENT SYSTEM page 5 Switches page 6 Jumpers page 7 MCU sockets page 8 Power Supply page 10 On-board USB 2.0 programmer...
  • Page 4: Connecting The System

    Run and use PICFLASH2 as explained in the document ‘PICflash2 programmer’. After these 4 steps, your EasyPIC4 is installed and ready for use. You should try to read a program from the chip or to load an example from the examples folder of mikroElektronika’s compilers for PIC or from the product CD:...
  • Page 5: Introduction

    MikroElektronika Development tools INTRODUCTION MICROCHIP MICROCHIP The EasyPIC4 development system is a full-featured development board for Microchip PIC microcontrollers. It has been designed to allow students and engi- DEVELOPMENT DEVELOPMENT BOARD BOARD neers to easily exercise and explore the capabilities of PIC microcontrollers. It allows PIC microcontrollers to be interfaced with external circuits and a broad range of peripheral devices, allowing a user to concentrate on software development.
  • Page 6: Switches

    Development tools SWITCHES The EasyPIC4 development board features a number of peripherial devices. In order to enable these devices before programming, you need to check if appropri- ate 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.
  • Page 7: Jumpers

    EasyPIC4 User’s Manual MikroElektronika Development tools 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 connec- tion if the jumper is placed between two disconnected pins.
  • Page 8: Mcu Sockets

    EasyPIC4 User’s Manual MikroElektronika Development tools MCU SOCKETS EasyPIC4 is delivered with a 40-pin microcontroller. Users can remove this one and fit a different microcontroller in DIP40, DIP28, DIP20, DIP18, DIP14 or DIP8 packages of an adequate pinout. Figure 5. MCU sockets Note: There are two DIP18 sockets, with different pinouts (DIP18A and DIP18B).
  • Page 9 EasyPIC4 User’s Manual MikroElektronika Development tools 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 use- ful points for connecting digital logic probe.
  • Page 10: Power Supply

    PC using the USB programming cable, while the jumper JP1 should be set in the right-hand position. In the case of an external power supply, the EasyPIC4 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 JP1 should be set in the left-hand posi- tion.
  • Page 11: On-Board Usb 2.0 Programmer

    IN-CIRCUIT IN-CIRCUIT PROGRAMMER PROGRAMMER gramming as EasyPIC4 develop- ment 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 microcon-...
  • Page 12 EasyPIC4 User’s Manual MikroElektronika Development tools Figure 12. JP3 and JP4 for DIP40, DIP28, DIP18A and DIP18B Figure 13. JP3 and JP4 for DIP20, DIP14 and DIP8 When using DIP40, DIP28, DIP18A and DIP18B sockets, jumpers JP3 and JP4 should be in the upper position (default) as shown in Fig. 12.
  • Page 13: Oscillator

    OSCILLATOR Since there are so many sockets on EasyPIC4 board, there are two oscillators that are connected with two main sections of the MCU sockets. The first oscillator is labeled as OSC1 and is connected to DIP40, DIP28, DIP18A and DIP18B socket.
  • Page 14 For some microcontrollers oscillator input pins can also be used as digital input/out- put pins. In order to implement this feature EasyPIC4 has jumpers for connecting MCU either to oscillator or to digital I/O pins. You can see the schematics for OSC1 oscillator on Fig.
  • Page 15: Mikroicd (In-Circuit Debugger)

    EasyPIC4 User’s Manual MikroElektronika Development tools mikroICD (Real-Time Hardware In-Circuit Debugger) mikroICD is highly effective tool for Real-Time debugging on hardware level. IN-CIRCUIT IN-CIRCUIT DEBUGGER DEBUGGER mikroICD debugger enables you to execute a program on a PIC microcontroller and view variable values, Special Function Registers (SFR) and EEPROM as the pro- gram is running.
  • Page 16: Leds

    Development tools LEDs Light Emitting Diodes (LEDs) are the most commonly used components, usually for displaying pin’s digital state. EasyPIC4 has 36 LEDs that are connected to the microcontroller’s PORTA, PORTB, PORTC, PORTD and PORTE. Figure 18. Light Emitting Diodes Each group of eight LEDs can be enabled or disabled using the switch SW2.
  • Page 17 EasyPIC4 User’s Manual MikroElektronika Development tools The LEDs are enabled when the corresponding switch on SW2 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.
  • Page 18: Pushbutton Switches

    MikroElektronika Development tools PUSHBUTTON SWITCHES EasyPIC4 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 schematic is shown in Figure 21.
  • Page 19 EasyPIC4 User’s Manual MikroElektronika Development tools Buttons connections to PORTA, PORTB, PORTC, PORTD and PORTE are shown in Fig. 23. Jumper JP17 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.
  • Page 20 EasyPIC4 User’s Manual MikroElektronika Development tools On Fig. 24 the JP21 switch is set to pull-up, therefore when JP21 the button is not pressed, PortB pull-up pull-up resistor pulls the microcontroller’s RB4 pin to +5V. MCLR A button press causes the...
  • Page 21: 7-Segment Displays

    EasyPIC4 User’s Manual MikroElektronika Development tools 7-SEGMENT DISPLAYS EasyPIC4 has four 7-segment displays in multiplex mode. Data lines are connected to PORTD, while each display is enabled through the lower four bits of PORTA. Figure 26. 7-segment displays MCLR DIS3...
  • Page 22: Graphic Lcd

    EasyPIC4 User’s Manual MikroElektronika Development tools GRAPHIC LCD GRAPHIC LCD GRAPHIC LCD CONNECTOR CONNECTOR A graphic LCD (GLCD) allows advanced visual messages to be displayed. While a character LCD can display only alphanumeric characters, a GLCD can be used to display messages in the form of drawings and bitmaps.
  • Page 23: Lcd 2X16 In 4-Bit Mode

    ON-BOARD ON-BOARD 4-bit or 8-bit data bus, each requiring the use of a different connector on EasyPIC4. For 4-bit data bus use, the LCD should be placed in the upper left of the board, just above the LEDs. The connection to the microcontroller is shown in Fig. 32 where there are only four data lines.
  • Page 24: Lcd 2X16 In 8-Bit Mode

    It is important to note that the LCD should be placed or removed from EasyPIC4 only when the power is off. Before attaching the LCD, set jumper JP12 to the left position. The LCD's contrast can be adjusted using poten- tiometer P3 which is located to the right of the GLCD/LCD connector.
  • Page 25 EasyPIC4 User’s Manual MikroElektronika Development tools In order to enable LCD, jumper JP12 should be set to the left position, labeled as CHAR. JP12 GLCD contrast LCD8 contrast GLCD and LCD8 selected selected contrast not selected CHAR. GRAPH. MCLR P3 10K...
  • Page 26: Rs-232 Communication

    EasyPIC4 User’s Manual MikroElektronika Development tools 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 microcontroller and a PC. Since the voltage levels of a microcontroller and PC are not directly compati- ble with those of RS-232, a level transition buffer, such as the MAX232, must be used.
  • Page 27: Usb Communication

    USB COMMUNICATION The USB communication connector is placed in the upper right corner of the EasyPIC4. It is used with specific PIC microcontrollers that have USB support, such as PIC18F2450 or PIC18F4550. Note that the USB communication connector can- not be used for programming and that the USB programming connector cannot be used for communication.
  • Page 28: Ps/2 Keyboard

    Development tools PS/2 COMMUNICATION PS/2 READY PS/2 READY The PS/2 connector allows direct con- nection between EasyPIC4 and DEVELOPMENT DEVELOPMENT 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.
  • Page 29: Ds1820 Digital Thermometer

    +/-0.5C. It must be placed correctly in the 3-pin socket provided on EasyPIC4, with its rounded side to the right, as marked on the board (see Fig. 42) other- wise the DS1820 could be permanently dam- aged.
  • Page 30: A-D Converter Input

    A-D CONVERTER INPUT ADC INPUT ADC INPUT EasyPIC4 development board has two potentiometers for working with Analog to Digital Converter (ADC). Both potentiometers outputs are in the range of 0V to 5V. ENABLED ENABLED Two analog signals can be connected on two different analog input pins at the same time.
  • Page 31 EasyPIC4 User’s Manual MikroElektronika Development tools Figure 45. pull-up/down PortA A-D Converter input schematics Pull-up/down resistors on PORTA analog input pins should be disabled using 0 - 5V 0 - 5V 0 - 5V JP15 JP16 MCLR Potentiometer P1 is con-...
  • Page 32: Direct Port Access

    EasyPIC4 User’s Manual MikroElektronika Development tools DIRECT PORT ACCESS All microcontroller input/output pins can be accessed via connectors placed along the right side of the board. For each of PORTA, PORTB, PORTC, PORTD and PORTE there is one 10-pin connector providing VCC, GND and up to eight port pins.
  • Page 33 EasyPIC4 User’s Manual MikroElektronika Development tools Pull-up line is connected JP21 Figure 48. PORTB connection Pull-down line All lines is connected are disconnected RPACK8/9 8x10K MCLR OSC1 OSC2 8MHz 22pF 22pF HEADER 5x2 page 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...
  • Page 34 EasyPIC4 User’s Manual MikroElektronika Development tools 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 : support@mikroe.com If you have any other question, comment...

Table of Contents