![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
PIC-WEB rev.b development board users manual all boards produced by olimex are rohs compliant rev.b, may 2009 copyright(c) 2010, olimex ltd, all rights reserved page 1
introduction PIC-WEB is compact board with 65x60 mm size which is supported by microchips open source tcp-ip stack an833. the board is designed with 64-pin high-performance, 1 mbit flash microcontroller with ethernet - pic18f 67j60 and support s : slip, arp, ip, icmp, tcp, udp, http, dhcp, ftp. the microchip stack is written very modular and flexible and you can enable or disable modules and supports dynamic web pages which give you the possibility to control all pic resources remotely via ftp, http, udp, tcp etc. with this board you can implement web and ftp server, send e-mails and almost everything what the big servers do. the on board 1mbit serial flash is available for data storage . this board is designed to have web page of no more than 128 kb. if you want a lots of images in your application you van also host them on other server visible on the network where you have the PIC-WEB connected. the potential of the board is to generate a fluid communication between some specific sensors or actuators across a tcp/ip net including the controls of it. the microchip stack is an open source library, which is possible to modify and compile at any time. but you will probably need to modify it to your own needs. the board comes with an implemented web server and a web page that let you controls some of the features of the board. in this manual well learn about how to compile the tcp/ip stack to use it over the platform, the needed software, how to use the pre loaded web page, and how to upload your own web pages in the board. this manual requires microsoft windows? os because several software used here is windows compatible only. board features pic18f67j60 microcontroller 1mbit on board serial flash for web pages storage icsp/icd connector for programming and debugging with pic-icd2, pic- icd2-pocket and pic-icd2-tiny. reset button user event button analogue trimmer potentiometer thermistor for temperature monitoring rs232 driver and connector complete web server and tcp-ip stack support as per microchip's open source tcp-ip stack power plug-in jack for +5vdc power supply voltage regulator +3.3v and filtering capacitors status led extension header to connect to other boards pcb: fr-4, 1.5 mm (0,062"), solder mask, silkscreen component print dimensions 60x65 mm (2.36x2.55") page 2 electrostatic warning the PIC-WEB board is shipped in protective anti-static packaging. the board must not be subject to high electrostatic potentials. general practice for working with static sensitive devices should be applied when working with this board. board use requirements cables: depends on the used programming/debugging tool. it could be 1.8 meter usb a-b cable to connect pic-icd2 or pic-icd2-pocket to usb host on pc or serial db9 cable in case of pic-icd2-tiny or other programming/debugging tools. you will need a serial cable if not for programming, than for configuring the board. you will also need a crossover ethernet cable. hardware: programmer/debugger C most of olimex programmers are applicable, for example pic-icd2 , pic-icd2-pocket, pic-icd2-tiny or other compatible programming/debugging tool. !!!warning!!! when you want to program this microcontroller with pic-icd2, pic- icd2-pocket or pic-icd2-tiny, before connecting the programmer to your target board, you should first connect the programmer to your computer and open mplab. there, first from menu configure C select device C choose the microcontroller you are about to program, then from menu programmer C select programmer C choose mplab icd 2, wait while mplab is downloading operation system, and after icd2 is connected C check in menu programmer C settings C power C there is option C power target circuit from mplab icd 2 C this option should be forbidden, you could not select it. now it is safe to connect the programmer to your target board. software: PIC-WEB is tested with mplab ide v.8.14 + c18 compiler free standart eval version ( www.microchip.com ) . tcp/ip stack ( www.microchip.com ). it is possible that the stack might not function properly if used with later versions of mplab ide. you will also need a terminal program configured at 19 200 bps, 8n1 and no flow control. page 3 processor features PIC-WEB board use cpu pic18f 67j60 from microchip with these features: - operating frequency - dc C 41.67 mhz - flash program memory (bytes) C 128k - flash program memory (instructions) C 65532 - sram data memory (bytes) C 3808 - interrupt sources C 26 - ethernet tx/rx buffer (bytes) C 8192 - i/o ports C a, b, c, d, e, f, g - i/o pins C 39 - 10-bit a/d (ch) C 11 - capture/compare/pwm modules C 2 - enhanced capture/compare/pwm modules C 3 - serial communications - mssp (1), enhanced usart (1) - spi - master i 2 c? - comparators C 2 - timers 8/16-bit C 2/3 - resets (and delays) - por, bor, reset instruction, stack full, stack underflow, mclr , wdt (pwrt, ost) - instruction set - 75 instructions, 83 with extended instruction set enabled ethernet features: - ieee 802.3 compatible ethernet controller - integrated mac and 10base-t phy - 8-kbyte transmit/receive packet buffer sram - supports one 10base-t port with automatic polarity detection and correction - programmable automatic retransmit on collision - programmable padding and crc generation - programmable automatic rejection of erroneous packets - activity outputs for 2 led indicators - buffer: - configurable transmit/receive buffer size - hardware-managed circular receive fifo - byte-wide random and sequential access page 4 - internal dma for fast memory copying - hardware assisted checksum calculation for various protocols - mac: - support for unicast, multicast and broadcast packets - programmable pattern match of up to 64 bytes within packet at user- defined offset - programmable wake-up on multiple packet formats - phy: - wave shaping output filter - loopback mode flexible oscillator structure: - selectable system clock derived from single 25 mhz external source: - 2.78 to 41.67 mhz - internal 31 khz oscillator - secondary oscillator using timer1 @ 32 khz - fail-safe clock monitor: - allows for safe shutdown if oscillator stops - two-speed oscillator start-up peripheral highlights: - high-current sink/source: 25 ma/25 ma on portb and portc - five timer modules (timer0 to timer4) - four external interrupt pins - two capture/compare/pwm (ccp) modules - three enhanced capture/compare/pwm (eccp) modules: - one, two or four pwm outputs - selectable polarity - programmable dead time - auto-shutdown and auto-restart - up to two master synchronous serial port (mssp) modules supporting spi (all 4 modes) and i 2 c? master and slave modes - up to two enhanced usart modules: - supports rs-485, rs-232 and lin 1.2 - auto-wake-up on start bit - auto-baud detect - 10-bit, up to 16-channel analog-to-digital converter module (a/d): - auto-acquisition capability - conversion available during sleep page 5 - dual analog comparators with input multiplexing special microcontroller features: - 5.5v tolerant inputs (digital-only pins) - low-power, high-speed cmos flash technology: - self-reprogrammable under software control - c compiler optimized architecture for re-entrant code - power management features: - run: cpu on, peripherals on - idle: cpu off, peripherals on - sleep: cpu off, peripherals off - priority levels for interrupts - 8 x 8 single-cycle hardware multiplier - extended watchdog timer (wdt): - programmable period from 4 ms to 134s - single-supply 3.3v in-circuit serial programming? (icsp?) via two pins - in-circuit debug (icd) with 3 breakpoints via two pins - operating voltage range of 2.35v to 3.6v (3.14v to 3.45v using ethernet module) - on-chip 2.5v regulator page 6 block diagram page 7 memory map for pic18f67j60 page 8 schematic page 9 3 . 3 v a 3 . 3 v a 3 . 3 v a 3 . 3 v a 1 0 k 4 7 0 u f / 1 6 v 3 9 0 p f 1 0 0 0 u f / 6 . 3 v / 8 m m / e s r 2 2 p f 2 2 p f 2 2 0 n f 1 0 0 n f 1 0 0 n f 1 0 0 n f 1 0 0 n f 1 0 0 n f 1 0 0 n f 1 0 u f / 6 . 3 v 1 0 0 n f 1 0 p f 1 0 p f 1 0 0 n f 1 0 0 n f 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 0 0 n 1 n 5 8 1 9 d b 1 0 4 ( s m d ) c o n 6 p v 6 - 2 . 5 4 m m c l 1 5 0 u h / s w 6 8 f e r r i t e b e a d r j l d - 0 4 3 t c r e d 9 - 1 2 v d c r e d 2 5 m h z 3 2 7 6 8 / 6 p f 0 . 6 8 0 . 6 8 3 k / 1 % 1 . 8 k / 1 % 5 6 0 3 3 0 1 0 k 1 m 2 k / 1 % 2 7 0 / 1 % 3 3 0 5 6 0 4 9 . 9 / 1 % 4 9 . 9 / 1 % 180 180 4 9 . 9 / 1 % 4 9 . 9 / 1 % 1 0 k 3 3 0 3 3 0 1 0 k 1 0 0 k d b 9 _ f e m a l e s w - t a k t o n h a n d t e r m i s t o r m c 3 4 0 6 3 a d s m d m b r p i c 1 8 f 6 7 j 6 0 m a x 3 2 3 2 a t 4 5 d b 0 1 1 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 # e e _ c s # e e _ c s a n _ t e m p a n _ t e m p a n _ t r i m a n _ t r i m b u t b u t c t s l e d a l e d a l e d b l e d b p g c p g c p g d p g d r s t r s t r t s r x d 1 r x d 1 s c k s c k s d i s d i s d o s d o t p i n + t p i n + t p i n - t p i n - t p o u t + t p o u t + t p o u t - t p o u t - t x d 1 t x d 1 v i n 1 2 3 . 3 v _ e a n _ t r b u t c 1 c 2 c 3 c 4 c 5 c 6 c 7 c 8 c 9 c 1 0 c 1 1 c 1 2 c 1 3 c 1 4 c 1 5 c 1 6 c 1 7 c 1 8 c 1 9 c 2 0 c 2 1 c 2 2 c 2 3 c 2 4 c 2 5 c 2 6 c 2 7 d 1 e x t - 1 e x t - 2 e x t - 3 e x t - 4 e x t - 5 e x t - 6 e x t - 7 e x t - 8 e x t - 9 e x t - 1 0 e x t - 1 1 e x t - 1 2 e x t - 1 3 e x t - 1 4 e x t - 1 5 e x t - 1 6 e x t - 1 7 e x t - 1 8 e x t - 1 9 e x t - 2 0 e x t - 2 1 e x t - 2 2 e x t - 2 3 e x t - 2 4 e x t - 2 5 e x t - 2 6 e x t - 2 7 e x t - 2 8 e x t - 2 9 e x t - 3 0 e x t - 3 1 e x t - 3 2 e x t - 3 3 e x t - 3 4 g 1 1 2 3 4 5 6 i c s p l 1 l 2 a g a g a y a y k g k g k y k y r c t 6 r d + 7 r d - 8 t c t 3 t d + 1 t d - 2 7 5 7 5 7 5 7 5 1 n f / 2 k v 1 4 5 2 3 7 8 6 g r e e n y e l l o w l a n l e d p w r _ j a c k p w r _ l e d g n d g n d _ q 1 q 2 r 1 r 2 r 3 r 4 r 5 r 6 r 7 r 8 r 9 r 1 0 r 1 1 r 1 2 r 1 3 r 1 4 r 1 5 r 1 6 r 1 7 r 1 8 r 1 9 r 2 0 r 2 1 r 2 2 r 2 3 r 2 4 1 2 3 4 5 6 7 8 9 r s 2 3 2 r s t t e m p dc 8 f b 5 is 7 s c 1 s e 2 t c 3 vcc 6 vss 4 u 1 # m c l r 7 a v d d 1 9 a v s s 2 0 e n v r e g 1 8 o s c 1 / c l k i 3 9 o s c 2 / c l k o 4 0 r a 0 / l e d a / a n 0 2 4 r a 1 / l e d b / a n 1 2 3 r a 2 / a n 2 / v r e f - 2 2 r a 3 / a n 3 / v r e f + 2 1 r a 4 / t 0 c k i 2 8 r a 5 / a n 4 2 7 r b 0 / i n t 0 / f l t 0 3 r b 1 / i n t 1 4 r b 2 / i n t 2 5 r b 3 / i n t 3 6 r b 4 / k b i 0 4 4 r b 5 / k b i 1 4 3 r b 6 / k b i 2 / p g c 4 2 r b 7 / k b i 3 / p g d 3 7 r b i a s 5 3 r c 0 / t 1 o s o / t 1 3 c k i 3 0 r c 1 / t 1 o s i / e c c p 2 / p 2 a 2 9 r c 2 / e c c p 1 / p 1 a 3 3 r c 3 / s c k 1 / s c l 1 3 4 r c 4 / s d i 1 / s d a 1 3 5 r c 5 / s d o 1 3 6 r c 6 / t x 1 / c k 1 3 1 r c 7 / r x 1 / d t 1 3 2 r d 0 / p 1 b 6 0 r d 1 / e c c p 3 / p 3 a 5 9 r d 2 / c c p 4 / p 3 d 5 8 r e 0 / p 2 d 2 r e 1 / p 2 c 1 r e 2 / p 2 b 6 4 r e 3 / p 3 c 6 3 r e 4 / p 3 b 6 2 r e 5 / p 1 c 6 1 r f 1 / a n 6 / c 2 o u t 1 7 r f 2 / a n 7 / c 1 o u t 1 6 r f 3 / a n 8 1 5 r f 4 / a n 9 1 4 r f 5 / a n 1 0 / c v r e f 1 3 r f 6 / a n 1 1 1 2 r f 7 / # s s 1 1 1 r g 4 / c c p 5 / p 1 d 8 t p i n + 4 7 t p i n - 4 6 t p o u t + 5 1 t p o u t - 5 0 v d d 2 6 v d d 1 3 8 v d d 2 5 7 v d d c o r e / v c a p 1 0 v d d p l l 5 4 v d d r x 4 8 v d d t x 4 9 v s s 9 v s s 1 2 5 v s s 2 4 1 v s s 3 5 6 v s s p l l 5 5 v s s r x 4 5 v s s t x 5 2 u 2 c 1 + 1 c 1 - 3 c 2 + 4 c 2 - 5 r 1 i n 1 3 r 1 o u t 1 2 r 2 i n 8 r 2 o u t 9 t 1 i n 1 1 t 1 o u t 1 4 t 2 i n 1 0 t 2 o u t 7 v + 2 v - 6 u 3 1 5 1 6 g n d v c c u 3 p w r / c s / 4 / r e s e t / 3 / w p / 5 g n d 7 s c k 2 s i 1 s o 8 v c c 6 u 4 p i c - w e b r e v . b c o p y r i g h t ( c ) , 2 0 0 9 h t t p : / / w w w . o l i m e x . c o m / d e v + + + rj45 side 1 : 1 1 : 1 g n d 0 r board layout power supply circuit PIC-WEB can take power from two sources: - pwr_jack where (9-12) vdc is applied by external power source. - ext-20 pin vin with the same voltage range. the board power consumption is: about 130 ma with all peripherals and mcu running at full speed. reset circuit PIC-WEB reset circuit is made with r8 (10k) pull-up, r7 (330r) serial resistor and rst button. although on the schematic is made provision for external reset through ext-16 pin. manual reset is possible by the rst button. clock circuit quartz crystal 25 mhz is connected to pic18f67j60 clock in and clock out . quartz crystal 32.768 khz is connected to pic18f67j60 t1oso and t1osi pins for its internal real time clock. jumper description there are no jumpers. page 10 input/output one user button with name but C connected to pic18f67j60 pin 3 (rb0/int0/flt0); status red led with name led connected to pic18f67j60 pin 44 (rb4/kbi0). power supply red led with name pwr C indicates that external power source is applied and board power supply is applied. one trimmer an_t r is connected to pic18f67j60 pin 15 (rf3/an8). page 11 external connectors description icsp pin # signal name 1 rst 2 +5v 3 gnd 4 pgd 5 pgc 6 pgm C nc rs232 pin # signal name 1 nc 2 t1out 3 r1in 4 nc 5 gnd 6 nc 7 r2in 8 t2out 9 nc pwr_jack pin # signal name 1 power input 2 gnd page 12 ext pin # signal name pin # signal name 1 ra2/an2/vrefC 2 ra3/an3/vref+ 3 ra4/t0cki 4 ra5/an4 5 re0/p2d 6 re1/p2c 7 re2/p2b 8 rc2/eccp1/p1a 9 rd0/p1b 10 rd1/eccp3/p3a 11 rd2/ccp4/p3d 12 rb1/int1 13 rb2/int2 14 rb3/int3 15 rb5/kbi1 16 rst 17 +3,3v 18 +3.3v 19 gnd 20 vin 21 re3/p3c 22 re4/p3b 23 re5/p1c 24 rf1/an6/c2out 25 rf2/an7/c1out 26 rf5/an10/cvref 27 rf6/an11 28 rg4/ccp5/p1d 29 cts 30 rts 31 nc 32 nc 33 3.3va 34 gnda page 13 lan pin # signal name 1 tpout+ 2 tpout- 3 3.3v 4 nc 5 nc 6 nc 7 tpin+ 8 tpin- led color usage right yellow activity left green 100mbits/s (half/full duplex) page 14 mechanical dimensions all measures are in inches. page 15 connecting and testing the board the PIC-WEB comes with a default code and web server that you can test in a couple of simple steps. first of all you have to configure the ethernet port to be able to work on your local network. that is possible trough the mchpstack configuration console. using the PIC-WEB configuration console its possible to modify the network configuration using the configuration console on the serial port, allowing a successful operation on your local network. using the configuration console you can change the PIC-WEB ip address for example. to access to the console menu is necessary a serial db9 cable, to connect the board serial port to one available com port on your computer. then you will need to connect the board using a software like windows hyperterminal. you can use hyperterminal because it is included on almost all windows machine. it is located in start menu all programs accessories communications. double click on hyperterminal and then choose the com port where the board is connected. now is necessary to configure the serial connection to: page 16 these are the basic steps to configure the connection. if you want to see what you are typing you should set the checkbox echo typed characters locally in file->properties->settings->ascii setup. then save the connection for later use. after this setup the connection with the PIC-WEB should be ready, but the console will not show anything!. thats because the board is not running on configuration mode. to run on that mode you just need to push the but button on the board. keep it pressed while you push the rst button. a menu will immediately appear on hyperterminal showing following options: page 17 the third option allow you to change the board ip number. just type 3, then enter the new ip compatible with your local network configuration. after that push enter and return to the main menu again. now you must configure the other network parameters: gateway and subnet mask or if you prefer you can enable the dhcp to get the configuration from your router. the first and the second options are not used in this manual. at this moment we will only use the on-board default page. the last option saves the configuration and restarts the PIC-WEB. for testing purposes you can connect the board directly to your computer with a crossover ethernet cable , configure the board with 192.168.0.32 address, 192.168.0.1 gateway, disable dhcp (option 6) and configure the ethernet adapter on your computer with 192.168.0.31 and the same gateway. here is an example of windows configuration: page 18 this configuration will let you test the board directly from your pc but isnt too useful. the fun stuff begins when you have the PIC-WEB connected to internet. just imagine your sensor monitor project, but now you will be able to see the information anywhere just browsing the address of the board! test web page: as it was mentioned above, the PIC-WEB board has an embedded web server and a demo page. the page shows some of the features of the board and it have a link to olimexs PIC-WEB information page. to access the demonstration page, the server must be accessible from the computer. the default ip address of the board is 192.168.0.30, and 192.168.0.1 is the gateway. those values must been set to work with your net. in this manual we have set ip address of the board to 192.168.0.32. then you can get the page with any web browser writing the ip address of the board on the address bar. page 19 at the picture above, you can see the default page that you must get. it shows the temperature of the on-board thermistor, the status of the button but, the value of the potentiometer, the status of the led and so on. to toggle the status led of the board (PIC-WEB) you can click on the green dot under the caption leds:. by clicking on this dot you are changing the state of the pin, see how the led switch on or switch off. page 20 at the page you can also see some values of the PIC-WEB sensors and buttons: ? buttons: ? potentiometer: ? temperature: potentiometer shows a measurement from the pic a/d connected to a 10k potentiometer on the board, you can freely change that potentiometer position and check how the measurement changes. temperature shows the value of the temperature sensed by the thermistor in the board connected to another a/d port of the pic18f67j60. buttons shows the state of the on-board button. it is ^ while the button is not pressed and _ if it is pressed. uploading pages to the server there are 2 easy ways to upload pages to the server, but you will always need to convert the files you want to upload in a mpfs file format. one other way is to include the web page on the source code and link it in a project, but if we did it in this way we wont use the eeprom included in the platform wasting program memory, that is reason this method will not be included in this manual. microchip file system (mpfs) the implemented http server uses the mpfs simplified file system to store the pages on the embedded system. that is why it is necessary to transform the files to that file system before uploading them. this is done using a program included in PIC-WEB software called mpfs2.exe. lets create a simple hello world page and upload it in to the http server. first of all its necessary to create a directory on your pc where to put the files you want to upload to the web server. the index.htm is a must have file because that is the default page read by the server. we will also upload a picture olimex.gif (get it from the site for example). the code of the page is the simplest possible: page 21 next thing to do is just start the mpfs2.exe utility and set up the required fields. here is a screenshot of one possible configuration: a very handy feature of the utility is point 4, which may be used to automatically upload the image to the board after a successful convertion. enter the ip of your board and leave the other fields page 22 at defaults. press the 'generate and upload' and wait for your new image to be generated and uploaded. this is a sample of the result of a successful upload: please note that an image file (in this case web.bin) is generated and may be used later if you select the 'pre-built mpfs image' radio button at the top of the utility program window. another way to upload an image for the web server is through the web server itself. you will need a pre-built image (yes, should be built by the mpfs2 utility again) somewhere in your pc's file system. in your favourite browser type the ip of the board with the following path: http://192.168.0.32/mpfsupload here is a screenshot of what you will see: now point to the image file and press 'upload'. sit back and relax while the upload takes place and then navigate to the home page to behold the new page just uploaded. the result will be: page 23 installing the development environment the web page that we wrote in last chapter obviously doesnt have any utility for any application at all. the idea of the picweb is to have control of the pic18f67j60 features over the net using dynamics web pages or others tcp/ip protocols included in the microchip stack. in this manual we will explain how to create a dynamic web page, but this isnt the limit of the PIC-WEB and the tcp/ip stack, you can get further to reach the full capacity of this platform and manage other protocols of network communication between the pic microcontroller and any client or server in the network. the PIC-WEB comes with compiled and installed software that can also be downloaded from olimex web page, this software is based on two basics components from microchip plus a c compiler. these components are the microchip an833 tcp/ip stack, microchip mplab ide the pic microcontroller software development platform and a compatible compiler that can be microchip c18 this last one isn`t free but microchip have a free standard eval version that we can use with limited support but it is absolutely functional to our purpose. there is other compatible compiler the hi-tech picc-18. well choose the microchip compiler for this manual. it will be also necessary to continue with this manual to have an icsp programmer for the pic18. is advisable that this programmer be compatible with mplab ide and would be better to have page 24 debugger too, but the last one isnt necessary. you can upload programs to the PIC-WEB with any programmer and software compatible with pic18 like olimexs pic-icd2-pocket programmer. mplab integrated development environment mplab ide is free software distributed by microchip that includes a toolset for development of pic microcontroller applications for windows os. it basically integrate transparently other modules like c18 or picc-18 compilers that strengthen the functionality of maplab and let us program in c language by example. installation: after you have downloaded maplab ide from microchip page, you must decompress it in any directory and execute the installation file (something like install_mp760a.exe ) following the typical windows software installation. complete installation is recommended to avoid compatibility troubles in the project. mplab c18 compiler mplab c18 is a c compiler intended for the pic18 family from microchip. in our case is the needed compiler because the PIC-WEB platform uses the pic18f67j60. this software converts c code into pic18 machine code and link them together into a *.hex file with the proper memory mapping for the microcontroller just ready to be programmed on it. installation: after downloading you must execute the installation file (something like mplab-c18-std-eval-v3_34.exe ) and follow the usual steps, but now you need to take care on some stuff. first of all, is advisable to install it in the default directory ( c:\mcc18 ) and add the path environment variables, large directories names can bring troubles with linker. second is necessary to install mplab c18 after mplab ide installation and check the boxes that associate c18 to mplab ide. after these steps you are able to develop c programs and compile it using mplab environment. microchip an833 tcp/ip stack the stack is an application developed by microchip for been used in its pic18 family and intended for both microchip c18 and hi-tech picc-18 compilers. you can download it from microchip page and we encourage you to download its manual for reference purpose. programmer page 25 there are several ways to program a pic, but the easiest and proper way to program the pic- web is using a compatible programmer with an iscp connector and compatible with mplab ide. for this purpose it will be used an usb programmer compatible with mplab icd 2 sold by olimex, the pic-icd2-pocket. pic-icd2-pocket: to use this programmer first of all you must have it connected to the pc trough an usb cable. then you must select in mplab ide C configure select device... a new window will appear. here you should select your device C pic18f67j60. here is a screenshot of this window: then you must select in mplab ide C programmer select programmer mplab icd 2. wait while mplab is downloading operation system, and after icd2 is connected C check in menu programmer C settings C power C there is option C power target circuit from mplab icd 2 C page 26 this option should be forbidden, you could not select it. now it is safe to connect the programmer to your target board trough an iscp cable. the PIC-WEB should be connected to the power supply. if you have something already compiled, you can open the *.hex file and then program it to the PIC-WEB. just importing the *.hex file in file import menu. if you don't have something already compiled, you can use some of the *.hex files offered by olimex ltd. to use them you should f irst download tcp/ip stack library v5.0 from microchip's site or some other place of your choice. since this version will not be eternally distributed from microchip, please ask for assistance from olimex if you are experiencing difficulties finding the stack files. olimex's board has a few hardware differences compared to the boards supported by the default distribution of the tcp/ip stack. convenient enough there is a patch you need to apply to the standard installation of the stack demos. download PIC-WEB_revb_patch_v5_0 (2).zip from http://www.olimex.com/dev/. then unzip it in the 'microchip solutions' directory where the tcp/ip stack source code resides (this is the directory that contains the subdirectories "internet bootloader app", "internet radio app", "microchip", "tcpip demo app", "tcpip webvend app")and follow the instructions from the .\pic_web_revb_patch\patch\readme.txt. after you have done everything correctly you will have ready to use *.hex files. for programming the pic just push the program button on the tools or selecting the menu programmer -> program. page 27 PIC-WEB software if you haven't downloaded the PIC-WEB software distributed by olimex and tcp/ip stack library v5.0 from microchip's site or some other place of your choice, now is time to do that. after downloading the necessary PIC-WEB software and executing the instructions in readme.txt file, you will have a working demo. open this workspace '.\tcpip demo app\tcpip demo app-c18.mcw'. page 28 before compiling check that the necessary include directories are well configured to use c18, those are: ? include search path: mcc18\h ? library search path: mcc18\lib ? linker-script search path: mcc18\lib page 29 now is time to compile! if there arent bad configuration the compilation must be successful, that means that you have to get the build succeeded message on the output window. note: the version of the mplab ide that you are using can change the last explanation, newer version will appear since this manual was written or you can have an old one, thats means that the software configuration steps can change a little but the main idea is the same. dont hesitate if it doesnt work on the first time, just keep trying isnt complicate. page 30 dynamic web pages creation for dynamic web pages creation you should refer to .\microchip\help\tcpip stack help.chm at your computer. there you can find all the necessary information, following the way, shown at the screenshot below: restore procedure: if you want to restore olimex's original software you should program pic18f67j60 with .\pic_web_revb_patch\pre-built\tcpip demo app-c18.hex from mplab ide. after you have load this *.hex file, you should open .\pic_web_revb_patch\pre- built\microchip ethernet discoverer.exe. click on the button discover devices and the ip address of PIC-WEB will be discovered (for example - 192.168.0.238). note that your lan has to have dhcp server. in your browser type the ip of the board with the following path: http://192.168.0.238/mpfsupload here is a screenshot of what you will see: page 31 click on the button choose file to select the *.bin file you are about to upload. select the image file in directory .\pic_web_revb_patch\pre-built\mpfsimg2.bin and press 'upload'. sit back and relax while the upload takes place and then navigate to the home page to behold the page just uploaded. now your PIC-WEB is with olimex's original software. page 32 available demo software microchip tcp-ip stack 5.00 patch modified for PIC-WEB rev.b (will not work without modification on other versions of the stack) page 33 order code PIC-WEB - completely assembled and tested. how to order? you can order to us directly or by any of our distributors. check our web www.olimex.com/dev for more info. revision history: rev. b - created may 2009 page 34 disclaimer : ? 2010 olimex ltd. all rights reserved. olimex?, logo and combinations thereof, are registered trademarks of olimex ltd. other terms and product names may be trademarks of others. the information in this document is provided in connection with olimex products. no license, express or implied or otherwise, to any intellectual property right is granted by this document or in connection with the sale of olimex products. neither the whole nor any part of the information contained in or the product described in this document may be adapted or reproduced in any material from except with the prior written permission of the copyright holder. the product described in this document is subject to continuous development and improvements. all particulars of the product and its use contained in this document are given by olimex in good faith. however all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded. this document is intended only to assist the reader in the use of the product. olimex ltd. shall not be liable for any loss or damage arising from the use of any information in this document or any error or omission in such information or any incorrect use of the product. page 35 |
Price & Availability of PIC-WEB
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |