PIC-GSM development board
Users Manual
All boards produced by Olimex are ROHS compliant
Rev.A, June 2008
Copyright(c) 2008, OLIMEX Ltd, All rights reserved
INTRODUCTION:
PIC-GSM
is excellent board for adding remote monitoring and control in
remote places by GSM cellular network or ethernet or internet network. Do
you want to switch on/off your local heating in your mountain house? To
monitor the temperature at up to 8 remote points up to 30 meters away
from the module? To listen what happens in your house with silent call
after you get message for alarm status? Then
PIC-GSM
is the board for
you! It contains PIC18F97J60 microcontroller and 3-band GSM GPRS
module 900/1800/1900Mhz inside which covers most used GSM networks
around the world. The GSM antenna is build in the board so no need for
external expensive GSM antennas.
PIC-GSM
have two relays 240VAC/10A,
two opto-isolated inputs which could be connected to alarm sensors or just
buttons for user actions (like call pre-loaded phone numbers), on-board
temperature sensor and connector for additional up to 8 addressable
remote temperature sensors at up to 30 meter distance from the module.
Normal phone hook can be connected to this board and to allow user to
speak, listen, taking and placing phone calls as normal stand alone
cellular phone. PIC-GSM can be connected to PC with the USB connector it
have and it is recognized as modem which could be used to add internet
via GPRS to your computer (imagine how useful is this for your mountain
house if there is no internet but only cellular network!). If you have
internet connection you can monitor the same parameters on the WEB
page.
BOARD FEATURES:
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
ICSP/ICD connector for programming and debugging with PIC-
ICD2, PIC-ICD2-POCKET, PIC-ICD2-TINY;
USB 2.0 type B connector allow board to be interfaced to PC host;
GSM/GPRS module 900/1800/1900Mhz;
Li-ion backup battery;
PIC18F97J60-I/PT;
Ethernet RJ45 isolated connector.
GSM Audio In and Out;
RS232 connector;
Quartz crystal 20Mhz;
Two relays 10A/250VAC;
Two digital inputs;
Analog input;
Temperature sensor;
5V voltage regulator;
EXT connector for available GPIO;
Four mounting holes 3,3 mm (0,13");
FR-4, 1.5 mm (0,062"), green soldermask, white silkscreen
component print;
Dimensions 124x90 mm (4880 x 3540 mils);
ELECTROSTATIC WARNING:
The PIC-GSM 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:
1.8 meter USB A-B cable to connect to USB host on PC.
Crossed ethernet cable if the PIC-GSM module is connected to
PC or straight if the module is connected to router or ethernet
switch.
PIC-ICD2, PIC-ICD2-POCKET, PIC-ICD2-TINY
Or any compatible tool for programming and/or debugging
Hardware:
!!!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:
Microchip MPLAB IDE + C18 C compiler
for developing your
own applications
The demo software show basic functionality and how to place /
take phone calls (C source and HEX) or how to remote control
via SMS and WEB page(C source and HEX)
Important:
If your board does not work, first try to charge the battery as
you power supply the board for few hours.
PROCESSOR FEATURES:
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
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
–
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
Flexible Oscillator Structure:
•
•
•
•
•
Selectable System Clock derived from Single 25 MHz External
Source:
–
2.778 to 41.667 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
External Memory Bus:
•
•
•
Address Capability of up to 2 Mbytes
8-Bit or 16-Bit Interface
12-Bit, 16-Bit and 20-Bit Addressing modes
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 and I2C™ 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 (ABD)
10-Bit, Up to 16-Channel Analog-to-Digital Converter module (A/D):
•
•
Auto-acquisition capability
Conversion available during Sleep
Dual Analog Comparators with Input Multiplexing
Parallel Slave Port (PSP) module (100-pin devices only)
–
–
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 Reentrant 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.1V to 3.6V using
Ethernet module)
On-Chip 2.5V Regulator