USER'S GUIDE EasyPIC v7 connectivity microcontrollers supported Supports 3.3V and 5V devices Easy-add extra boards Four connectors for each port Fast USB 2.
To our valued customers From the day one, we in mikroElektronika gave ourselves the highest possible goals in pursuit of excellence. That same day, the idea of EasyPIC™ development board was born. And we all grew together with EasyPIC™. In its each and tiniest piece we had put all of our energy, creativity and sense of what’s best for an engineer. I’ve personally assembled hundreds of early EasyPIC™ boards myself with my home soldering iron.
Table of contents Introduction Connectivity Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 04 mikroBUS™ sockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 It's good to know . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 05 Input/Output Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 Power Supply Dual power supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
introduction Introduction EasyPIC™ is an old friend. It has been with us for six generations. Many of us made our first steps in embedded world with EasyPIC™. Today it has thousands of users: students, hobbyists, enthusiasts and professionals. It’s used in many schools and other educational institutions across the globe. We may say that it’s the most famous PIC development system in the world. We asked ourselves what we can do to make such a great board even greater. And we made some brilliant changes.
introduction It's good to know PIC18F45K22 is the new default microcontroller! System Specification Until now, EasyPIC™ development boards were equipped with - More power than ever before PIC16® as the default chip. Now we are giving you more - Great choice for both beginners power than ever before.
power supply Dual power supply Board contains switching power supply that creates stable voltage and current levels necessary for powering each part of the board. Power supply section contains two power regulators: MC34063A, which generates VCC-5V, and MC33269DT3.3 which creates VCC-3.3V power supply. The board can be powered in three different ways: with USB power supply (CN2), using external adapters via adapter connector (CN31) or additional screw terminals (CN30).
Power supply: Power capacity: power supply EasyPIC™ v7 development board supports both 3.3V and 5V power supply on a single board. This feature enables you to use wide range of peripheral boards. via DC connector or screw terminals (7V to 23V AC or 9V to 32V DC), or via USB cable (5V DC) up to 500mA with USB, and up to 600mA with external power supply How to power the board? 1.
The board contains eight DIP sockets: DIP40, DIP28, DIP20, DIP18A, DIP18B, DIP14, DIP8 and support for PIC10F MCUs. With dual power supply and smart on-board mikroProg, board is capable of programming over 250 microcontrollers from PIC10F, PIC12F, PIC16F, PIC16Enh, PIC18F, PIC18FJ and PIC18FK families. There are two DIP18 sockets for PIC microcontrollers provided on the board - DIP18A and DIP18B. Which of these sockets you will use depends solely on the pinout of the microcontroller in use.
1 2 supported MCUs How to properly place your microcontroller into the DIP socket? 3 Figure 4-3: Place both ends of microcontroller on the socket so the pins are aligned correctly Figure 4-4: with both fingers, evenly distribute the force and press the chip into the socket. Figure 4-5: Properly placed microcontroller will have equally leveled pins. Before you plug the microcontroller into the appropriate socket, make sure that the power supply is turned off.
programming On-board programmer What is mikroProg™? mikroProg™ is a fast USB 2.0 programmer with mikroICD™ hardware In-Circuit Debugger. Smart engineering allows mikroProg™ to support all PIC10, PIC12, PIC16, PIC18, devices in a single programmer! It supports over 250 microcontrollers from Microchip®. Outstanding performance and easy operation are among it's top features. How do I start? In order to start using mikroProg™ and program your microcontroller, you just have to follow two simple steps: 1.
VCC-MCU ACTIVE DATA VCC-3.3 VCC-3.3 VCC-BRD VCC-3.
On-board mikroProg™ requires drivers in order to work. Drivers are located on the Product DVD that you received with the EasyPIC™ v7 package: DVD://download/eng/software/ development-tools/universal/ mikroprog/mikroprog_for_pic_ drivers_v200.zip 19122011 www.mikroe.com Av ai Copyright ©2011 Mikroelektronika. All rights reserved. Mikroelektronika, Mikroelektronika logo and other Mikroelektronika trademarks are the property of Mikroelektronika.
mikroProg Suite™ for PIC® On-board mikroProg™ programmer requires special programming software called mikroProg Suite™ for PIC®. This software is used for programming all of Microchip® microcontroller families, including PIC10, PIC12, PIC16, PIC18, dsPIC30/33, PIC24 and PIC32. Software has intuitive interface and SingleClick™ programming technology. To begin, first locate the installation archive on the Product DVD: 19122011 le on Produc D! Av Copyright ©2011 Mikroelektronika. All rights reserved.
programming mikroICD - In Circuit Debugger ™ What is Debugging? Every developer comes to a point where he has to monitor the code execution in order to find errors in the code, or simply to see if everything is going as planed. This hunt for bugs, or errors in the code is called debugging.
Here is a short overview of which debugging commands are supported in mikroElektronika compilers. You can see what each command does, and what are their shortcuts when you are in debugging mode. It will give you some general picture of what your debugger can do. Toolbar Icon Command Name Shortcut Description Start Debugger [F9] Starts Debugger. Run/Pause Debugger [F6] Run/Pause Debugger. Stop Debugger [Ctrl + F2] Stops Debugger. Step Into [F7] Executes the current program line, then halts.
The UART (universal asynchronous receiver/transmitter) is one of the most common ways of exchanging data between the MCU and peripheral components. It is a serial protocol with separate transmit and receive lines, and can be used for full-duplex communication. Both sides must be initialized with the same baud rate, otherwise the data will not be received correctly. Enabling RS-232 RS-232 serial communication is performed through a 9-pin SUB-D connector and the microcontroller UART module.
Modern PC computers, laptops and notebooks are no longer equipped with RS-232 connectors and UART controllers. They are nowadays replaced with USB connectors and USB controllers. Still, certain technology enables UART communication to be done via USB connection. FT232RL from FTDI® convert UART signals to the appropriate USB standard. In order to use USB-UART module on EasyPIC™ v7, you must first install FTDI drivers on your computer.
communication USB connection USB connector (CN4) which enables microcontrollers that support USB communication to establish a connection with the target host (eg. PC, Laptop, etc). Selection of communication lines is done using jumpers J12 or J18, depending on the target microcontroller.
mikroBUS sockets Easier connectivity and simple configuration are imperative in modern electronic devices. Success of the USB standard comes from it’s simplicity of usage and high and reliable data transfer rates. As we in mikroElektronika see it, Plug-and-Play devices with minimum settings are the future in embedded world too.
connectivity ADC click™ BEE click™ BlueTooth click™ MP3 click™ RTC2 click™ Click Boards are plug-n-play! ™ mikroElektronika portfolio of over 200 accessory boards is now enriched by an additional set of mikroBUS™ compatible Click Boards™. Almost each month several new Click boards™ are released.
connectivity WiFi PLUS click™ GPS click™ RS485 click™ CAN SPI click™ THERMO click™ Code Examples It easy to get your Click™ board up and running. We provided the examples for mikroC™, mikroBasic™ and mikroPascal™ compilers on our Libstock community website. Just download them and you are ready to start: http://www.libstock.
connectivity Input/Output Group One of the most distinctive features of EasyPIC™ v7 are it’s Input/Output PORT groups. They add so much to the connectivity potential of the board. Everything is grouped together PORT headers, PORT buttons and PORT LEDs are next to each other, and grouped together. It makes development easier, and the entire EasyPIC™ v7 Figure 10-1: I/O group contains PORT headers, tri-state pull cleaner and well organized.
connectivity Headers Buttons LEDs With enhanced connectivity as one of the key features of EasyPIC v7, we have provided four connection headers for each PORT. I/O PORT group contains two male IDC10 headers (like CN10 and CN15 on Figure 10-3). These headers are all compatible with over 70 mikroElektronika accessory boards, and enable simple connection. There is one more IDC10 header available on the left side of the board, next to the section with displays.
displays LCD 2x16 characters Liquid Crystal Displays or LCDs are cheap and popular way of representing information to the end user of some electronic device. Character LCDs can be used to represent standard and custom characters in the predefined number of fields. EasyPIC™ v7 provides the connector and the necessary interface for supporting 2x16 character LCDs in 4-bit mode. This type of display has two rows consisted of 16 character fields. Each field is a 7x5 pixel matrix.
Display connector is routed to PORTB (control lines) and PORTD (data lines) of the microcontroller sockets. Since the same ports are used by 2x16 character LCD display, you cannot use both displays simultaneously. You can control the display contrast using dedicated potentiometer P3. Full brightness display back light can be enabled with SW4.5 switch, and PWM-driven back light with SW4.6 switch.
displays Touch panel controller Touch panel is a glass panel whose surface is covered with two layers of resistive material. When the screen is pressed, the outer layer is pushed onto the inner layer and appropriate controllers can measure that pressure and pinpoint its location. This is how touch panels can be used as an input devices. EasyPIC™ v7 is equipped with touch panel controller and connector for 4-wire resistive touch panels.
To enable digit select lines for the 4-digit 7-segment display you have to turn on SW4.1, SW4.2, SW4.3 and SW4.4 switches. Digit select lines are connected to RA0 – RA3 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.
modules DS1820 - Digital Temperature Sensor DS1820 is a digital temperature sensor that uses 1-wire® interface for it’s operation. It is capable of measuring temperatures within the range of -55 to 128°C, and provides ±0.5°C accuracy for temperatures within the range of -10 to 85°C. It requires 3V to 5.5V power supply for stable operation. It takes maximum of 750ms for the DS1820 to calculate temperature with 9-bit resolution.
The LM35 is a low-cost precision integrated-circuit temperature sensor, whose output voltage is linearly proportional to the Celsius (Centigrade) temperature. The LM35 thus has an advantage over linear temperature sensors calibrated in ° Kelvin, as the user is not required to subtract a large constant voltage from its output to obtain convenient Centigrade scaling. It has a linear +10.0 mV/°C scale factor and less than 60 μA current drain.
modules ADC inputs 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.
I C EEPROM Figure 18-1: Activate SW4.7 and SW4.8 switches to connect microcontroller I2C lines to Serial EEPROM. In order to connect I2C EEPROM to the microcontroller you must enable SW4.7 and SW4.8 switches, as shown on Figure 18-1. 1kΩ pull-up resistors necessary for I2C communication are already provided on SDA and SCL lines once switches are turned on.
modules Piezo Buzzer Piezo electricity is the charge which accumulates in certain solid materials in response to mechanical pressure, but also providing the charge to the piezoelectric material causes it to physically deform. One of the most widely used applications of piezo electricity is the production of sound generators, called piezo buzzers.
EasyPIC™ v7 contains three GND pins located in three different sections of the board, which allow you to easily connect oscilloscope GND reference when you monitor signals on microcontroller pins, or signals of on-board modules. 1 1 GND is located between UART module and 4-digit 7-seg display. 2 GND is located in the cross section between DIP18 and DIP14 sockets 3 GND is located between PORTD I/O group and DIP28 socket.
You have now completed the journey through each and every feature of EasyPIC™ v7 board. You got to know it’s modules, organization, supported microcontrollers, programmer and debugger. Now you are ready to start using your new board. We are suggesting several steps which are probably the best way to begin. We invite you to join thousands of users of EasyPIC™ brand. You will find very useful projects and tutorials and can get help from a large ecosystem of users.
notes page 35
notes page 36
DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, must be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
If you want to learn more about our products, please visit our website at www.mikroe.com If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/esupport If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com EasyPIC v7 User Manual ver. 1.