PIC-MICRO-WEB development board25 RE5/P1C VIN is the pin where you should apply 10-50VDC in case you...

14
PIC-MICRO-WEB development board Users Manual Rev. C, October 2009 Copyright(c) 2009, OLIMEX Ltd, All rights reserved Page 1

Transcript of PIC-MICRO-WEB development board25 RE5/P1C VIN is the pin where you should apply 10-50VDC in case you...

  • PIC-MICRO-WEB development board Users Manual

    Rev. C, October 2009

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

    Page 1

  • INTRODUCTION:

    This small and compact board will give you the opportunity to add Internetconnectivity to any of your existing design or machine. Packed in compactplastic enclosure with DB25 male connector for the microcontroller portsand with the unique PoE (Power over Ethernet) feature which allows PIC-MICRO-WEB to take power by the Ethernet cable and with no need forexternal power supply adapter. The TCP-IP stack provided by Microchip isfree of charge and royalties and allows you to do http, ftp, e-mail etcservices. You can control the PIC GPIOs by web interface and to acquireand send data from external sensors to other Internet applications andclients. With 128K Flash memory for programs and 128KB Flash memoryfor web storage this small device have all resources usually needed forgeneral embedded Internet applications and interface of sensors andmachines to Internet.

    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 10-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.The board must not be subject to high electrostatic potentials. Generalpractice for working with static sensitive devices should be applied whenworking with this board.

    BOARD USE REQUIREMENTS:

    Cables: 1.8 meter USB A-B cable to connect PIC-ICD2 or PIC-ICD2-POCKET to USB host on PC or RS232 cable for PIC-ICD2-TINY. Other cables might be required in case of otherprogramming/debugging tools. You will also need a LAN cable.

    Hardware: Programmer/Debugger – PIC-ICD2, PIC-ICD2-POCKET, PIC-ICD2-TINYor other compatible programming/debugging tool.MOD-PoE – module that provides Power-Over-Ethernet. If youdon't want to use this module, you should apply power (10-50VDC) directly to DB25.pin8.

    Page 2

  • !!!Warning!!! When you want to program this microcontroller with PIC-ICD2, PIC-ICD2-POCKET or PIC-ICD2-TINY, before connectingthe programmer to your target board, you should first connectthe programmer to your computer and open MPLAB. There,first from menu Configure – Select Device – choose themicrocontroller you are about to program, then from menuProgrammer – Select Programmer – choose MPLAB ICD 2, waitwhile MPLAB is downloading operation system, and after ICD2is connected – check in menu Programmer – Settings – Power –there is option – Power target circuit from MPLAB ICD 2 – thisoption should be forbidden, you could not select it. Now it issafe to connect the programmer to your target board.

    Software: PIC-MICRO-WEB is tested with MPLAB IDE v.7.62 + MPLABC18 C compiler. It is possible that the stack might notfunction properly if used with later versions of MPLAB IDE.

    PROCESSOR FEATURES:

    PIC-MICRO-WEB board use MCU PIC18F67J60 from Microchip with thesefeatures:- 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

    Page 3

  • - Three Enhanced Capture/Compare/PWM (ECCP) modules:o One, two or four PWM outputso Selectable polarityo Programmable dead timeo Auto-shutdown and auto-restart

    - Up to Two Master Synchronous Serial Port (MSSP) modules supportingSPI (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

  • BLOCK DIAGRAM:

    Page 5

  • MEMORY MAP:

    Page 6

  • Page 7

  • SCHEMATIC:

    Page 8

    clos

    e

    100n

    F

    100n

    F

    22pF

    22pF

    220n

    F

    CE220uF/10V

    100n

    F10

    0nF

    100n

    F

    100n

    F

    100n

    100n

    F

    100n

    F

    4.7n

    F

    100n

    F

    100n

    F 10u

    F/6.

    3V

    10pF

    10pF

    2.2u

    F/50

    V

    CE220uF/10V

    100n

    F

    1N58

    19(s

    md)

    WU

    06S

    ferr

    ite b

    ead

    CL4

    7uH

    /SD

    75

    RJP

    -003

    TC1

    red

    VIN

    VIN

    VIN

    25M

    Hz

    3276

    8/6p

    F

    100k

    330

    49.9

    /1%

    49.9

    /1%

    49.9

    /1%

    49.9

    /1%

    270/

    1%2k

    /1%

    4.3k

    /1%

    1.8k

    /1%

    390K

    150K

    330

    1M

    330

    10K

    PIC

    18F6

    7J60

    AT4

    5DB

    011

    BD

    9001

    FSO

    -8

    3.3V

    3.3V

    3.3V

    3.3V3

    .3V

    3.3V

    3.3V

    3.3V

    3.3V

    3.3V

    3.3V

    3.3V

    3.3V

    db25

    _mal

    e

    1N47

    31(4

    .3V

    )

    #SS1

    #SS1

    MIS

    O

    MIS

    O

    MO

    SI

    MO

    SI

    PG

    C

    PGC

    PG

    D

    PGD

    RS

    T

    RST

    RS

    TSC

    K

    SCK

    TPIN

    +

    TPIN

    +

    TPIN

    -

    TPIN

    -

    TPO

    UT+

    TPO

    UT+

    TPO

    UT-

    TPO

    UT-

    12

    3.3V

    _E

    C1

    C2

    C3

    C4

    C5

    C6

    C7

    C8

    C9

    C10

    C11

    C12

    C13

    C14

    C15

    C16

    C17

    C18

    C19

    C20

    C24

    C31

    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

    TCT

    4TD

    +1

    TD-

    2

    LAN

    LED

    P1

    P2

    P3

    P4

    P5

    P6

    GN

    DG

    ND

    _

    Q1

    Q4

    R1

    R2

    R3

    R4 R

    5

    R6

    R7

    R8

    R9

    R10

    R11

    R12

    R13

    R14

    R15

    R20

    #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/T0

    CK

    I28

    RA

    5/A

    N4

    27

    RB

    0/IN

    T0/F

    LT0

    3

    RB

    1/IN

    T14

    RB

    2/IN

    T25

    RB

    3/IN

    T36

    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/T1

    OS

    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/TX

    1/C

    K1

    31

    RC

    7/R

    X1/

    DT1

    32

    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

    RF1

    /AN

    6/C

    2OU

    T17

    RF2

    /AN

    7/C

    1OU

    T16

    RF3

    /AN

    815

    RF4

    /AN

    914

    RF5

    /AN

    10/C

    VR

    EF

    13

    RF6

    /AN

    1112

    RF7

    /#S

    S1

    11

    RG

    4/C

    CP

    5/P

    1D8

    TPIN

    +47

    TPIN

    -46

    TPO

    UT+

    51TP

    OU

    T-50

    VD

    D26

    VD

    D1

    38

    VD

    D2

    57

    VD

    DC

    OR

    E/V

    CA

    P10

    VD

    DP

    LL54

    VD

    DR

    X48

    VD

    DTX

    49

    VS

    S9

    VS

    S1

    25

    VS

    S2

    41

    VS

    S3

    56

    VS

    SP

    LL55

    VS

    SR

    X45

    VS

    STX

    52

    U1

    /CS

    /4

    /RE

    SE

    T/3

    /WP

    /5

    GN

    D7

    SC

    K2

    SI

    1S

    O8

    VC

    C6

    U2

    EN

    5

    FB3

    GN

    D7

    INV

    4

    N.C

    .2

    RT

    6

    SW

    1

    VIN

    8U

    4

    X1-

    1

    X1-

    2

    X1-

    3

    X1-

    4

    X1-

    5

    X1-

    6

    X1-

    7

    X1-

    8

    X1-

    9

    X1-

    10

    X1-

    11X

    1-12

    X1-

    13

    X1-

    14

    X1-

    15

    X1-

    16

    X1-

    17

    X1-

    18

    X1-

    19

    X1-

    20X

    1-21

    X1-

    22

    X1-

    23

    X1-

    24

    X1-

    25

    Z1

    PIC

    -MIC

    RO

    -WEB

    Rev

    . C

    CO

    PY

    RIG

    HT(

    C)

    2009

    , Olim

    ex L

    td.

    http

    ://w

    ww

    .olim

    ex.c

    om/d

    ev

    +

    +

    +

    2x10

    00pF

    /2KV

    2x75

    Ohm

    J1 J2 J3 J6

    J4,5

    J7,8

    GN

    D

  • POWER SUPPLY CIRCUIT:

    PIC-MICRO-WEB takes power over Ethernet using the module MOD-PoE.Other possibility is 10-50VDC to be directly applied to DB25.pin8 if MOD-PoE is not to be used.

    The board power consumption depends on the applied power supply andmay vary. At 12VDC the consumption is about 80mA.

    RESET CIRCUIT:

    PIC-MICRO-WEB reset circuit is made with R20 (10k) pull-up, R13 (330Ω)and capacitor 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

  • PGC Input Program Clock. Clock used for transferring the serial data (output fromICSP, 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 RE1/P2D

    23 RD1/ECCP3/P3A 24 RE2/P2B

    25 RE5/P1C

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

    Page 10

  • 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

  • AVAILABLE DEMO SOFTWARE :

    You could find information about PIC-MICRO-WEB board, Microchip TCP/IPstack and how to change and configure the software on Understanding PICWEB boards on www.olimex.com/dev .

    Page 12

  • 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 www.olimex.com/dev for more info.

    All boards produced by Olimex are RoHS compliant

    Revision history:

    REV.C - created OCtober 2009

    Page 13

  • Disclaimer: © 2009 Olimex Ltd. All rights reserved. Olimex®, logo and combinations thereof, areregistered trademarks of Olimex Ltd. Other terms and product names may be trademarks ofothers.The information in this document is provided in connection with Olimex products. Nolicense, express or implied or otherwise, to any intellectual property right is granted by thisdocument or in connection with the sale of Olimex products. Neither the whole nor any part of the information contained in or the product described inthis document may be adapted or reproduced in any material from except with the priorwritten permission of the copyright holder.The product described in this document is subject to continuous development andimprovements. All particulars of the product and its use contained in this document aregiven by OLIMEX in good faith. However all warranties implied or expressed including butnot 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 thisdocument or any error or omission in such information or any incorrect use of the product.

    Page 14