Ready Pic Dip40 Manual V112a

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 28

Ready

with

for PIC®
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.

PIC
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
Introduction4 step 5 – Uploading .HEX file 13
Package contains 5 step 6 – Progress bar 14
Key features 6 step 7 – Finishing upload 14
1. Power supply 8 3. Programming with mikroProg programmer 15

2. Programming with mikroBootloader 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. Reset button 22
step 2 – Establishing connection 12 8. Integrating with the casing 23
step 3 – Browsing for .HEX file  12 9. Dimensions 24
step 4 – Selecting .HEX file  13

Page 3
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 a 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 preprogrammed
with mikroBootloader, but it can also be
programmed with mikroProg™ programmer.
The board also contains USB-UART module,
prototyping area and a power supply circuit.
It is specially designed to fit into the special
white plastic casing so that you can turn
your PIC® project into a final product.

Page 4
Package contains

01 Damage resistant protective box 02 Ready for PIC® board

03 User’s guide and schematics 04 USB cable, one 2x5 header

Page 5
Key features

System specification
Power LED indicator 01
power supply UART communication LEDs (RX.TX) 02
Via AC/DC connector 7-23V AC FTDI chip 03
or 9-32V DC USB UART connector 04
Power supply select 05
power consumption
Power adapter connector 06
6.2mA in idle state
Power screw terminals 07
(when on-board modules are off)
Male headers 08

board dimensions Reset button 09

141 x 84mm (5.55 x 3.3 inch) mikroProg connector



10
PIC18F45K22 microcontroller 11
Crystal oscillator 12
weight
Connection pads 13
12
~60g (0.13 lbs)
Prototyping area 14

Page 6
01 02 02 03 04 05 06

07

08 08

08 08

13 14 13 12 11 10 09
Page 7
1. Power supply

Figure 1-1: Figure 1-2: Figure 1-3:


USB power supply AC/DC adapter power supply 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. If you decide to use external power supply, voltage values must be within 7-23V AC
or 9-32V DC range. Power LED ON (GREEN) indicates the presence of a power supply. Use only one of the suggested methods for powering
the board. If you use an MCU with a 5V power supply place jumper J1 in the 5V position. Otherwise, it should be placed in the 3.3V position.

Page 8
VCC- 5V REG1 VCC- 5V VCC- USB
1
GND CN1
2
Vout VCC- 3.3V
R2 3 VCC 1
VCC- 5V Vin
2K2 E2
MC33269DT3.3 10uF D1 D- 2
E1 MBRS140T3
LD1 10uF D+ 3
POWER FP1
GND 4
FERRI TE
3.3V VOLTAGE REGULATOR C7 USB B

100nF
VCC- 3.3
VCC
VCC- 5V
J1
VCC- 5V

U2
1 8 R10
SWC DRVC D4 D2
0.22
L1 220uH
2 7
SWE IPK
3 6 VCC-EXT + 1N4007 1N4007 -
CT VIN
D5 D3
E5 D6 4 5
330uF/35V GND CMPR
MBRS140T3 C9 VCC- 5V CN2
CN46
220pF E4
MC34063A 1N4007 1N4007
R7 330uF/35V
3K

R8
5V SWITCHING POWER SUPPLY 1K

Figure 1-4: Power supply schematic

Page 9
2. Programming with mikroBootloader
You can program the microcontroller with the bootloader that mikroBootloader software
is preprogrammed into the device by default. To transfer .hex
file from a PC to the MCU you need the bootloader software note Before starting mikroBootloader, connect Ready for PIC® to a
(mikroBootloader) which can be downloaded from: PC using the USB cable provided with the package

http://www.mikroe.com/eng/downloads/get/1808/
ready_pic_mikrobootloader.zip

After the software is downloaded unzip it to the desired location


and start mikroBootloader software.

Figure 2-1: mikroBootloader window

01 When you start mikroBootloader, a window as shown


in Figure 2-1 should appear.

Page 10
Identifying device COM port step 1 – Choosing COM port

01

02

01

03

Figure 2-2: Identifying COM port Figure 2-3: Choosing COM port

01 Open Device Manager window and expand 01 Click the Change Settings button
Ports section to see which COM port is assigned
02 From the drop down list, select appropriate COM
to Ready for PIC® board (in this case it is COM3)
port (in this case it is COM3)
03 Click OK

Page 11
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 the Ready for PIC® board 01 Click the Browse for HEX button and from a
and click the Connect button within 5s, otherwise the pop-up window (Figure 2-6) choose a .HEX file to
existing microcontroller program will run. If connected, be uploaded to MCU memory
the button’s caption will be changed to Disconnect

