PIC-MAXI-WEB development board
Users Manual
Rev.B, April 2009
Copyright(c) 2009, OLIMEX Ltd, All rights reserved
Page 1
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 PIC18F97J60 has 128KB Flash program
memory and there is external 1Mbit (128KB) 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-25V DC or 7-18V 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:
-
PIC18F97J60 microcontroller with embedded Ethernet MAC
and PHY and 128KB Flash programming space
-
1Mbit on board serial flash for web pages storage
-
ICSP/ICD connector for programming and debugging with PIC-
ICD2 and PIC-ICD2-POCKET.
-
Temperature sensor
-
Trimmer potentiometer connected to analogue input
-
Two relays 10A/250VAC
-
Four optoisolated digital inputs
-
Twelve analogue inputs on terminal block
-
Two buttons
-
LCD16x2 with backlight
-
RS232 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-25 VDC power
supply
-
Extension header to connect to other boards
-
Dimensions 120x108 mm (4.72x4.25")
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 1.8 meter USB A-B cable to connect PIC-ICD2-POCKET or PIC-ICD2 to
USB host on PC or RS232 cable for PIC-ICD2-TINY and PIC-ICD2. You will
Page 2
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-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 – Select Device –
choose the microcontroller you are about to program, then from
menu Programmer – Select Programmer – choose MPLAB ICD
2, wait while MPLAB is downloading operation system, and
after ICD2 is connected – check in menu Programmer –
Settings – Power – there is option – Power target circuit from
MPLAB ICD 2 – 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.62 + MPLAB C18 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 19 200
bps, 8N1 and no flow control.
PROCESSOR FEATURES:
PIC-MAXI-WEB
board use MCU
PIC18F97J60
from Microchip with these
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
- Programmable Automatic Retransmit on Collision
- Programmable Padding and CRC Generation
- Programmable Automatic Rejection of Erroneous Packets
- Activity Outputs for 2 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 64 bytes within packet at
user-defined offset
o
Programmable wake-up on multiple packet formats
- PHY:
Page 3
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
o
Wave shaping output filter
Selectable System Clock derived from Single 25 MHz External Source:
o
2.778 to 41.667 MHz
Internal 31 kHz Oscillator
Secondary Oscillator using Timer1 @ 32 kHz
Fail-Safe Clock Monitor:
o
Allows for safe shutdown if oscillator stops
Two-Speed Oscillator Start-up
Address Capability of up to 2 Mbytes for External Memory Bus
8-Bit or 16-Bit Interface
2-Bit, 16-Bit and 20-Bit Addressing modes
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:
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 4 modes) and I2C™ Master and Slave modes
Up to Two Enhanced USART modules:
o
Supports RS-485, RS-232 and LIN 1.2
o
Auto-wake-up on Start bit
o
Auto-Baud Detect (ABD)
10-Bit, Up to 16-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 (100-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 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.1V to 3.6V using Ethernet
module)
On-Chip 2.5V Regulator
Page 4
BLOCK DIAGRAM:
Page 5