PIC-MAXI-WEB development board Users Manual Rev.B, April 009 Copyright(c) 009, OLIMEX Ltd, All rights reserved Page
INTRODUCTION: This board allows you to easily develop Ethernet connectivity applications. It has everything you normally would need for such applications: power relays which you can command through web interface, LCD display which will display messages you fill in web forms, analogue inputs for connection to sensors, digital optoisolated inputs, trimmer potentiometer, temperature sensor, Ethernet connector. With this board you can easily automate your home and then control and monitor it from any point in the world via Internet. An extension connector is available so you can connect custom made hardware to the board. The PIC8F97J0 has 8KB Flash program memory and there is external Mbit (8KB) flash memory for data storage. The on board DC/DC converter makes this board very tolerant to the external power supply which could be in 9-5V DC or 7-8V AC range. The bridge rectifier on the input allows AC and DC adapters to be used and makes power supply polarity problems go away. BOARD FEATURES: - PIC8F97J0 microcontroller with embedded Ethernet MAC and PHY and 8KB Flash programming space - Mbit on board serial flash for web pages storage - ICSP/ICD connector for programming and debugging with PIC- ICD and PIC-ICD-POCKET. - Temperature sensor - Trimmer potentiometer connected to analogue input - Two relays 0A/50VAC - Four optoisolated digital inputs - Twelve analogue inputs on terminal block - Two buttons - LCDx with backlight - RS interface - Ethernet interface - Complete web server and TCP-IP stack support as per Microchip's open source TCP-IP stack - Terminal block for power supply works with 9-5 VDC power supply - Extension header to connect to other boards - Dimensions 0x08 mm (.7x.5") ELECTROSTATIC WARNING: The PIC-MAXI-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.8 meter USB A-B cable to connect PIC-ICD-POCKET or PIC-ICD to USB host on PC or RS cable for PIC-ICD-TINY and PIC-ICD. You will Page
need a serial cable if not for programming, than for configuring the board. You will also need a LAN cable. Hardware: Programmer/Debugger Olimex programmers are applicable, for example PIC-ICD, PIC-ICD-POCKET, PIC-ICD-TINY or other compatible programming/debugging tool.!!!warning!!! When you want to program this microcontroller with PIC- ICD, PIC-ICD-POCKET or PIC-ICD-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 Select Device choose the microcontroller you are about to program, then from menu Programmer Select Programmer choose MPLAB ICD, wait while MPLAB is downloading operation system, and after ICD is connected check in menu Programmer Settings Power there is option Power target circuit from MPLAB ICD 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.7. + MPLAB C8 C compiler. 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 9 00 bps, 8N and no flow control. PROCESSOR FEATURES: PIC-MAXI-WEB board use MCU PIC8F97J0 from Microchip with these features: - IEEE 80. compatible Ethernet Controller - Integrated MAC and 0Base-T PHY - 8-Kbyte Transmit/Receive Packet Buffer SRAM - Supports One 0Base-T Port - Programmable Automatic Retransmit on Collision - Programmable Padding and CRC Generation - Programmable Automatic Rejection of Erroneous Packets - Activity Outputs for LED Indicators - Buffer: o Configurable transmit/receive buffer size o Hardware-managed circular receive FIFO o Byte-wide random and sequential access o Internal DMA for fast memory copying o Hardware assisted checksum calculation for various protocols - MAC: o Support for Unicast, Multicast and Broadcast packets o Programmable Pattern Match of up to bytes within packet at user-defined offset o Programmable wake-up on multiple packet formats - PHY: Page
o Wave shaping output filter - Selectable System Clock derived from Single 5 MHz External Source: o.778 to.7 MHz - Internal khz Oscillator - Secondary Oscillator using Timer @ khz - Fail-Safe Clock Monitor: o Allows for safe shutdown if oscillator stops - Two-Speed Oscillator Start-up - Address Capability of up to Mbytes for External Memory Bus - 8-Bit or -Bit Interface - -Bit, -Bit and 0-Bit Addressing modes - High-Current Sink/Source: 5 ma/5 ma on PORTB and PORTC - Five Timer modules (Timer0 to Timer) - Four External Interrupt pins - Two Capture/Compare/PWM (CCP) modules - Three Enhanced Capture/Compare/PWM (ECCP) modules: o One, two or four PWM outputs o Selectable polarity o Programmable dead time o Auto-shutdown and auto-restart - Up to Two Master Synchronous Serial Port (MSSP) modules supporting SPI (all modes) and IC Master and Slave modes - Up to Two Enhanced USART modules: o Supports RS-85, RS- and LIN. o Auto-wake-up on Start bit o Auto-Baud Detect (ABD) - 0-Bit, Up to -Channel Analog-to-Digital Converter module (A/D): o Auto-acquisition capability o Conversion available during Sleep - Dual Analog Comparators with Input Multiplexing - Parallel Slave Port (PSP) module (00-pin devices only) - 5.5V Tolerant Inputs (digital-only pins) - Low-Power, High-Speed CMOS Flash Technology: o Self-reprogrammable under software control - C compiler Optimized Architecture for Reentrant Code - Power Management Features: o Run: CPU on, peripherals on o Idle: CPU off, peripherals on o Sleep: CPU off, peripherals off - Priority Levels for Interrupts - 8 x 8 Single-Cycle Hardware Multiplier - Extended Watchdog Timer (WDT): o Programmable period from ms to s - Single-Supply In-Circuit Serial Programming (ICSP ) via Two Pins - In-Circuit Debug (ICD) with Breakpoints via Two Pins - Operating Voltage Range of.5v to.v (.V to.v using Ethernet module) - On-Chip.5V Regulator Page
BLOCK DIAGRAM: Page 5
MEMORY MAP: Page
Page 7
SCHEMATIC: Page 8 0K 00nF 00n NA NA NA NA NA NA 00nF 00nF 70pF 00n NA pf 00n 00n 00n 00n 00n pf 000uF/.V/8mm 0u/5V 00nF 5pF 5pF 00nF 00nF 00n 00n 00nF 00nF 00nF 00nF 00nF 00nF 00nF 00nF 00nF NA NA NA NA NA 70pF 000uF/.V/8mm 0u/5V 7uF/.V 0uF/.V 0uF/.V 0k N589 N8 N8 N8 N8 N8 N589 N8 B-DIL CON.5-0-D ferrite bead CL50uH/SW8 CL50uH/SW8 RJLD-0TC yellow RED RED red red red red green green HA87SMD HA87SMD HA87SMD HA87SMD +5V +5V +5V +5V RED 5MHz 78/pF BC87 BC87 00k k 9.9/% 9.9/% 9.9/% 9.9/% 80 80 k 0K 0.8 0.8 0K 0 0 0.8 0 k 0 0K 0 0.8 0K 0K 0.0k/% k/% k/%.8k/%.5k 0K 0 0K 0 k M 0 opt 0K 0 0K 70/% 0K k/% 00k 00k 0K 0 opt 0 0 0 0 0 0 70 0 0.7k.7k RAS-05-5 RAS-05-5 DB9_female BC8 TERMISTOR MC0AP/ACN_MBR PIC8F97J0 MC0AP/ACN_MBR ST AT5DB0 AVDD DB[0..7],RS,R/W,E,LIGHT_LCD #SS #SS #SS #SS AIN AIN AIN AIN AIN B B B B CS CS DB0 DB0 DB DB DB DB DB DB DB DB DB5 DB5 DB DB DB7 DB7 D_IN D_IN D_IN D_IN D_IN D_IN D_IN D_IN E E E LEDA LEDA LEDB LEDB LIGHT_LCD LIGHT_LCD LIGHT_LCD MISO MISO MOSI MOSI OUT OUT OUT OUT PGC PGC PGD PGD R/W R/W R/W RS RS RS RST RST RST RXD RXD SCK SCK TPIN+ TPIN+ TPIN- TPIN- TPOUT+ TPOUT+ TPOUT- TPOUT- TXD TXD #SS/#SS _E 5V_E AN_TR BUT BUT C C C C C5 C C7 C8 C9 C0 C C C C C5 C C7 C8 C9 C0 C C C5 C C7 C8 C9 C0 C C C C C5 C C7 C8 C9 C0 C C C C C5 C C7 C8 C9 C50 C5 CONTRAST D D D D D5 D D7 D8 EXT- EXT- EXT- EXT- EXT-5 EXT- EXT-7 EXT-8 EXT-9 EXT-0 EXT- EXT- EXT- EXT- EXT-5 EXT- EXT-7 EXT-8 EXT-9 EXT-0 EXT- EXT- EXT- EXT- EXT-5 EXT- G 5 ICSP IN- IN- IN- IN- IN- IN- IN- IN- L L L AG AG AY AY KG KG KY KY RCT RD+ 7 RD- 8 TCT TD+ TD- 75 75 75 75 nf/kv 5 7 8 GREEN YELLOW LAN A 5 DB0 7 DB 8 DB 9 DB 0 DB DB5 DB DB7 E K R/W 5 VDD VO VSS _RS LD0 LD LD LED LED LED LED LED5 LED OPT OPT OPT OPT OUT- OUT- OUT- OUT- OUT- OUT- PWR- PWR- PWR_LED Q Q Q Q R R R R R5 R R7 R8 R9 R0 R R R R R5 R R7 R8 R9 R0 R R R R R5 R R7 R8 R9 R0 R R R R R5 R R7 R8 R9 R0 R R R R R5 R R7 R8 R9 R50 R5 R5 R5 R5 R55 R5 R57 R58 R59 R0 REL REL REL REL 5 7 8 9 R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VSSRX 7 VSSTX 79 U DC 8 FB 5 IS 7 SC SE TC VCC VSS U C+ C- C+ C- 5 RIN ROUT RIN 8 ROUT 9 TIN TOUT TIN 0 TOUT 7 V+ V- U 5 GND VCC UPWR /CS/ /RESET/ /WP/ 5 GND 7 SCK SI SO 8 VCC U5 X- X- X- X- X- X- X- X- X5- X5- X- X- X- PIC-MAXI-WEB Rev. B COPYRIGHT(C) 009, Olimex Ltd. http://www.olimex.com/dev + + + + + + + RJ5 SIDE : : GND
BOARD LAYOUT: POWER SUPPLY CIRCUIT: PIC-MAXI-WEB can take power only from power connector PWR, where (9- ) VDC or (-9) VAC external voltage source has to be applied. The board power consumption is about 00 ma with all peripherals and MCU running at full speed, relays and LEDs on and working Ethernet connection. RESET CIRCUIT: PIC-MAXI-WEB reset circuit is made with RC group R0 0k and C 00nF. Serial resistor R 0Ω is used to prevent fast C charge and discharge when PIC8F97J0 is being programmed. Manual reset is possible by the RESET button. CLOCK CIRCUIT: Quartz crystal 5MHz is connected to PIC8F97J0 pins OSC (CLK) and OSC (CLKO). Internal PLL circuit can multiply this frequency up to MHz..78 KHz quartz crystal is connected to PIC8F97J0 pins TSO and TOSI for its internal Timer. Page 9
JUMPER DESCRIPTION: 5V_E enables 5V supply for LCD and relays. Default state closed (shorted). _E enables supply for PIC8F97J0 and all other devices. Default state closed (shorted). is also available to EXT-, so if you want to connect external backup battery to the PIC8F97J0 this jumper should be opened and the external battery to be connected to EXT- pin. #SS/#SS chip select for U5 (AT5DB0) serial flash. Default position is selected to be #SS in compatibles with Microchip software but user can change it in its own application. Default state closed (shorted) INPUT/OUTPUT: Two User buttons with names BUT and BUT connected to PIC8F97J0 pin 8 RB/INT/ECCP()/PA() and pin RB/INT; One analog trimmer AN_TR connected to PIC8F97J0 pin RA/AN/VREF-; Thermistor TH connected to PIC8F97J0 pin RA/AN/VREF+; Three LEDs LD0 (yellow) connected to PIC8F97J0 pin 9 RJ0/ALE, LD (red) connected to PIC8F97J0 pin 50 RJ/#OE, LD (red) connected to PIC8F97J0 pin RJ/#WRL; Four opto isolated digital inputs IN-IN; Four red LEDs LED, LED, LED, LED for every digital input; Two green LEDs LED5, LED for the relays; Power supply red LED with name PWR_LED indicates that power supply is available Twelve analog inputs X-X; LCD Display - SC0A - characters x lines. Page 0
EXTERNAL CONNECTOR DESCRIPTION: ICSP: Pin # Signal Name RST VCC GND PGD 5 PGC NC PGD I/O Program Data. Serial data for programming. PGC Input Program Clock. Clock used for transferring the serial data (output from ICSP, input for the MCU). RS: Pin # Signal Name NC TXD RXD NC 5 GND NC 7 NC 8 NC 9 NC TXD OutputTransmit Data. This is the asynchronous serial data output (RS) for the shift register on the UART controller. RXD Input Receive Data. This is the asynchronous serial data input (RS) for the shift register on the UART controller. Page
X( )-CONNECTORS Pin # Signal Name AIN AIN5 AIN AIN7 5 AIN8 AIN9 7 AIN0 8 AIN 9 AIN 0 AIN AIN AIN5 GND These are the analog inputs. IN( )-CONNECTORS Pin # Signal Name IN+ IN- IN+ IN- 5 IN+ IN- 7 IN+ 8 IN- These are the opto isolated digital inputs. Page
EXT: Pin # Signal Name Pin # Signal Name VCC GND RJ7/#UB RJ/#LB 5 RJ5/#CE RJ/BA0 7 RJ/#WRH 8 RJ/#WRL 9 RJ/#OE 0 RJ0/ALE RH/A9 PG/CCP/PD RG/RX/DT RG/TX/CK 5 RG0/ECCP/PA RF7/#SS 7 RD/AD/PSP/SCK/SCL 8 RD5/AD5/PSP5/SDI/SDA 9 RD/AD/PSP/SDO 0 RD/AD/PSP RD/AD/PSP RS/AD/PSP RD0/AD0/PSP0 RB5/KBI 5 RB0/INT0/FLT0 RB/INT Page
LAN: Pin # Signal Name Chip Side Pin # Signal Name Chip Side TPOUT+ 5 Not Connected (NC) TPOUT- Not Connected (NC) 7 TPIN+ Not Connected (NC) 8 TPIN- LED Color Usage Right Yellow Activity Left Green 00MBits/s (Half/Full duplex) RELAYS: Pin # Signal Name Normal Open Common Normal Close Page
PWR: Pin # Signal Name AC in AC in Page 5
MECHANICAL DIMENSIONS: All measures are in mm. Page
AVAILABLE DEMO SOFTWARE: You could find information about PIC-MAXI-WEB board, Microchip TCP/IP stack and how to change and configure the software in Understanding PIC WEB boards on www.olimex.com/dev. Page 7
ORDER CODE: PIC-MAXI-WEB assembled and tested (no kit, no soldering required) 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. All boards produced by Olimex are RoHS compliant Revision history: REV.A - created July 008 REV B - created April 009 Page 8
Disclaimer: 009 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 9