Page 12
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 the .HEX file using the Open dialog win- 01 To start .HEX file bootloading click the
dow Begin uploading button
02
Click Open

Page 13
step 6 - Progress bar step 7 - Finishing upload

01
01

Figure 2-8: Progress bar Figure 2-9: Restarting MCU

01 You can monitor .HEX file uploading via progress bar 01 Click OK after the uploading process is finished

02 Press the Reset button on the Ready for PIC®


board and wait for 5 seconds. Your program will run
automatically
Page 14
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-1:
mikroProg™
programmer
Page 15
Figure 3-2: cutting copper Figure 3-3: placing 2x5 Figure 3-4: soldering 2x5 Figure 3-5: Connecting
between pads male header male header on the pads mikroProg™ programmer

First you need to cut the copper between pads for the external programmer, Figure 3-2. By doing so pins RB6, RB7, MCLR and VCC
on the 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) . Now attach the external mikroProg™ programmer connector on the 2x5 header, Figure 3-5. After the
programming process is finished you can remove the programmer connector and solder jumpers over pads in order to enable pins RB6,
RB7 to be used as I/O pins and MCLR to be used as a reset pin.

Page 16
VCC- MCU DIP 40 VCC- MCU
U1
MCLR-MCU 1 40 RB7-MCU
2 39 RB6-MCU
3 38
4 37
5 36
6 35
7 34
8 33
9 32
10 31 VCC VCC- MCU
C1 22pF 11 30
12 29 CN5
OSC1 13 28 1 2
8 MHz X1 OSC2 14 27 RB6-MCU 3 4 RB6
15 26 RB7-MCU 5 6 RB7
C2 22pF 16 25 MCLR-MCU 7 8 MCLR
17 24 9 10
18 23

VCC- MCU VCC- MCU


19
20
22
21
mikroProg
CONNECTOR
C4 C10

100nF 100nF

Figure 3-6: mikroProg™ programmer connection schematic


Page 17
4. USB-UART
Fast on-board FTDI® chip allows Ready for PIC® to communicate
with a PC or other UART devices using a 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. Figure 4-1:
Drivers can be found at the following URL: connected
USB-UART
http://www.ftdichip.com/Drivers/VCP.htm

VCC VCC VCC VCC- 5V VCC- USB


U3 CN1
RC7-RX 1 28 R3 R4
TXD OSCO 2K2 2K2 VCC 1
2 27
DTR# OSCI LD2 LD3
3 26
RTS# TEST D1 USBDM D- 2
J2 4 25
VCCIO AGND MBRS140T3
RC6-TX 5 24
RXD NC USBDP D+ 3
6 23 RX-LED
RI# CBUS0
7 22 TX-LED
GND CBUS1 GND 4
J3 8
NC
FT232RL GND
21
FP1
9 20 VCC-FTDI
DSR# VCC
10 19 USB B
DCD# RESET# FERRI TE
11 18
DATA BUS

CTS# GND
12 17
CBUS4 3V3OUT
13 16
CBUS2 USBDM
14 15 VCC- FTDI VCC VCC- FTDI
CBUS3 USBDP
FT232RL C8 C7 C5 C6 E3

100nF 100nF 100nF 100nF 10uF


Figure 4-2:
USB-UART schematic

Page 18
5. Prototyping area DATA BUS

RA0

RA1

RA2
Figure 5-2: GREEN RED YELLOW
schematic of
three LEDs LD1 LD2 LD3

connected to R1 R2 R3
microcontroller
pins as shown
in Figure 5-1

Proto area
allows you to expand
your Ready for PIC® board with
additional functionality. It can be done by
placing your additional components on the available
prototyping area. Pads are arranged in standard 100mils distance
Figure 5-1: form factor. There are 30 groups of 6 connected pads, two groups of 13
Proto area
connected power pads (GND and VCC) and 186 unconnected pads.
usage
Page 19
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. Before using the pins, it is necessary to solder 2x5 male headers (1-4) on the board pads.

