7/29/2019 User Manual ET-PIC24WEB http://slidepdf.com/reader/full/user-manual-et-pic24web 1/33 User ’ s Manual of ET- PI C 24 WEB- V1 -1- ET-PI C 24 WEB-V1 ET- PI C 24 WEB-V1 is PI C Boar d Mi crocont r ol l er f r om Mi cr ochi p t hat uses 16 Bi t No. PI C24FJ 128GA008 Mi cr ocont r ol l er f or pr ocessi ng dat a and devel ops boar d. The remar kabl e speci f i cat i on of PI C24FJ 128GA008 i s hi gh speed and t her e i s f ol l owi ng r esour ces as bel ow; o Cent r al Pr ocess i ng Uni t ( CPU) • 16 MI PS speed to process data• Har dwar e suppor t s 16 x 16 Bi t mul t i pl i cat i on t hat t akes onl y 1 I nst r uct i on Cycl e• Har dwar e suppor t s 32- Bi t x 16 Bi t di vi si on• C Compi l e i s desi gned t o Opt i m i zed I nst r uct i on Set o Syst em • I nt er nal Cl ock Gener at or 31kHz t o 8MHz and maxi mum 32MHz by usi ng 4X PLL • I nt er nal LDO Vol t age Regul at or Ci r cui t • Suppor t J TAG Boundar y Scan and Fl ash Memory Pr ogr am Suppor t • Fai l - Saf e Cl ock Moni tor- al l ows saf e shut down i f cl ock f ai l s • Wat chdog Ti mer Syst em uses Si gnal Cl ock as RC Osci l l ator t hat i s s epar at ed f r om ot her par t s • Vol t age 2. 0- 3. 6 Vol t o nanoWatt Power Managed Modes • Support RUN Mode, IDLE Mode, and SLEEP Node• Can adj ust var i ous oper at i on Modes of Si gnal Cl ock to be more ef f i ci ent and i t cor r esponds wi t h power management o Anal og Feat ur es • 10- bi t 16 Channel Modul e Anal og t o Di gi t al Conver t er wi t h 500 Kbi t / second f or speed of Sampl i ng si gnal • 2 Channel Modul e Anal og Compar at or s o Ot her Speci f i cat i ons of PI C24FJ 128GA008• 2 Channel Modul e UART Communi cat i on wi t h 4- st or eyed dept h of FI FO Buf f er
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
ET- PI C 24 WEB- V1 i s PI C Boar d Mi crocont r ol l er f r om
Mi cr ochi p t hat uses 16 Bi t No. PI C24FJ 128GA008 Mi cr ocont r ol l erf or pr ocessi ng dat a and devel ops board. The r emar kabl especi f i cat i on of PI C24FJ 128GA008 i s hi gh speed and t her e i sf ol l owi ng r esour ces as bel ow;
o Cent r al Pr ocessi ng Uni t ( CPU)
• 16 MI PS speed t o pr ocess data • Har dwar e suppor t s 16 x 16 Bi t mul t i pl i cat i on t hat t akes
onl y 1 I nst r uct i on Cycl e • Har dwar e suppor t s 32- Bi t x 16 Bi t di vi si on • C Compi l e i s desi gned t o Opt i mi zed I nst r uct i on Set
o Syst em
• I nter nal Cl ock Generat or 31kHz t o 8MHz and maxi mum 32MHzby usi ng 4X PLL
• I nt er nal LDO Vol t age Regul at or Ci r cui t • Suppor t J TAG Boundar y Scan and Fl ash Memor y Pr ogr am
Suppor t • Fai l - Saf e Cl ock Moni t or - al l ows saf e shut down i f cl ock
f ai l s
• Wat chdog Ti mer Syst em uses Si gnal Cl ock as RC Osci l l at ort hat i s separ at ed f r om ot her par t s
• Vol t age 2. 0- 3. 6 Vol t
o nanoWat t Power Managed Modes
• Suppor t RUN Mode, I DLE Mode, and SLEEP Node • Can adj ust var i ous oper at i on Modes of Si gnal Cl ock t o be
more ef f i ci ent and i t cor r esponds wi t h power management o Anal og Feat ur es
• 10- bi t 16 Channel Modul e Anal og t o Di gi t al Conver t er wi t h500 Kbi t / second f or speed of Sampl i ng si gnal
• 2 Channel Modul e Anal og Compar at or s
o Ot her Speci f i cat i ons of PI C24FJ 128GA008
• 2 Channel Modul e UART Communi cat i on wi t h 4- st oreyed dept hof FI FO Buf f er
• No. 12 i s 4 PI N I / O Por t t hat consi st s of Si gnal RE8, RE9,RF8 and GND as bel ow;
1
2
3
4
RE8
RE9RF8
• No. 13 i s Connect or t o downl oad pr ogr am t hat i s ar r anged
under t he st andard of I CD2 and suppor t s Progr ammer t hati s st andar d I CD2 I nt er f ace such as PI CKi t 2, I CD2 and ETTPr ogr ammer “ET- PGMPI C USB”. User must al ways pr ess Swi t chMODE t o PGM posi t i on bef ore pr ogr ammi ng t o on/ of f si gnalpi n wi t h ext ernal pr ogr ammer.
No. 14 i s Swi t ch t o sel ect Mode RUN and PGM. When thi sSwi t ch i s shi f t ed t o PGM posi t i on, i t wi l l on/ of f si gnalpi n t hat i s used t o pr ogr am data code i nt o pr ogr ammer f orprogr ammi ng t he desi gned dat a pr ogr am. When Swi t ch i sshi f t ed t o RUN posi t i on, i t make si gnal pi ns gener al I / O.
PGM
RUN
MODE
• No. 15 i s Connect or DC- J ACK t o suppl y power i nt o boar d andsuppor t s ext er nal Vol t age 9- 12 VDC.
• No. 16 i s Swi t ch RESET.
• No. 17 i s 80- Pi n I C PI C24FJ 128GA008 Mi cr ocont r ol l er .
• No. 18 i s EEPROM No. 25LCxxx f r om Mi cr ochi p t hat i s SPI
R E 9 I t i s J umper t o sel ect t he connect i on
f or si gnal RE8, RD15 and RE9 of Mi crocont r ol l er wi t h si gnal Pi n I NT,RST and WOL of Modul e ET- MI NI ENC28J 60.DI S= Di sabl e: Not Connect EN= Enabl e: Connect
• No. 19 i s Connect or t o connect wi t h Modul e I nt er net ET-MI NI ENC28J 60.
No. 20 i s Test I / O LED t hat consi st s of 8 LED and i t sci r cui t i s shown bel ow;
• No. 21 i s devi ce t o t est si gnal I nput f r om 4 Swi t chest hat can cr eat e si gnal Logi c 0 ( 0 Vol t ) and Logi c 1 ( +3. 3Vol t ) as shown i n t he ci r cui t bel ow;
• No. 22 i s 4 devi ce set s t o t est Anal og Vol t age and i t can
adj ust Vol t age l evel i n t he r ange of 0- 3. 3 Vol t and i t sci r cui t i s shown bel ow;
• No. 23 i s avai l abl e space t o i nt er f ace f ur t her ci r cui t .
ET- MI NI ENC28J 60 i s a modul e t hat i s desi gned t o be amedi um of t he connect i ons bet ween Mi cr ocont r ol l er and Et her netNet wor k. I t suppor t s oper at i on of Pr ot ocol TCP/ I P by usi ng I CENC28J 60 t hat i s I C Et her net Cont r ol l er t o suppor t I EEE 802. 3st andar d communi cat i on and connect si gnal cont r ol l er t hr oughSPI Bus wi t h maxi mum hi gh speed 10 Mb/ s. Mi cr ochi p support sMi cr ochi p TCP/ I P St ack t o devel op pr ogr am and user candownl oad f r ee wi t hout any char ge f r om Mi cr ochi p websi t e( www. mi cr ochi p. com) . The br i ef l y speci f i cat i ons of ENC28J 60 i sdescr i bed bel ow;
Speci f i cat i ons of I C ENC28J 60
Gener al : - I EEE 802. 3 compat i bl e Et her net Cont r ol l er- I nt egrat ed MAC and 10BASE- T PHY- 8Kbyt e Tr ansmi t / Recei ve Packet Dual Por t Buf f er SRAM- Progr ammabl e Aut omat i c Ret r ansmi t on Col l i si on- Pr ogr ammabl e Paddi ng and CRC Gener at i on- Progr ammabl e Aut omat i c Rej ect i on of Er r oneous Packet s
-SPI ™ I nt er f ace wi t h speeds up t o 10 Mb/ s
- Suppor t s Ful l and Hal f - Dupl ex modes
Buf f er :
- Conf i gur abl e t r ansmi t / r ecei ve buf f er si ze
- Har dwar e managed ci r cul ar r ecei ve FI FO
- Byt e- wi de r andom and sequent i al access
- I nt ernal DMA f or f ast memory copyi ng
- Har dwar e assi st ed I P checksum cal cul at i on
PHY:
- Wave shapi ng out put f i l t er
- Loopback mode
MAC:
- Suppor t f or Uni cast , Mul t i cast and Br oadcast packet s-
Progr ammabl e pat t ern mat chi ng of up t o 64 byt eswi t hi n packet at user def i ned of f set
- Progr ammabl e wake- up on mul t i pl e packet f ormat s,i ncl udi ng Magi c Packet ®, Uni cast , Mul t i cast ,Br oadcast , speci f i c packet mat ch or any packet
The met hod t o connect devi ce wi t h Mi cr ocont r ol l er i s
qui t e easy because i t i s SPI Bus I nt er f ace t hat uses f ewerpi ns. For power syst em of ENC28J 60 i s 3 Vol t I C i f user want st o r un wi t h 5 Vol t Mi crocont r ol l er , user must Buf f er Ci r cui tt hat i s desi gned by ETT. I t suppor t s t he connect i on of powersyst em bet ween 3 Vol t and 5 Vol t i nt er nal Boar d ET- MI NIENC28LJ 60; i n t hi s case, user can sel ect power syst em byset t i ng J umper 5V/ 3V3.
Pi ct ur e di spl ays bl ock di agr am of t he connect i on si gnal sbet ween ENC28J 60 and Mi cr ocont r ol l er .
Pi ct ur e di spl ays st r uct ur e of Boar d ET- MI NI ENC28J 60.
Fr om pi ct ur e above, HD1 and HD2 i s desi gned t o connectwi t h Boar d ET- PI C 24 WEB; f or HD3 i s desi gned t o connect wi t hot her Mi crocont r ol l er s and i t i s desi gned i n t he f eat ur e of ET- MI NI f r om ETT.
War ni ng: User mustset J umper cor r ect l yf ol l ows the t r ul yusage ot her wi se yourdevi ce maybe damaged.
Summar i ze Al l ocat i on and Use Resour ces of Boar dET- PI C24 WEB V1. 0
Normal l y, MCU NO. PI C24FJ 128GA008 that i s used wi t h Boar dET- PI C24 WEB V1. 0 has i ndependent si gnal pi n up to 69 I / O but
some si gnal pi n i s desi gned and connect ed wi t h par t i cul ar I / Odevi ce, so user can use t hese si gnal pi ns t o be gener al I / Oand we can summar i ze t hese si gnal pi ns as bel ow;
MCU Osci l l at or
• RC12 i s used t o be OSC1 and connect s wi t h Cr yst al 8. 00MHzt o be Si gnal Cl ock of MCU.
• RC15 i s used t o be OSC2 and connect s wi t h Cr yst al 8. 00MHzt o be Si gnal Cl ock of MCU.
RTC Osci l l at or
• RC13 i s used t o be OSC1 and connect s wi t h Cr yst al32. 768KHz t o be Si gnal Cl ock of RTC.
• RC14 i s used t o be OSC2 and connect s wi t h Cr yst al32. 768KHz t o be Si gnal Cl ock of RTC.
RS232- CH1 Ser i al Por t Communi cat i on ( UART)
• RF2 i s used t o be Pi n RXD t o r ecei ve dat a f r om RS232Channel 1.
• RF3 i s used t o be Pi n TXD t o t r ansmi t dat a t o RS232Channel 1.
RS232- CH2 Ser i al Por t Communi cat i on ( UART)
• RF4 i s used t o be Pi n RXD t o r ecei ve dat a f r om RS232Channel 2.
• RF5 i s used t o be Pi n TXD t o t r ansmi t dat a t o RS232Channel 2.
Et her net Modul e ( SPI - 1)
• RF6 i s used t o be SCK t o connect wi t h Et her net Modul e( ET- MI NI ENC28J 60) .
• RF7 i s used t o be SDI t o connect wi t h Et her net Modul e( ET- MI NI ENC28J 60) .
• RF8 i s used t o be SDO t o connect wi t h Et her net Modul e( ET- MI NI ENC28J 60) .
• RD14 i s used t o be CS t o connect wi t h Et her net Modul e( ET- MI NI ENC28J 60) .
• RE8 i s used t o be I NT1 t o connect wi t h Et her net Modul e( ET- MI NI ENC28J 60) . I n t hi s case, user can sel ect t o useor not use as desi r ed by set t i ng J umper I NT ( EN/ DS) ;
nor mal l y, J umper i s set t o be DS ( Di sabl e: Not use) . • RE9 i s used t o be WOL t o connect wi t h Et her net Modul e
( ET- MI NI ENC28J 60) . I n t hi s case, user can sel ect t o useor not use as desi r ed by set t i ng J umper WOL ( EN/ DS) ;nor mal l y, J umper i s set t o be DS ( Di sabl e = Not use) .
• RD15 i s used t o be RST t o connect wi t h Et her net Modul e( ET- MI NI ENC28J 60) . I n t hi s case, user can sel ect t o useor not use as desi r ed by set t i ng J umper RST ( EN/ DS) ; nor mal l y, J umper i s set t o be DS ( Di sabl e = Not use) .
SPI Memory Modul e ( SPI - 2)
• RG6 i s used t o be SCK t o connect wi t h SPI Memory.
• RG7 i s used t o be SDI t o connect wi t h SPI Memory.
• RG8 i s used t o be SDO t o connect wi t h SPI Memory.
• RD12 i s used t o be CS t o connect wi t h SPI Memory.
Char act er LCD Di spl ay
• RE0 i s used t o be LCD D4 t o connect wi t h 4 Bi t Char act erLCD.
• RE1 i s used t o be LCD D5 t o connect wi t h 4 Bi t Char act erLCD.
• RE2 i s used t o be LCD D6 t o connect wi t h 4 Bi t Char act erLCD.
• RE3 i s used t o be LCD D7 t o connect wi t h 4 Bi t Char act erLCD.
• RE4 i s used t o be LCD RS t o connect wi t h 4 Bi t Char act erLCD.
• RE5 i s used t o be LCD RW t o connect wi t h 4 Bi t Char act erLCD.
• RE6 i s used t o be LCD EN t o connect wi t h 4 Bi t Char act erLCD.
LED[ 1. . 8] t o t est Web Ser ver Cont r ol
•
RD0. . RD7 i s used t o be Di gi t al Out put and connect s wi t hLED [ 1. . 8] .
Open Pr ogr am MPLAB I DE, cl i ck St ar t - > Mi cr ochi p - > MPLABI DE v7. 61 - > MPLAB I DE or doubl e cl i ck I con MPLAB I DE onDeskt op as shown bel ow.
2. I t wi l l di spl ay wi ndow of Pr ogr am MPLAB I DE v7. 61 asshown bel ow.
Sel ect t he used Compi l er ; i n t hi s case, i t i s MPLAB C30 CCompi l er ( pi c30- gcc. exe) and t hen cl i ck Next >.
Cl i ck Br owse t o t he desi r ed Fol der t o st or e Pr oj ect ; f orexampl e, cr eat e Fol der name PI C24_Star t f ol l ows t heexampl e and t hen Br owse. . t he Fol der , speci f y Pr oj ectname; i n t hi s exampl e, i t i s Demo1 and t hen Save.
I t wi l l di spl ay wi ndow; i n t hi s case, user can Add or
Remove Fi l e Codes i n pr oj ect i f t her e i s Fi l e Code i npr oj ect , but i f t her e i s no any Fi l e Code, cl i ck Next > t o go t o t he next st ep.
I t wi l l di spl ay wi ndow t hat summar i zes Par amet er val uesof t he creat ed Pr oj ect , ver i f y val ues cor r ect l y, and t hencl i ck Fi ni sh t o end t he st ep of Pr oj ect Wi zard.
I t ent er s t he mai n wi ndow of MPLAB, cl i ck Vi ew - > Proj ect
I t wi l l di spl ay wi ndow t hat shows st r uct ur e of Pr oj ect asshown bel ow.
Speci f y f i l ename and f ol l ow by sur name . C; i n t hi sexampl e, i t i s Demo1. C and t hen sel ect s Save as t ype: t obe C Sour ce Fi l es ( *. c, *. h) as shown bel ow.
Next , compi l e pr oj ect ; cl i ck Pr oj ect - > Bui l d Al l asshown bel ow.
I t wi l l r epor t r esul t of compi l i ng i n t he wi ndow Out put -> Bui l d; i f compi l i ng i s compl et e, i t wi l l di spl aymessage BUI LD SUCCEEDED as shown bel ow.
Af t er user get s Hex Fi l e; next , i t i s pr ogr ammi ng codei nt o Mi crocont r ol l er of Boar d ET- PI C 24 WEB; i n t hi s case, i tmust use ext ernal pr ogr ammer such as I CD2, PI CKi t 2 or ETTProgr ammer ver si on ET- PGM USB. User can i nt er f ace Cabl e f orpr ogr ammi ng at Connect or I CD2 as shown i n the pi ct ur e bel ow.
I f t he connect i on i s compl et e, i t can f i nd Devi ce numbert o be PI C24FJ 128GA008 as shown bel ow. I n t he f i r st st ep,user must sel ect Er ase t o er ase t he ol d pr ogr am Memory.
I t wi l l di spl ay message “Hex Fi l e successf ul l y i mpor t ed”; cl i ck Wr i t e t o pr ogr am Hex code i nt o memor y of Mi crocont r ol l er .
When i t has al r eady pr ogr ammed compl et el y, i t wi l ldi spl ay message “Pr ogr ammi ng Successf ul l y” as shownbel ow.