for dsPIC30 USER'S GUIDE EasyPIC v7 ® 13 microcontrollers supported Supports 3.3V and 5V devices Easily 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™ v7 development board was born. In its each and tiniest piece we had put all of our energy, creativity and sense of what’s best for an engineer. Today, we present you the 7th generation of the board, which brings us some exciting new features. We hope that you will like it as much as we do.
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 dsPIC30F microcontrollers are 16-bit high-performance digital signal controllers suitable for advanced motor control algorithms, digital power converters, speech and audio applications. We realized that benefit and start to develop a new system which is convenient for wide range of dsPIC30F microcontroller family produced in DIP packages. We focused all of our creativity and knowledge into making a revolutionary new design which covers many internal modules.
introduction It's good to know dsPIC30F4013 is the default microcontroller! dsPIC30F4013 is the default chip of EasyPIC™ v7 System Specification - Great choice for both beginners for dsPIC30®. It has 30 MIPS operation, 48K bytes and professionals of program memory, 2048 bytes of SRAM memory, - Rich with modules 1024 bytes of EEPROM memory. It has 24-bit wide - Enough RAM and Flash instructions and 16-bit wide data path, .
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 VCC5V, and MC33269DT3.3 which creates VCC-3.3V power supply. Board can be powered in three different ways: with USB power supply (CN1), using external adapters via adapter connector (CN25) or additional screw terminals (CN24).
Power supply: Power capacity: power supply EasyPIC™ v7 for dsPIC30® 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.
E3 10uF C20 100nF OSC1A OSC1B RC13 RC14 RE8 RD1 RD3 C21 100nF C28 100nF DIP40A VCC-MCU MCU-VPP RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RB8 Board contains six DIP sockets: DIP40A, DIP40B, DIP28A, DIP28B, DIP28C, DIP18. With dual power supply and smart on-board mikroProg, board is capable of programming and debugging 13 different microcontrollers from dsPIC30F family.
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 Socket selection Jumpers J1, J2, J3 and J4 are used to select PGC and PGD programming lines for your microcontroller. Make sure to place jumpers in the proper position for your socket. DIP40A DIP28A DIP28B DIP40B DIP18 DIP28C Why so many LEDs? What is mikroProg ? ™ mikroProg™ is a fast USB 2.0 programmer with mikroICD™ hardware In-Circuit Debugger. Smart engineering allows mikroProg™ to support all dsPIC30® DIP microcontrollers from Microchip® in a single programmer.
R4 4K7 VCC-USB LD45 R5 6K8 LED-DATA LED-ACT LED-USB VCC-USB FP1 LED-DATA LED-ACT LED-USB USB-PROG_N USB-PROG_P USB-PROG_N D- 2 USB-PROG_P D+ 3 MCLR# MCU-VPP MCU-PGC MCU-PGD 1K C8 100nF BRD-PGD BRD-PGC MCLR# MCU-VPP MCU-PGC MCU-PGD VCC-BRD VCC-BRD MCU-PGC MCU-PGD BRD-PGD BRD-PGC MCLR# RF2 RB6 RF7 RB5 GND R14 1 2 3 4 5 6 GND 4 C3 100nF R13 10K CN6 CN1 VCC 1 VCC-BRD T43 DATA BUS VCC-5V VCC-5V R3 2K2 VCC-3.3V VCC-3.
On-board mikroProg™ requires drivers in order to work. Drivers are located on the that you received with the EasyPIC™ v7 for dsPIC30® package: DVD://download/eng/software/ development-tools/universal/ mikroprog/mikroprog_for_pic_ drivers_v200.zip 20122011 www.mikroe.com Av ai lab 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: 20122011 www.mikroe.com 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. [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.
communication UART via USB 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 over USB connection. Controllers such as FT232RL from FTDI® convert UART signals to the appropriate USB standard. In order to use USB-UART module on EasyPIC™ v7 for dsPIC30®, you must first install FTDI drivers on your computer.
communication CAN communication Controller Area Network (CAN or CAN bus) is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer. CAN is a message-based protocol, designed specifically for automotive applications but now also used in other areas such as industrial automation and medical equipment.
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’s 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™ Buzz 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 web site. 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 for dsPIC30® 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 for dsPIC30® cleaner and well organized.
connectivity Headers Buttons LEDs With enhanced connectivity as one of the key features of EasyPIC™ v7 for dsPIC30®, we have provided two connection headers for each PORT. I/O PORT group contains one male IDC10 2x5 header (like CN3 on Figure 10-4) and one 1x10 row of connection pads (like CN5 on Figure 10-4). 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 for dsPIC30® 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.
Graphical Liquid Crystal Displays, or GLCDs are used to display monochromatic graphical content, such as text, images, humanmachine interfaces and other content. EasyPIC™ v7 for dsPIC30® provides the connector and necessary interface for supporting GLCD with resolution of 128x64 pixels, driven by the KS108 or compatible display controller. Communication with the display module is done through CN16 display connector.
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 for dsPIC30® is equipped with touch panel controller and connector for 4-wire resistive touch panels.
DATA BUS N O DIS0 DIS1 DIS2 DIS3 2 3 4 RC13 RC14 RF4 RF5 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 5 6 7 8 R81 R82 R83 R84 R85 R86 R87 R88 470 SEG A 470 SEG B 470 SEG C 470 SEG D 470 SEG E SEG F 470 470 SEG G 470 SEG DP Enabling the display SEG G SEG F COM0 SEG A SEG B 10 9 8 7 6 c dp g f cc a b e d SEG E 1 SEG D 2 3 SEG C 4 SEG DP 5 SEG G SEG F COM1 SEG A SEG B 10 9 8 7 6 g f cc a b c dp c dp e d SEG E 1 SEG D 2 3 SEG C 4 SEG DP 5 SEG G SEG F COM2 SEG A SEG B 10 9 8 7 6 g f cc a b e d SEG E 1 SEG D
other 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.
other 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 Enabling I2C EEPROM In order to connect I2C EEPROM to the microcontroller you must place J14 (SCL) and J15 (SDA) jumpers in appropriate position. 1kΩ pullup resistors necessary for I2C communication are already provided on SDA and SCL lines. Prior to using EEPROM in your application, make sure to disconnect other peripherals, LEDs and additional pull-up or pull-down resistors from the interface lines in order not to interfere with signal/data integrity.
other 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 for dsPIC30® contains three GND pins located in 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 GND is located between RS-232 UART module and SW8 DIP switch.
You have now completed the journey through each and every feature of EasyPIC™ v7 for dsPIC30® 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.
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 web site 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 for dsPIC30 Manual ver. 1.