Ready ™ for PIC® with DIP40 socket Best solution for fast and simple development of applications using 40-pin PIC MCUs. Due to the special white plastic casing the Ready for PIC® board can be quickly turned into a final product.
TO OUR VALUED CUSTOMERS I want to express my thanks to you for being interested in our products and for having confidence in MikroElektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs. Nebojsa Matic General Manager The PIC® and Windows® logos and product names are trademarks of Microchip Technology® and Microsoft® in the U.S.A. and other countries.
Table of Contents Introduction 4 step 5 – Uploading .HEX file 13 Package Contains 5 step 6 – Progress bar 14 Key Features 6 step 7 – Finishing upload 1. Power supply 8 2. Programming with mikroBootloader 14 3. Programming with mikroProg programmer 15 ™ 10 4. USB-UART 18 mikroBootloader software 10 5. Prototyping area 19 Identifying device COM port 11 6. Pin headers and connection pads 20 step 1 – Choosing COM port 11 7.
Introduction Ready for PIC® Board is the best solution for fast and simple development of various microcontroller applications. The board is equipped with the PIC18F45K22 MCU that is placed in DIP 40 socket and contains male headers and connection pads for all available microcontroller ports. The pins are grouped according to their functions, which is clearly indicated on the silkscreen. The MCU comes pre programmed with mikroBootloader, but it can also be programmed with mikroProg™ programmer.
Package Contains 20122011 www.mikroe.com Copyright ©2011 Mikroelektronika. All rights reserved. Mikroelektronika, Mikroelektronika logo and other Mikroelektronika trademarks are the property of Mikroelektronika. All other tradmarks are the property of their respective owners. Unauthorised copying, hiring, renting, public performance and broadcasting of this DVD prohibited.
Key Features System Specification power supply Power LED indicator 01 UART communication LEDs (RX.TX) 02 FTDI chip 03 USB UART connector 04 Power supply select 05 Power adapter connector 06 Power screw terminals 07 Male headers 08 Reset button 09 Via AC/DC connector 7-23V AC or 9-32V DC power consumption 6.
01 02 02 03 04 05 06 07 08 08 08 08 13 14 13 12 Page 7 11 10 09
1. Power supply Figure 1-1: USB power supply Figure 1-2: AC/DC adapter power supply Figure 1-3: screw terminals power supply Ready for PIC® board can be powered in three different ways: via USB connector (CN1), via adapter connector using external adapters (CN2) or via additional screw terminals (CN46). The USB connection can provide up to 500mA of current which is more than enough for the operation of every on-board module and the microcontroller as well.
VCC- 5V 1 R2 2K2 3 VCC- 5V LD1 POWER VCC- 5V REG1 GND Vin Vout MC33269DT3.3 E1 10uF 2 VCC- USB CN1 VCC- 3.3V VCC 1 E2 10uF D1 MBRS140T3 D- FP1 GND 4 FERRI TE 3.3V VOLTAGE REGULATOR 2 D+ 3 C7 USB B 100nF VCC- 3.3 VCC VCC- 5V J1 VCC- 5V U2 1 L1 220uH 2 3 E5 330uF/35V D6 MBRS140T3 4 C9 220pF SWC DRVC SWE IPK CT VIN GND CMPR MC34063A 5V SWITCHING POWER SUPPLY 8 R10 0.
2. Programming with mikroBootloader You can program the microcontroller with bootloader which is pre programmed by default. To transfer .hex file from a PC to the MCU you need a bootloader software (mikroBootloader) which can be downloaded from: mikroBootloader software note Before starting mikroBootloader software, connect Ready for PIC® to a PC using a USB cable provided with the package http://www.mikroe.com/eng/downloads/get/1808/ ready_pic_mikrobootloader.
Identifying device COM port step 1 – Choosing COM port 01 02 01 03 Figure 2-3: Choosing COM port Figure 2-2: Identifying COM port 01 Open Device Manager window and expand Ports section to see which COM port is assigned to Ready for PIC® board (in this case it is COM3) Page 11 01 Click the Change Settings button 02 From the drop down list, select appropriate COM port (in this case it is COM3) 03 Click OK
step 2 - Establishing Connection step 3 - Browsing for .HEX file 01 01 Figure 2-4: Connecting with mikroBootloader Figure 2-5: Browse for HEX 01 Press the Reset button on Ready for PIC® board and click the Connect button within 5s, otherwise the existing microcontroller program will run. If connected, the button’s caption will be changed to Disconnect 01 Click the Browse for HEX button and from a pop-up window (Figure 2-6) choose a .
step 4 - Selecting .HEX file step 5 - Uploading .HEX file 01 02 01 Figure 2-6: Locating and selecting .hex file Figure 2-7: Begin uploading 01 Select .HEX file using open dialog window 01 To start .
step 6 - Progress bar step 7 - Finishing upload 01 01 Figure 2-8: Progress bar Figure 2-9: Restarting MCU 01 Progress bar enables you to monitor .HEX file uploading 01 Click OK button after the uploading process is finished 02 Press Reset button on Ready for PIC® board and wait for 5 seconds.
3. Programming with mikroProg™ programmer The board is equipped with mikroProg™ connector pads, which allow you to program the microcontroller using external mikroProg™ programmer. Before attaching the programming connector, it is necessary to make a few adjustments (Page 16).
Figure 3-2: cutting copper between pads Figure 3-3: placing 2x5 male header Figure 3-4: soldering 2x5 male header on the pads Figure 3-5: Connecting mikroProg™ programmer First you need to cut copper between pads for the external programmer, Figure 3-2. By doing so pins RB6, RB7, MCLR and VCC on MCU will be separated from the rest of the board. After that it is time to place (Figure 3-3) and solder (Figure 3-4) a 2x5 male header on the pad (CN5) .
VCC- MCU MCLR-MCU C1 22pF 8 MHz C2 X1 22pF VCC- MCU VCC- MCU C4 100nF OSC1 OSC2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 U1 DIP 40 VCC- MCU 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 RB7-MCU RB6-MCU C10 100nF Figure 3-6: mikroProg™ programmer connection schematic Page 17 VCC VCC- MCU 1 RB6-MCU 3 RB7-MCU 5 MCLR-MCU 7 9 CN5 2 4 6 8 10 mikroProg CONNECTOR RB6 RB7 MCLR
4. USB-UART Fast on-board FTDI® chip allows you to communicate with a PC or other UART devices using USB-UART connection. USB-B connector (CN1) is used for connecting the USB cable. RX (receive) and TX (transmit) LEDs will indicate communication status. Before connecting the board to a PC, make sure that you have the appropriate FTDI drivers installed on your operating system. Drivers can be found at the following URL: Figure 4-1: connected USB-UART http://www.ftdichip.com/Drivers/VCP.
5. Prototyping area Figure 5-2: schematic of three LEDs connected to microcontroller pins as shown in Figure 5-1 Figure 5-1: Proto area usage RA2 RA1 RA0 DATA BUS GREEN RED YELLOW LD1 LD2 LD3 R1 R2 R3 Proto area allows you to expand your Ready for PIC® board with additional functionality. It can be done by placing your additional components on available prototyping area. Pads are arranged in standard 100mils distance form factor.
6. Pin headers and connection pads 01 03 05 02 04 Each microcontroller pin is available for further connections through four on-board 2x5 connection headers and two 1x28 connection pads. Pins are grouped in four PORT groups (2x5 male headers) as well as per their functions (1x28 connection pads), which makes development and connections much easier. Everything is printed on the silkscreen, so that there will be no need of using microcontroller data sheet while developing.
VCC- 5V VCC- MCU RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RC0 RC1 RC2 RC3-SCK RC4-SDI RC5-SDO RC6-TX RC7-RX MCLR RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 CN36 RA0 RA2 RA4 RE0 RA1 RA3 RA5 RE1 VCC CN37 RB0 RB2 RB4 RB6 RB1 RB3 RB5 RB7 VCC C1 22pF 8 MHz C2 22pF OSC1 MCLR RA0 RA1 RA2 RA3 RA4 RA5 RE0 RE1 RE2 OSC1 OSC2 RC0 RC1 RC2 RC3-SCK RD0 RD1 R6 27 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 U1 DIP 40 VCC- 3.
7. Reset button VCC- 5V VCC- MCU MCLR OSC1 OSC2 MCLR 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 U1 DIP 40 VCC- MCU 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 VCC- MCU VCC- MCU C4 100nF C10 100nF VCC R1 10K MCLR T1 C3 100nF RESET 22pF OSC1 OSC2 X1 C1 8 MHz 22pF C2 Figure 7-1: Reset button connection schematic Ready for PIC® board has a specialized reset circuit with high-quality reset button which can be used to reset the program execution of the microcontroller.
8. Integrating with the casing Figure 8-1: Place the board into the bottom part of the casing. Make sure that connectors are aligned with square openings Figure 8-2: Wind screws into inner screw holes to fix the board with the bottom plastic casing Figure 8-3: Place cover casing plastic and wind screws into outer screw holes to fix it with bottom plastics casing Ready for PIC® can easily be integrated into the specialized white plastic casing.
9. Dimensions (510 mils) 12.95 mm (5551.2 mils) 141 mm Page 24 (3307.3 mils) 84.01 mm (1889.8 mils) 48 mm (4881.9 mils) 124 mm (2598.4 mils) 66 mm (360 mils) (701.5 mils) 9.14 mm 17.81 mm (100 mils) 2.54 mm (100 mils) 2.54 mm (1236.4 mils) 31.
Notes: Page 25
Notes: Page 26
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, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika.
PIC 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 Ready for PIC (DIP40) Manual ver. 1.