PIC-MICRO-WEB development board

14
PIC-MICRO-WEB development board User's manual Rev. E, January 2014 Copyright(c) 2011, OLIMEX Ltd, All rights reserved Page 1

Transcript of PIC-MICRO-WEB development board

Page 1: PIC-MICRO-WEB development board

PIC-MICRO-WEB development board User's manual

Rev. E, January 2014

Copyright(c) 2011, OLIMEX Ltd, All rights reserved

Page 1

Page 2: PIC-MICRO-WEB development board

INTRODUCTION:

This small and compact board will give you the opportunity to add Internetconnectivity to any of your existing design or machine. Packed in compact plasticenclosure with DB25 male connector for the microcontroller ports and with theunique PoE (Power over Ethernet) feature which allows PIC-MICRO-WEB to takepower by the Ethernet cable and with no need for external power supply adapter.The TCP-IP stack provided by Microchip is free of charge and royalties and allowsyou to do http, ftp, e-mail etc services. You can control the PIC GPIOs by webinterface and to acquire and send data from external sensors to other Internetapplications and clients. With 128K Flash memory for programs and 128KB Flashmemory for web storage this small device have all resources usually needed forgeneral embedded Internet applications and interface of sensors and machines toInternet.

BOARD FEATURES:

PIC18F67J60 microcontroller with Ethernet and 1 Mbit memory for code 1Mbit on board serial flash for web pages storage mini ICSP/ICD connector for programming with PIC-ICD2, PIC-ICD2-TINY and

PIC-ICD2-POCKET. Power-Over-Ethernet support (for use with MOD-PoE power supply injector on

standard LAN cables/switches) It is possible to use the board without PoE in which case DB25.pin8 (Vin) should