Page 20
VCC- 5V VCC- 3.3
VCC- MCU DIP 40 VCC- MCU
U1
RB0 RA0
MCLR 1 40 RB7
RB1 RA1
RA0 2 39 RB6
RB2 RA2
CN36 RA1 3 38 RB5 CN38
RB3 RA3
RA0 RA1 RA2 4 37 RB4 RC0 RC1
RB4 RA5
RA2 RA3 RA3 5 36 RB3 RC2 RC3-SCK
RB5 RE0
RA4 RA5 RA4 6 35 RB2 RC4-SDI RC5-SDO
RB6 RE1
RE0 RE1 RA5 7 34 RB1 RC6-TX RC7-RX
RB7 RE2
RC0 VCC RE0 8 33 RB0 VCC RD0
RC1 RE1 9 32
RD1
RC2 RE2 10 31
RD2
CN37 11 30 RD7 CN39
RC3-SCK RD3
RB0 RB1 12 29 RD6 RD0 RD1
RC4-SDI RD4
RB2 RB3 OSC1 13 28 RD5 RD2 RD3
RC5-SDO RD5
RC6-TX
RB4 RB5 OSC2 14 27 RD4 RD4 RD5
RD6
RC7-RX
RB6 RB7 RC0 15 26 RC7-RX RD6 RD7
RD7
VCC RC1 16 25 RC6-TX VCC
MCLR RA4
RB0 RC2 17 24 R5 RC5-SDO
RD0
RB1 RC3-SCK R6 18 23 27 RC4-SDI
RD1
RB2 C1 22pF OSC1 RD0 27 19 22 RD3 VCC- MCU VCC- MCU RD2
RB3 RD1 20 21 RD2
RD3
RB4 C4 C10 RD4
RB5 8 MHz X1 RD5
RB6 100nF 100nF RD6
RB7 C2 22pF OSC2 RD7

Figure 6-1: Schematic of pin headers and connection pads


Page 21
7. Reset button
VCC- 5V
VCC- MCU DIP 40 VCC- MCU
U1
MCLR 1 40
2 39
VCC- MCU VCC- MCU
3 38
4 37
C4 C10
5 36
6 35
100nF 100nF VCC
7 34
8 33
9 32 R1
10 31 10K
11 30 MCLR
12 29 T1
OSC1 13 28 C3
OSC2 14 27
15 26 100nF
MCLR 16 25 RESET
17 24
18 23
19 22 Figure 7-1:
20 21
22pF C1 Reset button
OSC1 connection
OSC2 X1 8 MHz
schematic
22pF C2

Ready for PIC® board has a specialized reset circuit with a high-quality reset button which can be used to reset the program execution of the
microcontroller. If you want to reset the circuit, press the on-board RESET button. It will generate a low voltage level on the microcontroller
reset pin (input). In addition, a reset can be externally generated through MCLR pin on 1x28 connection pads.

Page 22
8. Integrating with the casing

Figure 8-1: Figure 8-2: Figure 8-3:


Place the board into the bottom part of Wind screws into inner screw holes Place cover casing plastic and wind
the casing. Make sure that the connectors to fix the board with the bottom screws into outer screw holes to fix it
are aligned with square openings plastic casing with bottom plastics casing

Ready for PIC® can easily be integrated into the specialized white plastic casing. This feature is very convenient for turning the board into
a final product. The white plastic casing contains inner and outer screw holes. Inner are used for fixing the board to the casing and outer
are used for fixing the top part of the casing. Casing comes with holes for USB and power adapter connector, but you can customize it by
drilling and cutting holes in specific areas, depending on the target application.

Page 23
9. Dimensions (510 mils)
12.95 mm
(1236.4 mils)
31.41 mm

(100 mils) (360 mils) (701.5 mils)


2.54 mm 9.14 mm 17.81 mm
(100 mils)
2.54 mm

(3307.3 mils)
(1889.8 mils)

(2598.4 mils)

84.01 mm
48 mm

66 mm
(4881.9 mils)
124 mm

(5551.2 mils)
141 mm

Page 24
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. The manual PDF edition can be printed for private or
local use, but not for distribution. Any modification of this manual is prohibited.

MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties
or conditions of merchantability or fitness for a particular purpose.

MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall
MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages
for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product,
even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this
manual at any time without prior notice, if necessary.

HIGH RISK ACTIVITIES

The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in
hazardous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems,
air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or
severe physical or environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied
warranty of fitness for High Risk Activities.

TRADEMARKS

The MikroElektronika name and logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, Ready™, mikroBUS™, EasyPIC™, click™ boards and mikromedia™ are
trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and
are only used for identification or explanation and to the owners’ benefit, with no intent to infringe.

Copyright © 2014 MikroElektronika. All Rights Reserved.


Page 27
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/support
If you have any questions, comments or business proposals, Ready for PIC (DIP40) Manual
do not hesitate to contact us at office@mikroe.com ver. 1.12a

0 100000 026311

You might also like