Upload
lxz5101
View
213
Download
0
Embed Size (px)
Citation preview
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 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
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 2/33
User ’ s Manual of ET- PI C 24 WEB- V1
-2-
• 2 Channel Modul e SPI Communi cat i on wi t h 8- st oreyed deptof FI FO Buf f er
• 2 Channel Modul e I 2C™ Communi cat i on suppor t s bot h Mast erMode and Sl ave Mode
• 16- Bi t 5 Modul e Ti mer• 5 Modul e Capt ure, Compare/ PWM• I nt er nal Har dwar e Syst em as RTCC, Real - Ti me Cl ock
Cal endar wi t h Al arms• Communi cat i on Syst em as PWP, Par al l el Mast er Por t , wi t h
16 Addr ess Li nes, and 8/ 16 Dat a
• 128KByt e Fl ash Memor y
• 8KByt e SRAM• 70 Bi t I / O Por t s
Gener al Speci f i cat i ons of Boar d ET- PI C 24 WEB
- 80 PI N PI C24FJ 128GA008 Mi cr ocont r ol l er
- 8 MHz Si gnal Cl ock Osci l l at or ( can use x4 PLL t o run upt o 32 MHz)
- 9 Por t 10 PI N I / O Por t ( ETT st andar d ar r angement )
- 2 Por t RS232 Dr i ver Ci r cui t
- 1 Por t t o connect LCD ( ET- CLCD) under ETT st andardar r angement
-Connect I CD2 t o downl oad pr ogr am and Swi t ch t o on/ of f si gnal Run/ Pr ogr am
- 8 Channel LED Ci r cui t t o t est Out put
- 4 Channel Swi t ch BUTTON Ci r cui t t o t est I nput
- 1 Channel 0- 3. 3V Vol t age Gener at or Ci r cui t f r omadj ust abl e Resi st or t o t est Modul e A/ D
- 1 Por t t o connect wi t h EEPROM 25LCxxx
- Por t t o connect wi t h Modul e I nt er net ET- MI NI ENC28J 60
-Swi t chi ng Regul at or t o conver t si gnal DC I nput t o 3. 3V
- Connect or VCC and GND
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 3/33
User ’ s Manual of ET- PI C 24 WEB- V1
-3-
St r uct ur e of Boar d ET- PI C 24 WEB- V1
1 2 3
4
5
6
7
8
9
1011
12
13
14
15
16
17
18
19
20
21
22
23
Det ai l s
No. 1 i s 2 Por t t o connect Si gnal RS- 232 and i t s ci r cui tconnect i on i s shown bel ow.
C2-
C2+
C1-
C1+ VCC
GND
V+
V-
16
2
5
4
3
1
MAX232
6
15
0.1uF
0.1uF
0.1uF
0.1uF
RF4RF5
R2O
T2I10
9
TX
RX 8
7 T2O
R2I
PICMCU
123
4
14
+3.3V
123
4
RS232-CH1
RS 232-CH2
RX
TX
13R1I
T1O
R2O T2I
12
11RF2
RF3
470
470
+3.3V
+3.3V
No. 2 i s Por t ET- LCD t o connect wi t h Char act er LED Di spl ayand i t s pi n ar r angement i s shown bel ow;
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 4/33
User ’ s Manual of ET- PI C 24 WEB- V1
-4-
1 2
3 4
5 6
7 8
9 10
RA9 RA10
RA14 RA15
NC NC
+3.3V GND
PORTA
NC NC
1 2
3 4
5 6
7 8
9 10
RB0 RB1
RB2 RB3
RB4
+3.3V GND
PORTB-L
RB6 RB7
RB5
1 2
3 4
5 6
7 8
9 10
RB8 RB9
RB10 RB11
RB12 RB13
+3.3V GND
PORTB-H
RB14 RB15
1 2
3 4
5 6
7 8
9 10
RD8 RD9
RD10 RD11
RD12 RD13
+3.3V GND
PORTD-H
RD14 RD15
1 2
3 4
5 6
7 8
9 10
RE0 RE1
RE2 RE3
RE4 RE5
+3.3V GND
PORTE-L
RE6 RE7
1 2
3 4
5 6
7 8
9 10
RF0 RF1
RF2 RF3
RF4 RF5
+3.3V GND
PORTF-L
RF6 RF7
D4
D5
D6
D7
RS
RW
EN
RE0
RE1
PICMCU
RE2
RE3
RE4
RE5
RE6
1 2
3 4
5 6
7 8
9 10
+5V
RS
EN
GND
GND
GND
VO
RW
GND
GND
ET-CLCD
11 12
13 14
D4
D6D7
D5
VR10K
+5V
RE0
RE1
RE2
RE3
RE6
RE4
D4
D5
D6
D7
EN
RS
LCD Pin PICMCU
RE5RW
• No. 3, 4, 5, 6, 7, 8, 9, 10, and 11 i s Por t I / O of
Mi cr ocont r ol l er t hat i s desi gned t o be t he f or mat of t hest andar d 10- PI N ETT Por t and each port i s ar r anged asbel ow;
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 5/33
User ’ s Manual of ET- PI C 24 WEB- V1
-5-
1 2
3 4
5 6
7 8
9 10
RC1 RC3
RC13 RC14
NC NC
+3.3V GND
PORTC
NC NC
1 2
3 4
5 6
7 8
9 10
RD0 RD1
RD2 RD3
RD4 RD5
+3.3V GND
PORTD-L
RD6 RD7
1 2
3 4
5 6
7 8
9 10
RG0 RG1
RG2 RG3
RG6 RG7
+3.3V GND
PORTG
RG8 RG9
• 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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 6/33
User ’ s Manual of ET- PI C 24 WEB- V1
-6-
•
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
I nt er f ace.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 7/33
User ’ s Manual of ET- PI C 24 WEB- V1
-7-
1 2
3 4
5 6
7 8
9 10
RG6 (SCK) RG7(SO)
RG8 (SI) RD12 (CS)
NC NC
+3.3V GND
SPI MEMORY
NC NC
EN
DIS
I NT
R S T
W OL
R E 8
R D1 5
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;
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 8/33
User ’ s Manual of ET- PI C 24 WEB- V1
-8-
2-Pin CON
10K
SW-Button
+3.3V
2-Pin CON
10K
SW-Button
+3.3V
2-Pin CON
10K
SW-Button
+3.3V
2-Pin CON
10K
SW-Button
+3.3V
2-Pin CON
VR10K
+3.3V
• 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 .
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 9/33
User ’ s Manual of ET- PI C 24 WEB- V1
-9-
Modul e ET- MI NI ENC28J 60
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
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 10/33
User ’ s Manual of ET- PI C 24 WEB- V1
-10-
- 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 .
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 11/33
User ’ s Manual of ET- PI C 24 WEB- V1
-11-
+5V
+3.3V
VDD
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 12/33
User ’ s Manual of ET- PI C 24 WEB- V1
-12-
Tabl e shows Name and Funct i on of Si gnal Pi ns of ENC28J 60 Pin Name Pin Type Function
CS INPUT Si gnal Enabl e/ Di sabl e t he SPI BusI nt er f ace of ENC28J 60
CS = 0 i s Enabl e t he SPI Bus
I nt er f ace of ENC28J 60CS = 1 i s Di sabl e t he SPI BusI nt er f ace of ENC28J 60
SDO OUTPUT Si gnal Ser i al Dat a Out put
SDI INPUT Si gnal Ser i al Dat a I nput
SCK INPUT Si gnal Ser i al Cl ock
INT OUTPUT Si gnal I nt er r upt Act i ve Logi c 0
RST INPUT Si gnal RESET Act i ve Logi c 0
WOL OUTPUT Si gnal Wake- up on LAN i nt er r uptAct i ve Logi c 0
CLKO OUTPUT Si gnal Progr ammabl e cl ock out put
LEDA OUTPUT Di spl ay st at us of Si gnal LI NK
LEDB OUTPUT Di spl ay st at us of Si gnal ACT
Tabl e shows t he si gnal connect i on bet ween Board ENC28J 60 andET- PI C24 WEB
ENC28J60 ET-PIC24WEB (PIC24FJ128GA008)
CS RD14
SDO RF8
SDI RF7
SCK RF6
INT RE8 (Set Jumper )
RST RD15 (Set Jumper )
WOL RE9 (Set Jumper )
CLKO -
LEDA -
LEDB -
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 13/33
User ’ s Manual of ET- PI C 24 WEB- V1
-13-
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) .
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 14/33
User ’ s Manual of ET- PI C 24 WEB- V1
-14-
• 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] .
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 15/33
User ’ s Manual of ET- PI C 24 WEB- V1
-15-
SW[ 1. . 4] t o t est Web Ser ver Cont r ol
• RD8. . RD11 i s used t o be Di gi t al I nput and connect s wi t hSwi t ch[ 1. . 4] .
ADC I nput t o t est Web Ser ver Cont r ol
• RB5 ( AN5) i s used t o be ADC0 t o r ead I nput val ue of 10Bi t Anal og t o Di gi t al and connect s wi t h VR1.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 16/33
User ’ s Manual of ET- PI C 24 WEB- V1
-16-
I ni t i al Recommendat i on of MPLAB C30
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.
Or doubl ecl i ck I CONMPLAB I DE
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 17/33
User ’ s Manual of ET- PI C 24 WEB- V1
-17-
Cr eat e Pr oj ect , cl i ck Pr oj ect - > Pr oj ect Wi zar d. .
I t wi l l di spl ay Wi ndow Pr oj ect Wi zar d; cl i ck Next > t o dot he next st ep.
Sel ect devi ce i n t he bl ank of Devi ce: and i t must becor r espondi ng wi t h Boar d. I n t hi s case, i t i s
PI C24FJ 128GA008 and t hen cl i ck Next >.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 18/33
User ’ s Manual of ET- PI C 24 WEB- V1
-18-
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 19/33
User ’ s Manual of ET- PI C 24 WEB- V1
-19-
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 20/33
User ’ s Manual of ET- PI C 24 WEB- V1
-20-
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 21/33
User ’ s Manual of ET- PI C 24 WEB- V1
-21-
Cl i ck Fi l e - > New t o cr eat e Fi l e Sour ce Code.
I t wi l l di spl ay t he bl ank screen wi ndow t hat i s Unt i t l edas shown bel ow.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 22/33
User ’ s Manual of ET- PI C 24 WEB- V1
-22-
Sel ect Fi l e - > Save As… t o save as Fi l e. C
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 23/33
User ’ s Manual of ET- PI C 24 WEB- V1
-23-
Fi l e Demo1. c wi l l be appear ed and t hen t ype code pr ogr ami nt o t he f i l e as shown i n t he exampl e bel ow.
Save f i l e, cl i ck Fi l e - > Save
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 24/33
User ’ s Manual of ET- PI C 24 WEB- V1
-24-
Add t he creat ed Fi l e Sour ce Code i nt o Pr oj ect , cl i ckr i ght on Sour ce Fi l e and t hen sel ect Add Fi l es. .
I t wi l l di spl ay wi ndow Add Fi l es t o Pr oj ect , cl i ck l ef t
on Fi l e Sour ce Code; i n t hi s exampl e, i t i s Demo1 andt hen cl i ck Open.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 25/33
User ’ s Manual of ET- PI C 24 WEB- V1
-25-
Fi l ename Demo1. c wi l l appear i n Sour ce Fi l es.
Add Fi l e Li nker Scr i pt s, cl i ck r i ght on Li nker Scr i pt s and t hen sel ect Add Fi l es. .
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 26/33
User ’ s Manual of ET- PI C 24 WEB- V1
-26-
I t wi l l di spl ay wi ndow Add Fi l es t o Pr oj ect s, c l i c k f i l ep24FJ 128GA008. gl d t hat i s i n t he f ol l owi ng f ol der ;
C: \ Pr ogr am Fi l es\ Mi cr ochi p\ MPLAB C30\ suppor t \ gl d
When ever ythi ng i s compl et e, user can see f i l ep24FJ 128GA008. gl d t hat has al r eady added i nt o Li nker
Scr i pt s compl etel y as shown bel ow;
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 27/33
User ’ s Manual of ET- PI C 24 WEB- V1
-27-
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 28/33
User ’ s Manual of ET- PI C 24 WEB- V1
-28-
I t wi l l di spl ay Fi l e Demo1. Hex i n t he same f ol der as t hecr eated f i l e as shown bel ow;
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 29/33
User ’ s Manual of ET- PI C 24 WEB- V1
-29-
Code Pr ogr ammi ng
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.
Press Swi t ch MODE t o PGM posi t i on.
PGM
RUN
MODE
Open Progr am PI Cki t 2 Pr ogr ammer .
ET-PGMPIC USB
ET- PIC24WEB
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 30/33
User ’ s Manual of ET- PI C 24 WEB- V1
-30-
Sel ect Devi ce Fami l y - > PI C24
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 31/33
User ’ s Manual of ET- PI C 24 WEB- V1
-31-
I mpor t Fi l e. HEX, cl i ck Fi l e - > I mpor t and ent er Fol der PI C24_Star t t o sel ect f i l e Demo1. Hex and t hen Open.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 32/33
User ’ s Manual of ET- PI C 24 WEB- V1
-32-
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.
7/29/2019 User Manual ET-PIC24WEB
http://slidepdf.com/reader/full/user-manual-et-pic24web 33/33
User ’ s Manual of ET- PI C 24 WEB- V1
Shi f t Swi t ch MODE t o RUN posi t i on.
PGM
RUN
MODE
Connect Har dwar e t o t est oper at i on of pr ogr am as f ol l ows;
PIC24FJ128GA008 LED
RD0 LED1
RD1 LED2
RD2 LED3
RD3 LED4
RD4 LED5
RD5 LED6
RD6 LED7
RD7 LED8
Each LED f r om LED 1 t o LED 8 wi l l be ON one by one.