be connected to 24-50 VDC source The board is enclosed in plastic shell DB25 parallel port 25 available signals and power supply on the DB25 connector Dimensions 50x30 mm (2 x 1.2")

ELECTROSTATIC WARNING:

The PIC-MICRO-WEB board is shipped in protective anti-static packaging. Theboard must not be subject to high electrostatic potentials. General practice forworking with static sensitive devices should be applied when working with thisboard.

BOARD USE REQUIREMENTS:

Cables: 1.8 meter USB A-B cable to connect PIC-KIT3. Other cables might be required in case of other programming/debugging tools. You will alsoneed a LAN cable.

Hardware: Programmer/Debugger – PIC-KIT3 or other compatible programming/debugging tool.

Page 2

Page 3: PIC-MICRO-WEB development board

MOD-PoE – module that provides Power-Over-Ethernet. If you don'twant to use this module, you should apply power (24-50VDC) directly to DB25.pin8.

Software: PIC-MICRO-WEB is tested with MPLAB IDE v.7.62 + MPLAB C18 Ccompiler. It is possible that the stack might not function properly ifused with later versions of MPLAB IDE.

PROCESSOR FEATURES:

PIC-MICRO-WEB board use MCU PIC18F67J60 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 sizeo Hardware-managed circular receive FIFOo Byte-wide random and sequential accesso Internal DMA for fast memory copyingo Hardware assisted checksum calculation for various protocols

- MAC:o Support for Unicast, Multicast and Broadcast packetso Programmable Pattern Match of up to 64 bytes within packet at user-

defined offseto Programmable wake-up on multiple packet formats

- PHY: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- 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

Page 3

Page 4: PIC-MICRO-WEB development board

o Selectable polarityo Programmable dead timeo 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.2o Auto-wake-up on Start bito Auto-Baud Detect (ABD)

- 10-Bit, Up to 16-Channel Analog-to-Digital Converter module (A/D):o Auto-acquisition capabilityo 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 ono Idle: CPU off, peripherals ono 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

Page 5: PIC-MICRO-WEB development board

BLOCK DIAGRAM:

Page 5

Page 6: PIC-MICRO-WEB development board

MEMORY MAP:

Page 6

Page 7: PIC-MICRO-WEB development board

Page 7

Page 8: PIC-MICRO-WEB development board

SCHEMATIC:

Page 8

clo

se

10

0n

F

10

0n

F

22pF

22pF

220

nF

CE220uF/10V

10

0n

F1

00

nF

100n

F

10

0n

F

10

0n

10

0n

F

10

0n

F

4.7

nF

10

0n

F

10

0n

F 10

uF

/6.3

V

10pF

10pF

2.2

uF

/50

V

CE220uF/10V

10

0n

F

1N

58

19

(sm

d)

WU

06

S

ferr

ite b

ea

d

CL

47

uH

/SD

75

RJP

-00

3T

C1

red

VIN

VIN

VIN

25

MH

z

3276

8/6p

F

10

0k

33

0

49.9

/1%

49.9

/1%

49.9

/1%

49.9

/1%

270/

1%

2k/1

%4

.3k/

1%

1.8

k/1

%

39

0K

15

0K

33

0

1M

33

0

10

K

PIC

18

F6

7J6

0

AT

45

DB

01

1

BD

90

01

FS

O-8

3.3

V3

.3V

3.3

V

3.3

V3.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

db

25

_m

ale

1N

47

31

(4.3

V)

#SS

1

#SS

1

MIS

O

MIS

O

MO

SI

MO

SI

PG

C

PG

C

PG

D

PG

D

RS

T

RS

T

RS

TS

CK

SC

K

TP

IN+

TP

IN+

TP

IN-

TP

IN-

TP

OU

T+

TP

OU

T+

TP

OU

T-

TP

OU

T-

12

3.3

V_

E

C1

C2

C3

C4

C5

C6

C7

C8

C9

C1

0

C1

1

C1

2

C1

3

C1

4

C1

5

C1

6

C1

7

C1

8

C1

9

C2

0

C2

4

C3

1

D1

1 2 3 4 5 6

ICS

P

L1

L2

GN

D7

NC

8

PW

+9

PW

-10

RC

T5

RD

+3

RD

-6

TC

T4

TD

+1

TD

-2

LA

N

LE

D

P1

P2

P3

P4

P5

P6

GN

DG

ND

_

Q1

Q4

R1

R2

R3

R4 R

5

R6

R7

R8

R9

R1

0

R1

1R

12

R1

3

R1

4

R1

5

R2

0

#MC

LR7

AV

DD

19

AV

SS

20

EN

VR

EG

18

OS

C1/

CLK

I39

OS

C2/

CLK

O40

RA

0/LE

DA

/AN

024

RA

1/LE

DB

/AN

123

RA

2/A

N2/

VR

EF

-22

RA

3/A

N3/

VR

EF

+21

RA

4/T

0CK

I28

RA

5/A

N4

27

RB

0/IN

T0/

FLT

03

RB

1/IN

T1

4

RB

2/IN

T2

5

RB

3/IN

T3

6

RB

4/K

BI0

44

RB

5/K

BI1

43

RB

6/K

BI2

/PG

C42

RB

7/K

BI3

/PG

D37

RB

IAS

53R

C0/

T1O

SO

/T13

CK

I30

RC

1/T

1OS

I/EC

CP

2/P

2A29

RC

2/E

CC

P1/

P1A

33

RC

3/S

CK

1/S

CL1

34

RC

4/S

DI1

/SD

A1

35

RC

5/S

DO

136

RC

6/T

X1/

CK

131

RC

7/R

X1/

DT

132

RD

0/P

1B60

RD

1/E

CC

P3/

P3A

59

RD

2/C

CP

4/P

3D58

RE

0/P

2D2

RE

1/P

2C1

RE

2/P

2B64

RE

3/P

3C63

RE

4/P

3B62

RE

5/P

1C61

RF

1/A

N6/

C2O

UT

17

RF

2/A

N7/

C1O

UT

16

RF

3/A

N8

15

RF

4/A

N9

14

RF

5/A

N10

/CV

RE

F13

RF

6/A

N11

12

RF

7/#S

S1

11

RG

4/C

CP

5/P

1D8

TP

IN+

47T

PIN

-46

TP

OU

T+

51T

PO

UT

-50

VD

D26

VD

D1

38

VD

D2

57

VD

DC

OR

E/V

CA

P10

VD

DP

LL54

VD

DR

X48

VD

DT

X49

VS

S9

VS

S1

25

VS

S2

41

VS

S3

56

VS

SP

LL55

VS

SR

X45

VS

ST

X52

U1

/CS

/4

/RE

SE

T/

3

/WP

/5

GN

D7

SC

K2

SI

1S

O8

VC

C6

U2

EN

5

FB

3G

ND

7

INV

4

N.C

.2

RT

6

SW

1

VIN

8

U4

X1

-1

X1

-2

X1

-3

X1

-4

X1

-5

X1

-6

X1

-7

X1

-8

X1

-9

X1

-10

X1

-11

X1

-12

X1

-13

X1

-14

X1

-15

X1

-16

X1

-17

X1

-18

X1

-19

X1

-20

X1

-21

X1

-22

X1

-23

X1

-24

X1

-25

Z1

PIC

-MIC

RO

-WE

BR

ev.

C

CO

PY

RIG

HT

(C)

20

09

, O

lime

x L

td.

htt

p:/

/ww

w.o

lime

x.co

m/d

ev

+

+

+

2x10

00pF

/2K

V

2x7

5 O

hm

J1 J2 J3 J6

J4,5

J7,8

GN

D

Page 9: PIC-MICRO-WEB development board

POWER SUPPLY CIRCUIT:

PIC-MICRO-WEB takes power over Ethernet using the module MOD-PoE. Otherpossibility is 24-50VDC to be directly applied to DB25.pin8 if MOD-PoE is not to beused.

The board power consumption depends on the applied power supply and mayvary. At 24VDC the consumption is about 40 mA.

RESET CIRCUIT:

PIC-MICRO-WEB reset circuit is made with R20 (10k) pull-up, R13 (330Ω) andcapacitor C31 (100nF).

CLOCK CIRCUIT:

Quartz crystal 25 MHz is connected to PIC18F67J60 pin 39 clock in (OSC1/CLKI)and pin 40 clock out (OSC2/CLKO).

Quartz crystal 32.768 kHz is connected to PIC18F67J60 pin 29 (T1OSI) and pin 30(T1OSO) and supplies the Timer1.

JUMPER DESCRIPTION:

3.3V_Eenables 3.3 V power supply for the PIC18F67J60 and all other devices.Default state is closed.

INPUT/OUTPUT:

Status red LED connected to PIC18F25J10 pin 44 (PORTB.RB4/KBI0).

EXTERNAL CONNECTORS DESCRIPTION:

ICSP:Pin # Signal name

1 RST

2 +5V

3 GND

4 PGD

5 PGC

6 NC

PGD I/O Program Data. Serial data for programming.

Page 9

Page 10: PIC-MICRO-WEB development board

PGC Input Program Clock. Clock used for transferring the serial data (output from ICSP,input for the MCU).

DB25:

Pin # Signal Name Pin # Signal Name

1 RA4/T0CKI 2 RA0/LEDA/AN0

3 RC2/ECCP1/P1A 4 RA2/AN2/VREF-

5 RC7/RX1/DT1 6 VCC +3.3V

7 GND 8 VIN

9 RE1/P2C 10 RD2/CCP4/P3D

11 RE3/P3C 12 RE4/P3B

13 RD0/P1B 14 RA5/AN4

15 RA1/LEDB/AIN1 16 RA3/AN3/VREF+

17 RC6/TX1/CK1 18 RF2/AN7/C1OUT

19 RG4/CCP5/P1D 20 RB1/INT1

21 RB0/INT0/FLT0 22 RE0/P2D

23 RD1/ECCP3/P3A 24 RE2/P2B

25 RE5/P1C

VIN is the pin where you should apply 24-50VDC in case you don't want to use MOD-PoE.

Page 10

Page 11: PIC-MICRO-WEB development board

LAN:

Pin # Signal Name Chip Side Pin # Signal Name Chip Side

1 TPOUT+ 6 TPIN-

2 TPOUT- 7 GND

3 TPIN+ 8 Not Connected (NC)

4 3.3V 9 VIN

5 Not Connected (NC) 10 GND

TPOUT- Output Differential signal output.TPOUT+ Output Differential signal output. TPIN- Input Differential signal input.TPIN+ Input Differential signal input.VIN Input Power supply for the board – over Ethernet.

Page 11

Page 12: PIC-MICRO-WEB development board

AVAILABLE DEMO SOFTWARE :

You could find information about PIC-MICRO-WEB board, Microchip TCP/IP stack and how to change and configure the software on Understanding PIC WEB boards here: https://www.olimex.com/Products/PIC/_resources/Understanding-PIC-WEB-boards.pdf

Page 12

Page 13: PIC-MICRO-WEB development board

ORDER CODE:

PIC-MICRO-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 page https://www.olimex.com/ for more info.

All boards produced by Olimex are RoHS compliant

Revision history:

Board's Revision: Rev. C – created October 2009Manual's Revision: Rev. E – edited January 2014

Fixed wrong minimum voltage required. Updated links. Formatting improvements.

Page 13

Page 14: PIC-MICRO-WEB development board

Disclaimer: © 2011 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, expressor 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 14