You are on page 1of 9

OLIMEX 2012 PIC-IO User's Manual

PIC-IO development board


User's Manual
Rev.C, October 2012
Copyr!"t#c$ 2012, O%IM&' %td, (ll r!"ts reserved
(ll boards produced by Olme) are RO*+ complant
OLIMEX 2012 PIC-IO User's Manual
I,-RO.UC-IO,/
PIC-IO board was designed as simple pla!orm w"i#" o allow #onrol o! applian#es and
de$i#es wi" PIC% "e idea was o build some"ing li&e in' PLC #onroller w"i#" is possible
o program in C or assembler insead o! "e weird PLC rela' language(
Le)s see w"a we "a$e on board*
+our ,ig" $olage- ,ig" Curren rela's . wi" /O-/C-COM #ona#s a$ailable on erminal
blo#&( 0"e rela' swi#"ing #urren is raed* 112-12132C% 102-21032C% 112-2435C( /oe
"a "ese rela's are good !or swi#"ing resisi$e loads% bu i! 'ou "a$e o #ommuae
indu#i$e loads "e rela's will wear o!! 6ui#&l' due o "e spar&ing w"en dis#onne# "e
indu#i$e loads 7li&e moors8(
Ea#" rela' "a$e saus LE5 asso#iaed wi" i so 'ou #an eas' see w"i#" rela' is in O/ and
w"i#" in O++ sae(
O1 is #onne#ed o 92: CMP1 and PIC CCP module #an be used o generae O/-O++ pulses(
O2-O:-O4 are #onne#ed o 922-921-920(
+our opo-isolaed inpus will allow o dee# $olages in range ;1-2435C( Opo-#ouplers are
!as and swi#" On-O!! !or 10 u<% so 6ui#& signals #ould be dee#ed(
!NOTE for owners of MOD-IO prior to revision C1: the above information is correct
only for the opto-isolate co!plers " the boar is capable to hanle !p to ##$DC for
them% &o! nee to swap '1( '#( ')( '* - ))+' resistors with *,+' ones be able to !se
#*$DC! This has been fi-e in the latest revision as seen in the schematics%
I1 is #onne#ed o 924 and is good !or #ouning as "is pin is #onne#ed o PIC 00C=I(
I2 is #onne#ed o 9>0 w"i#" is I/0 and generaes inerrups(
I: is #onne#ed o CCP1 and is good !or pulse wid" measuremen(
I4 is #onne#ed o 9>4(
0"e inpus "a$e saus LE5s so eas' #ould be seen w"i#" inpu "a$e $olage( /oe "a "e
opo#ouplers in$erse "e le$els i(e( w"en on "e inpu "a$e ;13 "e PIC pin will read ?0@ and
$i#e $ersa(
<aus LE5 is #onne#ed o 9>1(
PIC-IO "a$e 9<2:2 #onne#or% bu "e dri$er is made b' ri#&' le$el s"i!er w"i#" uses "e
o"er side 9<2:2 negai$e le$els o generae "e PIC-IO le$els% so on "e o"er side 'ou mus
OLIMEX 2012 PIC-IO User's Manual
"a$e real 9<2:2 dri$er 7li&e PC8 i! 'ou r' o #onne# wo PIC-IO boards b' 9<2:2 "e
#onne#ion will !ail as no one o! "e boards will generae "e negai$e le$els(
0"e on-board IC<P #onne#or allow 'ou o program "e PIC on "e board wi"ou pulling i o!
"e so#&e% b' IC<P programmer li&e PIC-MCP% PIC-MCP-U<>% PIC-PA1% PIC-PA2% PIC-
PA:% PIC-PA4 or o program and debug i wi" PIC-IC52% PIC-IC52-POC=E0 or PIC-
IC52-0I/B( IMPO902/0* all programmers pro$ide power suppl' "roug" IC<P #onne#or
during "e programming PIC-IO s"ould no be powered $ia "e eCernal power Da#&E
0"e power suppl' #ir#ui "a$e proe#ion diode !or re$erse #onne#ion( 0"e posii$e poin is
"e inernal pin o! "e power Da#&( 0"e inpu $olage #ould be in range 12.143 5C(
0"e os#illaor #ir#ui is made wi" 20 M"F #r'sal os#illaor% so 'ou #an run 'our PIC a
maCimum per!orman#e(
0"e 9E<E0 is #onne#ed wi" 10= o ;13 and allow sa!e use o! PIC-IC52 or PIC-MCP
programming(
OLIMEX 2012 PIC-IO User's Manual
0&(-UR&+/
ICSP/ICD connector for programming and debugging
RS232 interface
DIL18 socket
Quart cr!sta" 2#$%
L&D to R'( t%roug% )umper
*our opto+iso"ated inputs ,it% status L&Ds
*our Re"a!s 1#-/2(#.-C ,it% status L&Ds
Po,er p"ug+in )ack/ accept -C and DC input
*our mounting %o"es 3/3 mm 0#/1312
*R+3/ 14( mm 0#/#5212/ green so"dermask/ ,%ite si"kscreen component print
Dimensions 1##68# mm 03/763/1(12
OLIMEX 2012 PIC-IO User's Manual
*(R.1(R&/
220uF/25VDC 100n 100uF/16VDC
20p
20p
10uF/25VDC
100n
1N4148
1N4148
1N4148
1N4148
1N4004
1N4004
1N4004
1N4004
1N4004
1N4148
1N4148
GND
GND
GND
GND
GND
GND
GND
PICICSP
4N37
4N37
4N37
4N37
+12V
+12V
+12V
+12V
+5V
+5V
+5V
+5V
+5V
+5V
+5V
+12V
20MHz
470
470
470
470
2K
2K
2K
2K
10K
10K
4,7K
10K
10K
330
1.5K
1.5K
1.5K
1.5K
470K
470K
470K
470K
10K
10K
10K
10K
1
0
K
1
0
K
1
0
K
1
0
K
H200
H200
H200
H200
2N3904
2N3904
2N3904
2N3904
PNP2N3906
2N3904
PIC_18pn
78!05
I1
I1
I2
I2
I3
I3
I4
I4
"1
"1
"2
"2
"3
"3
"4
"4
#$S$%
#$S$%
#&D
#&D
%&D
%&D
C1 C2 C3
C4
C5
C6
C7
D1
D2
D3
D4
D5
D6
D7
D8
D9
D10
D11
1
2
3
4
5
6
ICSP
IN1'1
IN1'2
IN2'1
IN2'2
IN3'1
IN3'2
IN4'1
IN4'2
!$D1
!$D2
!$D3
!$D4
!$D5
!$D6
!$D7
!$D8
!$D9
1 6
2
5
4
"K1
1 6
2
5
4
"K2
1 6
2
5
4
"K3
1 6
2
5
4
"K4
"(%1'1
"(%1'2
"(%1'3
"(%2'1
"(%2'2
"(%2'3
"(%3'1
"(%3'2
"(%3'3
"(%4'1
"(%4'2
"(%4'3
+
'1
'2
P)#
+12VDC
*1
#1
#2
#3
#4
#5
#6
#7
#8
#9
#10
#11
#12
#13
#14
#15
#16
#17
#18
#19
#20
#21
#22
#23
#24
#25
#26
#
2
7
#
2
8
#
2
9
#
3
0
#$!1
#$!1
#$!2
#$!2
#$!3
#$!3
#$!4
#$!4
1
2
3
4
5
6
7
8
9
#S232
%1
%2
%3
%4
%5
%6
#+0/+N0
17
#+1/+N1
18
#+2/+N2/V#$F
1
#+3/+N3/CMP1
2
#+4/%0CKI/CMP2
3
#+5/MC!#
4
#+6/"SC2
15
#+7/"SC1
16
#,0/IN%
6
#,1/#&/D%
7
#,2/%&/CK
8
#,3/CCP1
9
#,4/PGM
10
#,5
11
#,6/%1CKI
12
#,7/%1"SI
13
VDD
14
VSS
5
(1
GND
IN "(%
V#
C-p./012 4C5 2002, "!IM$&!26
122p7//888.-9:;<.=-:/6;>
PIC'I"_/;>_C1
+
OLIMEX 2012 PIC-IO User's Manual
+O0-1(R&/
.&MO1/ PIC16F628-I/P CONTROL SOFTWARE
8%is is demo code/ ,%ic% a""o, contro" of t%e PIC+I9 inputs/outputs :ia PC
,it% ;!per termina"4
Connect PIC+I9 RS232 ,it% cab"e to !our PC and run ;!per termina" ,it%
t%ese settings< 75##/8/=/1/=9=&4 >%en !ou app"! po,er t%is ,i"" be seen
on t%e ;!per termina" ,indo,<
???????????????????????????
? PIC+I9 C9=8R9L ?
? 0C2 2##@/ 9LI$&A Ltd?
???????????????????????????
BC
8o read t%e inputs in binar! format t!pe DrE/ PIC+I9 ,i"" respond ,it%
somet%ing "ike<
F#### if a"" inputs are # or
F1111 if a"" inputs are 1 0i4e4 G(. is app"ied2
t%e inputs are ,it% rig%t "ess significant bit i4e4 t%e order is< I3 I3 I2 I1
8o read t%e inputs in ;&A format t!pe DRE/ PIC+I9 ,i"" respond ,it%
somet%ing "ike<
H# if a"" inputs are # or
H* if a"" inputs are 1
8o c%ange t%e outputs t!pe D,#1#1E/ t%is ,i"" s,itc% on re"a! 1 and re"a! 3
and ,i"" s,itc% off re"a! 2 and re"a! 34
If !ou ,ant to use ;&A :a"ue !ou can ,rite D>(E for instance ,%ic% ,i""
s,itc% on re"a! 3 and re"a! 1 and ,i"" s,itc% off re"a! 2 and re"a! 34
-n! ot%er commands ,i"" not be recognied and PIC+I9 ,i"" respond ,it%
D&RRE
OLIMEX 2012 PIC-IO User's Manual
OR.&R CO.&/
PIC-PIO . assembled and esed 7no &i% no soldering re6uired8
,ow o orderG
Bou #an order dire#l' !rom us or !rom an' o! our disribuors(
C"e#& our web "ps*--www(olimeC(#om !or more in!o(
Revision history:
#$V.+ ' =/;?2;6 @un; 2007
#$V., ' ?66;6 nA- ?B-u2 21; :?<:u: >-92?0; p-CCB9; -n 21; -p2-'=-up9;/C, 22VDC B. 6;A?u92
#$V.C ' =1?n0;6 C=1;:?2= 821 21; 9?2;C2 -n;, /;>C-n C1 -A 21; B-?/6 1?C ?6DuC2;6 /;CC2-/C -n 21;
/;9?. npu2C 4330# 8;/; /;p9?=;6 821 470#5E ?66;6 ? n-2; ?B-u2 6AA;/;n=;C n 6AA;/;n2
/;>C-nCE up6?2;6 6C=9?:;/E ?66;6 Cupp-/2 ?n6 8?//?n2. nA-
OLIMEX 2012 PIC-IO User's Manual
DISCLAIMER
2012 OlimeC Ld( OlimeCH% logo and #ombinaions "ereo!% are regisered rademar&s o! OlimeC Ld(
O"er produ# names ma' be rademar&s o! o"ers and "e rig"s belong o "eir respe#i$e owners(
The information in this document is provided in connection with Olimex products !o license" express
or implied or otherwise" to an# intellectual propert# ri$ht is $ranted %# this document or in connection
with the sale of Olimex products
The Hardware project is released under the Creative Commons Attribution-Share Alike 3.0 United States
icense. !ou ma" reproduce it #or both "our own personal use$ and #or commercial use. !ou will have to
provide a link to the ori%inal creator o# the project https&''www.olime(.com on an" documentation or
website.
!ou ma" also modi#" the #iles$ but "ou must then release them as well under the same terms. Credit can be
attributed throu%h a link to the creator website& https&''www.olime(.com
The so#tware is released under )*.
+t is possible that the pictures in this manual di##er #rom the latest revision o# the board.
The product described in this document is subject to continuous development and improvements. All
particulars o# the product and its use contained in this document are %iven b" ,+-./ in %ood #aith.
However all warranties implied or e(pressed includin% but not limited to implied warranties o#
merchantabilit" or #itness #or purpose are e(cluded. This document is intended onl" to assist the reader in the
use o# the product. ,+-./ td. shall not be liable #or an" loss or dama%e arisin% #rom the use o# an"
in#ormation in this document or an" error or omission in such in#ormation or an" incorrect use o# the
product.
This evaluation board'kit is intended #or use #or en%ineerin% development$ demonstration$ or evaluation
purposes onl" and is not considered b" ,+-./ to be a #inished end-product #it #or %eneral consumer use.
*ersons handlin% the product must have electronics trainin% and observe %ood en%ineerin% practice
standards. As such$ the %oods bein% provided are not intended to be complete in terms o# re0uired desi%n-$
marketin%-$ and'or manu#acturin%-related protective considerations$ includin% product sa#et" and
environmental measures t"picall" #ound in end products that incorporate such semiconductor components or
circuit boards.
,lime( currentl" deals with a variet" o# customers #or products$ and there#ore our arran%ement with the user
is not e(clusive. ,lime( assumes no liabilit" #or applications assistance$ customer product desi%n$ so#tware
per#ormance$ or in#rin%ement o# patents or services described herein.
T.E'E I/ NO 01''1NT& 2O' T.E DE/I3N M1TE'I14/ 1ND T.E
COM5ONENT/ 6/ED TO C'E1TE 5IC-IO% T.E& 1'E CON/IDE'ED
/6IT174E ON4& 2O' 5IC-IO%
OLIMEX 2012 PIC-IO User's Manual
&roduct support
1or product support$ hardware in#ormation and error reports mail to& support2olime(.com. 3ote
that we are primaril" a hardware compan" and our so#tware support is limited.
*lease consider readin% the para%raph below about the warrant" o# ,lime( products.
Warranty and returns:
Our boards have lifetime warranty against manufacturing defects and
components.
During development work it is not unlikely that you can burn your programmer
or development board. This is normal, we also do development work and we have
damaged A OT of programmers and boards during our daily !ob so we know how it
works. "f our board#programmer has worked fine then stopped, please check if
you didn$t apply over voltage by mistake, or shorted something in your target
board where the programmer was connected etc. %ometimes boards might get
damaged by &%D shock voltage or if you spill coffee on them during your work
when they are powered.
'lease note that warranty do not cover problems caused by unproper use,
shorts, over(voltages, &%D shock etc.
If the board has warranty label it should be not broken. Broken labels void
the warranty, same applies for boards modified by the customer, for instance
soldering additional components or removing components - such boards will be
not be a subject of our warranty.
"f you are positive that the problem is due to manufacturing defect or
component you can return the board back to us for inspection.
When we receive the board we will check and if the problem is caused due to
our fault and we will repair#replace the faulty hardware free of charge,
otherwise we can )uote price of the repair.
*ote that all shippings back and forth have to be covered by the customer.
+efore you ship anything back you need to ask for ,-A. When you ship back
please attach to it your shipping address, phone, e(mail, ,-A. and brief
description of the problem. All boards should be sent back in antistatic
package and well packed to prevent damages during the transport.

You might also like