PIC-WEB-B
-
Upload
marco-antonio-toscano -
Category
Documents
-
view
213 -
download
0
Transcript of PIC-WEB-B
-
7/26/2019 PIC-WEB-B
1/35
PIC-WEB REV.B development boardUsers Manual
All boards produced by Olme! are RO"# complant
Rev.C$ Marc% &'((
Copyr)%t*c+ &'(($ O,IME ,td$ All r)%ts reserved
Page1
-
7/26/2019 PIC-WEB-B
2/35
I/RO0UC/IO
PIC-WEB is compact board with 65x60 mm size which is supported byMicrochips open source TCP-IP stack !"##$ The board is desi%ned with 6&-pinhi%h-per'ormance( ) Mbit *+ash microcontro++er with ,thernet - PIC)"*6.60 andsupports/ 1IP( 2P( IP( ICMP( TCP( 34P( TTP( 4CP( *TP$ The Microchip stackis written ery modu+ar and '+exib+e and you can enab+e or disab+e modu+es andsupports dynamic web pa%es which %ie you the possibi+ity to contro+ a++ PIC
resources remote+y ia *TP( TTP( 34P( TCP etc$ 7ith this board you canimp+ement web and 'tp serer( send e-mai+s and a+most eerythin% what the bi%serers do$ The on board )Mbit seria+ '+ash is aai+ab+e 'or data stora%e$
This board is desi%ned to hae 7eb pa%e o' no more than )8" k9$ I' youwant a +ots o' ima%es in your app+ication you an a+so host them on other sererisib+e on the network where you hae the PIC-7,9 connected$ The potentia+ o'the board is to %enerate a '+uid communication between some speci'ic sensors oractuators across a TCP:IP net inc+udin% the contro+s o' it$
The Microchip stack is an open source +ibrary( which is possib+e to modi'yand compi+e at any time$ 9ut you wi++ probab+y need to modi'y it to your ownneeds$ The board comes with an imp+emented 7,9 serer and a web pa%e that +et
you contro+s some o' the 'eatures o' the board$ In this manua+ we++ +earn about howto compi+e the TCP:IP stack to use it oer the p+at'orm( the needed so'tware( howto use the pre +oaded web pa%e( and how to up+oad your own web pa%es in theboard$
This manua+ re;uires Microso't 7indows< = because seera+ so'twareused here is windows compatib+e on+y$
BOAR0 1EA/URE#
PIC)"*6.60 microcontro++er
)Mbit on board seria+ '+ash 'or web pa%es stora%e ICP:IC4 connector 'or pro%rammin% and debu%%in% with PIC-IC48( PIC-
IC48-P=C>,T and PIC-IC48-TI!?$
2eset button
3ser eent button
na+o%ue trimmer potentiometer
Thermistor 'or temperature monitorin%
28#8 drier and connector
Comp+ete web serer and TCP-IP stack support as per Microchip@s opensource TCP-IP stack
Power p+u%-in Aack 'or B54C power supp+y
o+ta%e re%u+ator B#$# and 'i+terin% capacitors
status 1,4
,xtension header to connect to other boards
PC9/ *2-&( )$5 mm D0(068EF( so+der mask( si+kscreen component print
4imensions 60x65 mm D8$#6x8$55EF
Page2
-
7/26/2019 PIC-WEB-B
3/35
E,EC/RO#/A/IC WARI2
The PIC-7,9 board is shipped in protectie anti-static packa%in%$ The board mustnot be subAect to hi%h e+ectrostatic potentia+s$ Genera+ practice 'or workin% withstatic sensitie deices shou+d be app+ied when workin% with this board$
BOAR0 U#E RE3UIREME/#
Cables4 4epends on the used pro%rammin%:debu%%in% too+$ It cou+d be )$"meter 39 -9 cab+e to connectPIC-IC48orPIC-IC48-P=C>,Tto 39 host on PCor eria+ 49H cab+e in case o' PIC-IC48-TI!?or other pro%rammin%:debu%%in%too+s$ ?ou wi++ need a seria+ cab+e i' not 'or pro%rammin%( than 'or con'i%urin% theboard$ ?ou wi++ a+so need a Crossoer ,thernet cab+e$
"ard5are4 Pro%rammer:4ebu%%er most o' =+imex pro%rammers areapp+icab+e( 'or examp+e PIC-IC0&( PIC-IC0&-POC6E/$ PIC-IC0&-/I7 or othercompatib+e pro%rammin%:debu%%in% too+$
888Warnn)8887hen you want to pro%ram this microcontro++er with PIC-IC48( PIC-
IC48-P=C>,T or PIC-IC48-TI!?( be'ore connectin% the pro%rammer to yourtar%et board( you shou+d 'irst connect the pro%rammer to your computer and openMP19$ There( 'irst 'rom menu Con'i%ure e+ect 4eice choose themicrocontro++er you are about to pro%ram( then 'rom menu Pro%rammer e+ectPro%rammer choose MP19 IC4 8( wait whi+e MP19 is down+oadin% operationsystem( and a'ter IC48 is connected check in menu Pro%rammer ettin%s Power there is option Power tar%et circuit 'rom MP19 IC4 8 this optionshou+d be 'orbidden( you cou+d not se+ect it$ !ow it is sa'e to connect thepro%rammer to your tar%et board$
#o9t5are4 PIC-WEB is tested withMP,AB I0E v.:.(; < C(: compler 1ree#tandart EVA, VersonDwww$microchip$comF$ TCP:IP stack
Dwww$microchip$comF$ It is possib+e that the stack mi%ht not 'unction proper+y i'used with +ater ersions o' MP19 I4,$ ?ou wi++ a+so need a termina+ pro%ramcon'i%ured at )H 800 bps( "!) and no '+ow contro+$
Page3
http://www.olimex.com/dev/pic-icd2.htmlhttp://www.olimex.com/dev/pic-icd2.htmlhttp://www.olimex.com/dev/pic-icd2.htmlhttp://www.olimex.com/dev/pic-icd2-pocket.htmlhttp://www.olimex.com/dev/pic-icd2-pocket.htmlhttp://www.olimex.com/dev/pic-icd2-pocket.htmlhttp://www.olimex.com/dev/pic-icd2-tiny.htmlhttp://www.microchip.com/http://www.microchip.com/http://www.olimex.com/dev/pic-icd2-pocket.htmlhttp://www.olimex.com/dev/pic-icd2-tiny.htmlhttp://www.microchip.com/http://www.microchip.com/http://www.olimex.com/dev/pic-icd2.html -
7/26/2019 PIC-WEB-B
4/35
PROCE##OR 1EA/URE#
PIC-WEB board use CP3 PIC(:1=>?=''rom Microchip with these 'eatures/
Operatn) 1re@uency- 4C &)$6 Mz
1las% pro)ram memory *bytes+ )8"k
1las% pro)ram memory *Instructons+ 655#8
#RAM data memory *bytes+ #"0"
Interrupt #ources 86
Et%ernet /R Bu99er *bytes+ ")H8
IO Ports ( 9( C( 4( ,( *( G
IO Pns #H
('-Bt A0 *c%+ ))
CaptureComparePWM Modules 8
En%anced CaptureComparePWM Modules #
#eral Communcatons- MP D)F( ,nhanced 32T D)F
#PI
Master I&C
Comparators 8
/mers :(=-Bt 8:#
Resets *and 0elays+- P=2( 9=2( 2,,T Instruction( tack *u++( tack3nder'+ow( MC12 ( 74T DP72T( =TF
Instructon #et- 5 Instructions( "# with ,xtended Instruction et ,nab+ed
Et%ernet 1eatures4
I,,, "08$# compatib+e ,thernet Contro++er
Inte%rated MC and )09ase-T P?
"->byte Transmit:2eceie Packet 9u''er 2M
upports one )09ase-T Port with utomatic Po+arity 4etection and Correction
Pro%rammab+e utomatic 2etransmit on Co++ision
Pro%rammab+e Paddin% and C2C Generation
Pro%rammab+e utomatic 2eAection o' ,rroneous Packets
ctiity =utputs 'or 8 1,4 Indicators
9u''er/
Con'i%urab+e transmit:receie bu''er size
ardware-mana%ed circu+ar receie *I*=
9yte-wide random and se;uentia+ access
Page4
-
7/26/2019 PIC-WEB-B
5/35
Interna+ 4M 'or 'ast memory copyin%
ardware assisted checksum ca+cu+ation 'or arious protoco+s
MC/
upport 'or 3nicast( Mu+ticast and 9roadcast packets
Pro%rammab+e Pattern Match o' up to 6& bytes within packet at user-de'ined o''set
Pro%rammab+e wake-up on mu+tip+e packet 'ormats
P?/
7ae shapin% output 'i+ter
1oopback mode
1le!ble Oscllator #tructure4
e+ectab+e ystem C+ock deried 'rom sin%+e 85 Mz externa+ source/
8$" to &)$6 Mz
Interna+ #) kz =sci++ator
econdary =sci++ator usin% Timer) J #8 kz
*ai+-a'e C+ock Monitor/
++ows 'or sa'e shutdown i' osci++ator stops
Two-peed =sci++ator tart-up
Perp%eral ")%l)%ts4
i%h-Current ink:ource/ 85 m:85 m on P=2T9 and P=2TC
*ie Timer modu+es DTimer0 to Timer&F
*our ,xterna+ Interrupt pins
Two Capture:Compare:P7M DCCPF modu+es
Three ,nhanced Capture:Compare:P7M D,CCPF modu+es/
=ne( two or 'our P7M outputs
e+ectab+e po+arity
Pro%rammab+e dead time
uto-shutdown and auto-restart
3p to two Master ynchronous eria+ Port DMPF modu+es supportin% PI Da++& modesF and I8CK Master and +ae modes
3p to two ,nhanced 32T modu+es/
upports 2-&"5( 2-8#8 and 1I! )$8
uto-wake-up on tart bit
uto-9aud 4etect
)0-9it( up to )6-Channe+ na+o%-to-4i%ita+ Conerter modu+e D:4F/
uto-ac;uisition capabi+ity
Conersion aai+ab+e durin% +eep
Page5
-
7/26/2019 PIC-WEB-B
6/35
4ua+ na+o% Comparators with Input Mu+tip+exin%
#pecal Mcrocontroller 1eatures4
5$5 To+erant Inputs Ddi%ita+-on+y pinsF
1ow-Power( i%h-peed CM= *+ash Techno+o%y/
e+'-repro%rammab+e under so'tware contro+
C compi+er =ptimized rchitecture 'or re-entrant code
Power Mana%ement *eatures/
2un/ CP3 on( periphera+s on
Id+e/ CP3 o''( periphera+s on
+eep/ CP3 o''( periphera+s o''
Priority 1ee+s 'or Interrupts
" x " in%+e-Cyc+e ardware Mu+tip+ier
,xtended 7atchdo% Timer D74TF/
Pro%rammab+e period 'rom & ms to )#&s
in%+e-upp+y #$# In-Circuit eria+ Pro%rammin%K DICPKF ia two pins
In-Circuit 4ebu% DIC4F with # 9reakpoints ia two pins
=peratin% o+ta%e 2an%e o' 8$#5 to #$6 D#$)& to #$&5 usin% ,thernetmodu+eF
=n-Chip 8$5 2e%u+ator
Page6
-
7/26/2019 PIC-WEB-B
7/35
B,OC6 0IA2RAM
Page7
-
7/26/2019 PIC-WEB-B
8/35
MEMOR7 MAP 9or PIC(:1=>?='
Page8
-
7/26/2019 PIC-WEB-B
9/35
#C"EMA/IC
Page9
3
.3VA
3.3
VA
3.3
VA
3.3
VA
10K
470u
F/16V
390p
F
1000u
F/6
.3V/8mm
/ESR
22pF
22pF
220nF
100n
F
100n
F
100n
F
100n
F
100n
F
100nF
10uF/
6.3
V
100n
F
10pF
10pF
100nF
100n
F
100
n
100n
100n
100n
100n
100n
100n
100n
100n
1N5819
DB104(SMD)
CON6V6!2.5
4MM
C"150u
#/S$68
%&''
&
+&,
-
R"D!0
43C
'&-
9!1
2VDC
RED
25M#
32768/6pF
0.6
8
0.6
8
3K/1
1.8
K/1
560
330
10K
1M
2/1
270/1
330
560
49.9
/1
49.9
/1
180
180
49.9
/1
49.9
/1
10K 3
30
330
10K
100K
DB9
%&m,
&
S$
!AKON#AND
ERMSOR
MC34063ADSMDMB
R
C18F6760
MA3232
A45DB011
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
3.3
V
EE
CS
EE
CS
AN
EM
AN
EM
A
N
RM
AN
RM
B
B
CS
"EDA
"EDA
"EDB
"E
DB
C
C
D
D
RS
RS
RS
RD1
RD
1
SCK
SCK
SD
SD
SDO
SDO
N:
N:
N!
N!
O:
O:
O!
O!
D1
D
1
VN
12 3.3
V
E
AN
R
B
C1
C2
C3
C4
C5
C6
C7
C8
C9
C10
C11
C12 C
13
C14
C15
C16
C17
C18
C1
9
C20
C21
C22
C23
C24
C25
C26
C27
D1
E!1
E!2
E!3
E!4
E!5
E!6
E!7
E!8
E!9
E!1
0
E!1
1
E!1
2
E!1
3
E!1
4
E!1
5
E
!1
6
E!1
7
E!1
8
E!1
9
E!2
0
E!2
1
E!2
2
E!2
3
E!2
4
E!2
5
E!2
6
E!2
7
E!2
8
E!2
9
E!3
0
E!3
1
E!3
2
E!3
3
E!3
4
1
1 2 3 4 5 6CS
"1
"2
A
A
A;
A;
K
K
K;
K;
RC
6
RD:
7
RD!
8
C
3
D:
1
D!
2
75
75
75
75
1nF/2V
1 4 5 2 3 7 8 6
REEN
;E""O$
"AN
"ED
$R
ACK
$R
"ED
ND
ND
I & 25:!&
5 2,0:P84 6 2,):P8C
2,8:P89 " 2C8:,CCP):P)
H 240:P)9 )0 24):,CCP#:P#
)) 248:CCP&:P#4 )8 29):I!T)
)# 298:I!T8 )& 29#:I!T#
)5 295:>9I) )6 2T
) B#(# )" B#$#
)H G!4 80 I!
8) 2,#:P#C 88 2,&:P#9
8# 2,5:P)C 8& 2*):!6:C8=3T
85 2*8:!:C)=3T 86 2*5:!)0:C2,*
8 2*6:!)) 8" 2G&:CCP5:P)4
8H CT #0 2T
#) !C #8 !C
## #$# #& G!4
,A
Pn #)nal ame
) TP=3TB
8 TP=3T-
# #$#
& !C
5 !C
6 !C
Page13
-
7/26/2019 PIC-WEB-B
14/35
TPI!B
" TPI!-
,E0 Color Usa)e
2i%ht ?e++ow ctiity
1e't Green )00M9its:s Da+':*u++ dup+exF
Page14
-
7/26/2019 PIC-WEB-B
15/35
MEC"AICA, 0IME#IO#
Page15
-
7/26/2019 PIC-WEB-B
16/35
Connectn) and testn) t%e board
The PIC-7,9 comes with a de'au+t code and web serer that you can test in a coup+e o'simp+e steps$ *irst o' a++ you hae to con'i%ure the ,thernet port to be ab+e to work on your +oca+network$ That is possib+e trou%h the MCPtack Con'i%uration Conso+e$
Usn) t%e PIC-WEB con9)uraton console
Its possib+e to modi'y the network con'i%uration usin% the con'i%uration conso+e on the seria+port( a++owin% a success'u+ operation on your +oca+ network$ 3sin% the con'i%uration conso+e you can
chan%e the PIC-7,9 IP address 'or examp+e$
To access to the conso+e menu is necessary a seria+ 49H cab+e( to connect the board seria+ portto one aai+ab+e C=M port on your computer$ Then you wi++ need to connect the board usin% aso'tware +ike windows yperTermina+$ ?ou can use yperTermina+ because it is inc+uded on a+mosta++ windows machine$ It is +ocated in tart menu ++ Pro%rams ccessories Communications$4oub+e c+ick on yperTermina+ and then choose the C=M port where the board is connected$
!ow is necessary to con'i%ure the seria+ connection to/
Page16
-
7/26/2019 PIC-WEB-B
17/35
These are the basic steps to con'i%ure the connection$ I' you want to see what you are typin%you shou+d set the checkbox Q,cho typed characters +oca++yR in *i+e-SProperties-Settin%s-SCIIetup$ Then sae the connection 'or +ater use$
'ter this setup the connection with the PIC-7,9 shou+d be ready( but the conso+e wi++ notshow anythin%$ Thats because the board is not runnin% on con'i%uration mode$ To run on that modeyou Aust need to push the Q93TR button on the board$ >eep it pressed whi+e you push the Q2TRbutton$
menu wi++ immediate+y appear on yperTermina+ showin% 'o++owin% options/
Page17
-
7/26/2019 PIC-WEB-B
18/35
The third option a++ow you to chan%e the board IP number$ .ust type #( then enter the new IPcompatib+e with your +oca+ network con'i%uration$ 'ter that push ,!T,2 and return to the mainmenu a%ain$
!ow you must con'i%ure the other network parameters/ %ateway and subnet mask or i' youpre'er you can enab+e the 4CP to %et the con'i%uration 'rom your router$ The 'irst and the secondoptions are not used in this manua+$ t this moment we wi++ on+y use the on-board de'au+t pa%e$
The +ast option saes the con'i%uration and restarts the PIC-7,9$*or testin% purposes you can connect the board direct+y to your computer with a crossoer
ethernet cab+e ( con'i%ure the board with )H8$)6"$0$#8 address( )H8$)6"$0$) %ateway( disab+e 4CPDoption 6F and con'i%ure the ,thernet adapter on your computer with )H8$)6"$0$#) and the same%ateway$ ere is an examp+e o' windows con'i%uration/
Page18
-
7/26/2019 PIC-WEB-B
19/35
This con'i%uration wi++ +et you test the board direct+y 'rom your PC but isnt too use'u+$ The'un stu'' be%ins when you hae the PIC-7,9 connected to internet$ .ust ima%ine your sensor monitor
proAect( but now you wi++ be ab+e to see the in'ormation anywhere Aust browsin% the address o' theboard
/est WEB pa)e4
s it was mentioned aboe( the PIC-7,9 board has an embedded web serer and a demopa%e$ The pa%e shows some o' the 'eatures o' the board and it hae a +ink to =+imexs PIC-7,9in'ormation pa%e$
To access the demonstration pa%e( the serer must be accessib+e 'rom the computer$ Thede'au+t IP address o' the board is )H8$)6"$0$#0( and )H8$)6"$0$) is the %ateway$ Those a+ues must beenset to work with your net$ In this manua+ we hae set IP address o' the board to )H8$)6"$0$#8$ Then
you can %et the pa%e with any web browser writin% the IP address o' the board on the address bar$
Page19
-
7/26/2019 PIC-WEB-B
20/35
t the picture aboe( you can see the de'au+t pa%e that you must %et$ It shows the temperatureo' the on-board thermistor( the status o' the button 93T( the a+ue o' the potentiometer( the status o'the 1,4 and so on$
To to%%+e the status 1,4 o' the board DPIC-7,9F you can c+ick on the %reen dot under thecaption Q1,4s/R$ 9y c+ickin% on this dot you are chan%in% the state o' the pin( see how the +ed switchon or switch o''$
Page20
-
7/26/2019 PIC-WEB-B
21/35
t the pa%e you can a+so seesome a+ues o' the PIC-7,9 sensors and buttons/
9uttons/
Potentiometer/
Temperature/
QPotentiometerR shows a measurement 'rom the PIC :4 connected to a )0>U potentiometeron the board( you can 'ree+y chan%e that potentiometer position and check how the measurementchan%es$
QTemperatureR shows the a+ue o' the temperature sensed by the thermistor in the boardconnected to another :4 port o' the PIC)"*6.60$
Q9uttonsR shows the state o' the on-board button$ It is QVR whi+e the button is not pressed andQLR i' it is pressed$
Uploadn) pa)es to t%e server
There are 8 easy ways to up+oad pa%es to the serer( but you wi++ a+ways need to conert the'i+es you want to up+oad in a MP* 'i+e 'ormat$ =ne other way is to inc+ude the web pa%e on thesource code and +ink it in a proAect( but i' we did it in this way we wont use the ,,P2=M inc+uded inthe p+at'orm wastin% pro%ram memory( that is reason this method wi++ not be inc+uded in this manua+$
Microchip File System (MPFS)
The imp+emented TTP serer uses the MP* simp+i'ied 'i+e system to store the pa%es on theembedded system$ That is why it is necessary to trans'orm the 'i+es to that 'i+e system be'oreup+oadin% them$ This is done usin% a pro%ram inc+uded in PIC-7,9 so'tware ca++ed MP*8$exe$
1ets create a simp+e Qe++o 7or+dR pa%e and up+oad it in to the TTP serer$
*irst o' a++ its necessary to create a directory on your PC where to put the 'i+es you want toup+oad to the web serer$ The Qindex$htmR is a must hae 'i+e because that is the de'au+t pa%e read bythe serer$ 7e wi++ a+so up+oad a picture Qo+imex$%i'R D%et it 'rom the site 'or examp+eF$ The code o' thepa%e is the simp+est possib+e/
Page21
-
7/26/2019 PIC-WEB-B
22/35
!ext thin% to do is Aust start the MP*8$exe uti+ity and set up the re;uired 'ie+ds$ ere is ascreenshot o' one possib+e con'i%uration/
ery handy 'eature o' the uti+ity is point &( which may be used to automatica++y up+oad theima%e to the board a'ter a success'u+ conertion$ ,nter the IP o' your board and +eae the other 'ie+ds
Page22
-
7/26/2019 PIC-WEB-B
23/35
at de'au+ts$ Press the @Generate and 3p+oad@ and wait 'or your new ima%e to be %enerated andup+oaded$ This is a samp+e o' the resu+t o' a success'u+ up+oad/
P+ease note that an ima%e 'i+e Din this case web$binF is %enerated and may be used +ater i' youse+ect the @Pre-bui+t MP* ima%e@ radio button at the top o' the uti+ity pro%ram window$
nother way to up+oad an ima%e 'or the web serer is throu%h the web serer itse+'$ ?ou wi++need a pre-bui+t ima%e Dyes( shou+d be bui+t by the MP*8 uti+ity a%ainF somewhere in your PC@s 'i+esystem$ In your 'aourite browser type the IP o' the board with the 'o++owin% path/
http/::)H8$)6"$0$#8:mp'sup+oad
ere is a screenshot o' what you wi++ see/
!ow point to the ima%e 'i+e and press @3p+oad@$ it back and re+ax whi+e the up+oad takesp+ace and then nai%ate to the home pa%e to beho+d the new pa%e Aust up+oaded$
The resu+t wi++ be/
Page23
-
7/26/2019 PIC-WEB-B
24/35
Installn) t%e development envronment
The web pa%e that we wrote in +ast chapter obious+y doesnt hae any uti+ity 'or anyapp+ication at a++$ The idea o' the PIC7,9 is to hae contro+ o' the PIC)"*6.60 'eatures oer the netusin% dynamics web pa%es or others TCP:IP protoco+s inc+uded in the Microchip tack$ In thismanua+ we wi++ exp+ain how to create a dynamic web pa%e( but this isnt the +imit o' the PIC-7,9 andthe TCP:IP tack( you can %et 'urther to reach the 'u++ capacity o' this p+at'orm and mana%e otherprotoco+s o' network communication between the PIC microcontro++er and any c+ient or serer in the
network$The PIC-7,9 comes with compi+ed and insta++ed so'tware that can a+so be down+oaded 'rom
=+imex web pa%e( this so'tware is based on two basics components 'rom Microchip p+us a C compi+er$These components are the Microchip !"## TCP:IP tack( Microchip MP19 I4, the PICmicrocontro++er so'tware dee+opment p+at'orm and a compatib+e compi+er that can be Microchip C)"this +ast one isnWt 'ree but Microchip hae a 'ree standard ea+ ersion that we can use with +imitedsupport
but it is abso+ute+y 'unctiona+ to our purpose$ There is other compatib+e compi+er the i-Tech PICC-)"$7e++ choose the Microchip compi+er 'or this manua+$
It wi++ be a+so necessary to continue with this manua+ to hae an ICP pro%rammer 'or thePIC)"$ Is adisab+e that this pro%rammer be compatib+e with MP19 I4, and wou+d be better to hae
Page24
-
7/26/2019 PIC-WEB-B
25/35
debu%%er too( but the +ast one isnt necessary$ ?ou can up+oad pro%rams to the PIC-7,9 with anypro%rammer and so'tware compatib+e with PIC)" +ike =+imexs PIC-IC48-P=C>,T pro%rammer$
MPLAB Integrated Development Environment
MP19 I4, is 'ree so'tware distributed by Microchip that inc+udes a too+set 'or dee+opmento' PIC microcontro++er app+ications 'or windows =$ It basica++y inte%rate transparent+y other modu+es+ike C)" or PICC-)" compi+ers that stren%then the 'unctiona+ity o' MP19 and +et us pro%ram in C+an%ua%e by examp+e$
Insta++ation/ 'ter you hae down+oaded MP19 I4, 'rom Microchip pa%e( you must
decompress it in any directory and execute the insta++ation 'i+e Dsomethin% +ike QInsta++LMP60a$exeRF'o++owin% the typica+ windows so'tware insta++ation$
Comp+ete insta++ation is recommended to aoid compatibi+ity troub+es in the proAect$
MPLAB C! Compiler
MP19 C)" is a C compi+er intended 'or the PIC)" 'ami+y 'rom Microchip$ In our case is theneeded compi+er because the PIC-7,9 p+at'orm uses the PIC)"*6.60$ This so'tware conerts C codeinto PIC)" machine code and +ink them to%ether into a QX$,R 'i+e with the proper memory mappin%'or the microcontro++er Aust ready to be pro%rammed on it$
Insta++ation/ 'ter down+oadin% you must execute the insta++ation 'i+e Dsomethin% +ikeQMP19-C)"-td-,a+-#L#&$exeRF and 'o++ow the usua+ steps( but now you need to take care on somestu''$ *irst o' a++( is adisab+e to insta++ it in the de'au+t directory DC/YMCC)"F and add the path
enironment ariab+es( +ar%e directories names can brin% troub+es with +inker$ econd is necessary toinsta++ MP19 C)" a'ter MP19 I4, insta++ation and check the boxes that associate C)" to MP19I4,$
'ter these steps you are ab+e to dee+op C pro%rams and compi+e it usin% MP19enironment$
Microchip A"!## $CP%IP Stac&
The tack is an app+ication dee+oped by Microchip 'or been used in its PIC)" 'ami+y andintended 'or both Microchip C)" and i-Tech PICC-)" compi+ers$ ?ou can down+oad it 'rommicrochip pa%e and we encoura%e you to down+oad its manua+ 'or re'erence purpose$
Pro)rammer
Page25
-
7/26/2019 PIC-WEB-B
26/35
There are seera+ ways to pro%ram a PIC( but the easiest and proper way to pro%ram the PIC-7,9 is usin% a compatib+e pro%rammer with an ICP connector and compatib+e with MP19 I4,$*or this purpose it wi++ be used an 39 pro%rammer compatib+e with MP19 IC4 8 so+d by =+imex(the PIC-IC48-P=C>,T$
PIC-IC0&-POC6E/4to use this pro%rammer 'irst o' a++ you must hae it connected to the PCtrou%h an 39 cab+e$ Then you must se+ect in MP19 I4, Con'i%ure e+ect 4eice$$$ newwindow wi++ appear$ ere you shou+d se+ect your deice PIC)"*6.60$ ere is a screenshot o' thiswindow/
Then you must se+ect in MP19 I4, Pro%rammer e+ect Pro%rammer MP19 IC4 8$
7ait whi+e MP19 is down+oadin% operation system( and a'ter IC48 is connected check inmenu Pro%rammer ettin%s Power there is option Power tar%et circuit 'rom MP19 IC4 8
Page26
-
7/26/2019 PIC-WEB-B
27/35
this option shou+d be 'orbidden( you cou+d not se+ect it$ !ow it is sa'e to connect the pro%rammer toyour tar%et board trou%h an ICP cab+e$ The PIC-7,9 shou+d be connected to the power supp+y$
I' you hae somethin% a+ready compi+ed( you can open the QX$hexR 'i+e and then pro%ram it tothe PIC-7,9$ .ust importin% the QX$hexR 'i+e in *i+e Import menu$ I' you don@t hae somethin%a+ready compi+ed( you can use some o' the QX$hexR 'i+es o''ered by =+imex 1td$ To use them youshou+d 'irst down+oad TCP:IP stack +ibrary 5$0 'rom Microchip@s site or some other p+ace o' yourchoice$ ince this ersion wi++ not be eterna++y distributed 'rom Microchip( p+ease ask 'or assistance'rom =+imex i' you are experiencin% di''icu+ties 'indin% the stack 'i+es$
=+imex@s board has a 'ew hardware di''erences compared to the boards supported by thede'au+t distribution o' the TCP:IP stack$ Conenient enou%h there is a patch you need to app+y to thestandard insta++ation o' the stack demos$ 4own+oad pic-webLre9LpatchL5L0 D8F$zip 'romhttp/::www$o+imex$com:de:$Then unzip it in the @Microchip o+utions@ directory where theTCP:IP stack source code resides Dthis is the directory that contains the subdirectories EInternet9oot+oader ppE( EInternet 2adio ppE( EMicrochipE( ETCPIP 4emo ppE( ETCPIP 7ebendppEFand 'o++ow the instructions 'rom the $YPICL7,9L2e9LPatchYpatchY2,4M,$txt$
'ter you hae done eerythin% correct+y you wi++ hae ready to use QX$hexR 'i+es$
*or pro%rammin% the PIC Aust push the pro%ram button on the too+s or se+ectin% the menuPro%rammer -S Pro%ram$
Page27
http://www.olimex.com/dev/soft/PIC/PIC-WEB/pic-web_revB_patch_V5_0.ziphttp://www.olimex.com/dev/soft/PIC/PIC-WEB/pic-web_revB_patch_V5_0.zip -
7/26/2019 PIC-WEB-B
28/35
PIC-WEB #o9t5are
I' you haen@t down+oaded the PIC-7,9 so'tware distributed by =+imex and TCP:IP stack+ibrary 5$0 'rom Microchip@s site or some other p+ace o' your choice( now is time to do that$
'ter down+oadin% the necessary PIC-7,9 so'tware and executin% the instructions inQ2,4M,$txtR 'i+e( you wi++ hae a workin% demo$ =pen this workspace @$YTCPIP 4emo ppYTCPIP
4emo pp-C)"$mcw@$
Page28
-
7/26/2019 PIC-WEB-B
29/35
9e'ore compi+in% check that the necessary inc+ude directories are we++ con'i%ured to use C)"(those are/
Inc+ude earch Path/ MCC(:F%
1ibrary earch Path/ MCC(:Flb
1inker-cript earch Path/ MCC(:Flb
Page29
-
7/26/2019 PIC-WEB-B
30/35
!ow is time to compi+e I' there arent bad con'i%uration the compi+ation must be success'u+(that means that you hae to %et the Q93I14 3CC,,4,4R messa%e on the output window$
!ote/ the ersion o' the MP19 I4, that you are usin% can chan%e the +ast exp+anation( newerersion wi++ appear since this manua+ was written or you can hae an o+d one( thats means that theso'tware con'i%uration steps can chan%e a +itt+e but the main idea is the same$ 4ont hesitate i' itdoesnt work on the 'irst time( Aust keep tryin% isnt comp+icate$
Page30
-
7/26/2019 PIC-WEB-B
31/35
0ynamc Web Pa)es Creaton*or dynamic web pa%es creation you shou+d re'er to $YMicrochipYe+pYTCPIP tack
e+p$chm at your computer$ There you can 'ind a++ the necessary in'ormation( 'o++owin% the way(shown at the screenshot be+ow/
Restore procedure4I' you want to restore =+imex@s ori%ina+ so'tware you shou+d pro%ram PIC)"*6.60 with
$YPICL7,9L2e9LPatchYpre-bui+tYTCPIP 4emo pp-C)"$hex 'rom MP19 I4,$
'ter you hae +oad this QX$hexR 'i+e( you shou+d open $YPICL7,9L2e9LPatchYpre-bui+tYMicrochip ,thernet 4iscoerer$exe$ C+ick on the button Q4iscoer 4eicesR and the IP addresso' PIC-7,9 wi++ be discoered D'or examp+e - )H8$)6"$0$8#"F$ !ote that your 1! has to hae 4CPserer$ In your browser type the IP o' the board with the 'o++owin% path/
http/::)H8$)6"$0$8#":mp'sup+oadere is a screenshot o' what you wi++ see/
Page31
-
7/26/2019 PIC-WEB-B
32/35
C+ick on the button QChoose *i+eR to se+ect the QX$binR 'i+e you are about to up+oad$ e+ect theima%e 'i+e in directory $YPICL7,9L2e9LPatchYpre-bui+tYMP*Im%8$bin and press @3p+oad@$ itback and re+ax whi+e the up+oad takes p+ace and then nai%ate to the home pa%e to beho+d the pa%e
Aust up+oaded$
!ow your PIC-7,9 is with =+imex@s ori%ina+ so'tware$
Page32
-
7/26/2019 PIC-WEB-B
33/35
AVAI,AB,E 0EMO #O1/WARE
Microchip TCP-IP tack 5$00 patch modi'ied 'or PIC-7,9 2,$9 Dwi++ not workwithout modi'ication on other ersions o' the stackF
Page33
http://soft/PIC/PIC-WEB/pic-web-brdrevB-v500.ziphttp://soft/PIC/PIC-WEB/pic-web-brdrevB-v500.ziphttp://soft/PIC/PIC-WEB/pic-web-brdrevB-v500.zip -
7/26/2019 PIC-WEB-B
34/35
OR0ER CO0E
PIC-WEB- comp+ete+y assemb+ed and tested$
ow to orderZ?ou can order to us direct+y or by any o' our distributors$Check our webwww$o+imex$com:de'or more in'o$
Revson %story4
9oard@s reision/ 2,$ 9 - created May 800H
Manua+@s reision 2,$ C - created March 80))
- added detai+ed mechanica+ dimensions
Page34
http://www.olimex.com/devhttp://www.olimex.com/devhttp://www.olimex.com/devhttp://www.olimex.com/dev -
7/26/2019 PIC-WEB-B
35/35
0sclamer/
< 80)0 =+imex 1td$ ++ ri%hts resered$ =+imex[( +o%o and combinations thereo'( are re%isteredtrademarks o' =+imex 1td$ =ther terms and product names may be trademarks o' others$
The in'ormation in this document is proided in connection with =+imex products$ !o +icense( expressor imp+ied or otherwise( to any inte++ectua+ property ri%ht is %ranted by this document or inconnection with the sa+e o' =+imex products$
!either the who+e nor any part o' the in'ormation contained in or the product described in thisdocument may be adapted or reproduced in any materia+ 'rom except with the prior writtenpermission o' the copyri%ht ho+der$
The product described in this document is subAect to continuous dee+opment and improements$ ++particu+ars o' the product and its use contained in this document are %ien by =1IM, in %ood 'aith$oweer a++ warranties imp+ied or expressed inc+udin% but not +imited to imp+ied warranties o'merchantabi+ity or 'itness 'or purpose are exc+uded$
This document is intended on+y to assist the reader in the use o' the product$ =1IM, 1td$ sha++ notbe +iab+e 'or any +oss or dama%e arisin% 'rom the use o' any in'ormation in this document or any erroror omission in such in'ormation or any incorrect use o' the product$