Dspicnode Internal Report

download Dspicnode Internal Report

of 8

Transcript of Dspicnode Internal Report

  • 7/29/2019 Dspicnode Internal Report

    1/8

    PICNODE board specs

    Horcio FernandesJoo FortunatoLeonardo PedroTiago Pereira

    Micro processor

    - dsPIC30F4013

    - Fcristal = 7,3728MHZ

    - max clock: Fcristal * 16 / 4 = 29.4912 MIPS

    Interfaces

    Some interfaces are pin multiplexed

    - Optical serial interface (Rx and Tx)

    - CAN

    - RS485 (Half Duplex)- RS232 (true RS232 from MAX232 or equivalent)

    - I2C

    - SPI

    - RJ11 (for ICD2, a microchip programmer)

    IO

    Some IO features are pin multiplexed

    - up to 8 power pull-down outputs (0.5A per output)

    - up to 6 analog inputs

    - up to 31 general purpose digital IO- up to 3 external interrupt sources

  • 7/29/2019 Dspicnode Internal Report

    2/8

    Board

    - one push button for reset (SW2)

    - one push button connected to general I/O pin (SW1)

    - two monitoring led connected to I/O pins

    Clock

    - 7,3728MHZ cristal for uP clock (0% error in baud rates generation)

    - 32,768KHz cristal (example applications: 1s real time clock (unix time format) or 1s period timer)

    Communication speed

    - optical: up to 1,8Mbaud (limited by pic clock)

    - RS232 port: min 120kbps for HIN232CPZ (depends on RS232 converter)

    - RS232 standard baud rates: 9600, 19200, 38400, 115200, 460800, 921600 (with appropriate

    RS232 converter)

    Programming

    - 1st option:

    . use microchip ICD2 connected to RJ connector

    . work with MPLAB IDE

    . programming jumpers must be in position 1

    . programming switch must connect pins 1 and 2

    - 2nd option:

    . use serial straight through cable from PC serial port to picnode board D9 connector

    . compile your code in MPLAB IDE

    . use "WinPic - A PIC Programmer for Windows" to program the pic

    . programming jumpers must be in position 3

    . programming switch must connect pins 2 and 3 when programming

    . programming switch must connect pins 1 and 2 when using the rs232 port

    DIN 96 pins outputs

    - Avcc: 5v used as reference for pic ADC. Maximum current out of these pins: 100mA

    - Vcc_unreg: vcc voltage not regulated. Maximum current: 0.9A

    - Vcc_5: 5v voltage supply to the pic. Maximum current: 0.8A

    - 5V_pwr: regulated 5v output (7805). Maximum current: 1A

    - Agnd: ground (0V) used as reference to the pic ADC- GND: general ground

    - an0, an1, ...: inputs to the several ADC channels

    - PwrDrv0 to PwrDrv7: power pulldown outputs

    - canrx and cantx: can output and input directly from the pic

    - can_h and can_l: differential can line from the can transceiver

    - rx2 and tx2: uart output and input directly from the pic

    - sdo: pic output to be used in rs485

    - rs485_a and rs485_b: differential rs485 line from the rs485 transceiver

    - int0, int1 and int2: pic external interrupt pins

    - rc13 and rc14: pic general purpose IO

  • 7/29/2019 Dspicnode Internal Report

    3/8

    Schematic - Core section

    55

    44

    33

    22

    11

    D

    D

    C

    C

    B

    B

    A

    A

    1

    dspicnodeb

    oard

    -core

    B

    1

    3

    M

    onday,

    M

    arch

    03,

    2008

    Title

    Size

    Docum

    entNum

    ber

    Rev

    Date:

    Sheet

    of

    U2

    M

    CP2551

    TXD

    1

    RXD

    4

    CANH

    7

    CANL

    6

    VSS

    2

    VDD

    3

    VREF

    5

    RS

    8

    R4

    1K

    R34

    0R

    R39

    0R

    R10

    0R

    X1

    7.3

    728M

    HZ

    U4

    ULN2803

    CO

    M

    10

    G

    ND

    9

    IN1

    1

    IN2

    2

    IN3

    3

    IN4

    4

    IN5

    5

    IN6

    6

    IN7

    7

    IN8

    8

    O

    UT1

    18

    O

    UT2

    17

    O

    UT3

    16

    O

    UT4

    15

    O

    UT5

    14

    O

    UT6

    13

    O

    UT7

    12

    O

    UT8

    11

    R33

    0R

    R18

    0R

    R20

    10K

    R32

    0R

    R44

    120R

    U9

    M

    AX232A

    C1+

    1

    C1-

    3

    C2+

    4

    C2-

    5

    VCC

    16

    G

    ND

    15

    V+

    2

    V-

    6

    %

    %

    oR1O

    UT%

    %

    o

    12

    %

    %

    oR2O

    UT%

    %

    o

    9

    T1IN

    11

    T2IN

    10

    R1IN

    13

    R2IN

    8

    %

    %

    oT1O

    UT%

    %

    o

    14

    %

    %

    oT2O

    UT%

    %

    o

    7

    C3

    100

    nF

    U1

    -M

    CLR-

    1

    AN0/VREF+/CN2/RB0

    2

    AN1/VREF-/CN3/RB1

    3

    AN2/SS1/LVDIN/CN4/RB2

    4

    AN3/CN5/RB3

    5

    AN4/CN6/RB4

    6

    AN5/CN7/RB5

    7

    PG

    C/EM

    UC/AN6/O

    CFA/RB6

    8

    PG

    D/EM

    UD/AN7/RB7

    9

    AN8/RB8

    10

    VDD

    11

    VSS

    12

    O

    SC1/CLKI

    13

    O

    SC2/CLKO

    /RC15

    14

    EM

    UD1/SO

    SCI/T2CK/U1ATX/CN1/RC13

    15

    EM

    UC1/SO

    SCO

    /T1CK/U1ARX/CN0/RC14

    16

    INT0/RA11

    17

    IC2/INT2/RD9

    18

    RD3

    19

    VSS

    20

    VDD

    21

    RD2

    22

    IC1/I

    NT1/RD8

    23

    EM

    UC3/SCK1/RF6

    24

    EM

    UD3/U1TX/SDO

    1/SCL/RF3

    25

    U1RX/SDI1

    /SDA/RF2

    26

    U2TX

    /CN18/RF5

    27

    U2RX

    /CN17/RF4

    28

    C1TX/RF1

    29

    C1RX/RF0

    30

    VSS

    31

    VDD

    32

    EM

    UD

    2/O

    C2/RD1

    33

    UM

    UC

    2/O

    C1/RD0

    34

    A

    N12/RB12

    35

    A

    N11/RB11

    36

    A

    N10/RB10

    37

    AN9/RB9

    38

    AVSS

    39

    AVDD

    40

    R31

    0R

    D4

    LED

    C28

    100nF

    C22

    100

    nF

    C25

    100NF

    C2

    100

    nF

    C5

    18pF

    R38

    0R

    R7

    1K

    R15

    100K

    D3

    LED

    R37

    0R

    R2

    120

    R8

    1K

    R6

    1K

    C1

    100

    nF

    C6

    100

    nF

    R24

    10K

    R36

    0R

    X2

    32,7

    68

    KHZ

    R35

    0R

    R29

    0R

    R11

    0R

    U10

    LTC485

    RO

    1

    DI

    4

    G

    ND

    5

    VCC

    8

    DE

    3

    %

    %

    oRE%

    %

    o

    2

    A

    6

    B

    7

    C8

    100

    nF

    R22

    0R

    C13

    18pF

    C12

    100

    nF

    R13

    10K

    R25

    4K7

    SW

    1

    R30

    0R

    R9

    0R

    C14

    18pF

    SW

    2

    C29

    100

    nF

    R28

    0R

    C7

    100

    nF

    C27

    100

    nF

    R42

    0R

    C11

    100

    nF

    R41

    0R

    R14

    0R

    R23

    4K7

    R40

    0R

    C4

    100

    nF

    PG

    D

    PG

    C

    CAN

    _L

    CANTX

    CANRX

    RX2

    TX2

    AN0

    AN1

    AN2

    AN3

    AN4

    AN5

    AN8

    AN10

    AN9

    AN11

    AN12

    RD1

    RD0

    RX

    _PC

    M

    CLR*

    AN8

    AN9

    AN10

    AN11

    PwrDrv0

    PwrDrv1

    PwrDrv2

    PwrDrv3

    PwrDrv4

    PwrDrv5

    PwrDrv6

    PwrDrv7

    SDO

    RD3

    TX1/SCL

    RX1/SDA

    INT1

    RD2

    M

    CLR*

    TX2

    RX2

    RD0

    RD1

    RD2

    RD3

    AN4

    AN5

    RX1/SDA

    TX1/SCL

    SDO

    RS485

    _A

    RS485

    _B

    CANRX

    AN8

    AN9

    RD0

    RD1

    RD2

    RD3

    AN10

    AN11

    PwrDrv3

    PwrDrv4

    PwrDrv5

    PwrDrv6

    PwrDrv7

    PwrDrv1

    PwrDrv2

    PwrDrv0

    INT2

    INT0

    RC13

    CANTX

    CAN

    _H

    RX

    _M

    AX

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _UNREG

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _5

    PwrDrv2

    PwrDrv3

    PwrDrv4

    PwrDrv5

    PwrDrv6

    PwrDrv7

    PwrDrv0

    PwrDrv1

    M

    CLR

    an0

    an1

    an2

    an3

    an4

    an5

    pgc

    pgd

    an12

    rx2

    tx2

    sdo

    int0

    int2

    int1

    rx1/sda

    tx1/scl

    canrx

    cantx

    can_

    l

    rc13

    rc14

    can_

    h

    rs485

    _b

    rs385

    _a

    avcc

    O

    ptional

    O

    ptional

  • 7/29/2019 Dspicnode Internal Report

    4/8

    Schematic - Input/output section

    55

    44

    33

    22

    11

    D

    D

    C

    C

    B

    B

    A

    A

    1

    dsp

    icno

    de

    boar

    d-

    inpu

    t/ou

    tpu

    t

    B

    2

    3

    M

    on

    day,

    M

    arc

    h0

    3,

    2008

    Title

    Size

    Docum

    en

    tNum

    ber

    Rev

    Da

    te:

    Shee

    t

    o

    f

    TP8

    AG

    ND

    TP9

    M

    CLR

    R47

    330R

    1

    2

    R19

    560R

    1

    2

    J26C

    DIN

    96

    _ABC-

    R

    C

    1

    C

    2

    C

    3

    C

    4

    C

    5

    C

    6

    C

    7

    C

    8

    C

    9

    C

    10

    C

    11

    C

    12

    C

    13

    C

    14

    C

    15

    C

    16

    C

    17

    C

    18

    C

    19

    C

    20

    C

    21

    C

    22

    C

    23

    C

    24

    C

    25

    C

    26

    C

    27

    C

    28

    C

    29

    C

    30

    C

    31

    C

    32

    J30

    HEADER

    3

    1

    2

    3

    TP10

    G

    ND

    TP1

    AVC

    C

    R21

    560R

    1

    2

    TP6

    VCC

    R43

    180

    12

    P1

    CO

    NN

    ECTO

    RD

    B9

    594837261

    U11

    BS170/TO

    C23

    220p

    F

    TP4

    PG

    D

    R49

    330R

    1

    2

    R45

    0R

    1

    2

    R50

    4K7

    12

    R48

    330R

    1

    2

    J26A

    DIN

    96

    _ABC-

    R

    A1

    A2

    A3

    A4

    A5

    A6

    A7

    A8

    A9

    A10

    A11

    A12

    A13

    A14

    A15

    A16

    A17

    A18

    A19

    A20

    A21

    A22

    A23

    A24

    A25

    A26

    A27

    A28

    A29

    A30

    A31

    A32

    TP2

    5V

    _PW

    R

    C21

    100

    nF

    C62

    100

    nF

    R46

    330R

    1

    2

    J31

    HEADER

    3

    1

    2

    3

    TP7

    V_

    Unre

    g

    U8

    HFBR-

    2412

    O

    UT

    6

    G

    ND

    3

    VCC

    2

    NC

    4

    NC

    5

    NC

    1

    G

    ND

    7

    NC

    8

    J26B

    DIN

    96

    _ABC-

    RB1

    B2

    B3

    B4

    B5

    B6

    B7

    B8

    B9

    B10

    B11

    B12

    B13

    B14

    B15

    B16

    B17

    B18

    B19

    B20

    B21

    B22

    B23

    B24

    B25

    B26

    B27

    B28

    B29

    B30

    B31

    B32

    TP5

    G

    ND

    C26

    100

    nF

    U7

    HFBR-

    1412

    ANO

    DE

    6

    CATHO

    DE

    3

    ANO

    DE

    2

    NC

    4

    NC

    5

    NC

    1

    ANO

    DE

    7

    NC

    8

    R51

    4K7

    12

    J29

    HEADER

    3

    1 2 3

    J28

    HEADER

    6

    1 2 3 4 5 6

    TP3

    PG

    C

    U12

    BS170/TO

    C24

    220p

    F

    PG

    D_

    ser

    ial

    TX

    _PC

    TX1/SCL

    M

    CLR*

    PG

    C_

    ser

    ial

    RX

    _PC

    AN5

    RX1/SDA

    AN3

    AN1

    AN4

    AN0

    AN2

    AN12

    RX

    _M

    AX

    TX

    _PC

    M

    CLR*

    PG

    D

    PG

    C

    PG

    D

    PG

    C

    PG

    D_

    ser

    ial

    PG

    C_

    ser

    ial

    VCC

    _5

    VCC

    _5

    VCC

    _5

    VCC

    _UNREG

    AVCC

    5V

    _PW

    R

    VCC

    _5

    VCC

    _5

    AVCC

    M

    CLR

    an

    0

    an

    1

    Pwr

    Drv

    1

    Pwr

    Drv

    6

    Pwr

    Drv

    4

    Pwr

    Drv

    3

    Pwr

    Drv

    0

    Pwr

    Drv

    2

    Pwr

    Drv

    5

    an

    5

    an

    3

    an

    4

    an

    12

    an

    2

    Pwr

    Drv

    7

    can

    tx

    canrx

    can

    _h

    can

    _l

    tx2

    rx

    2

    sdo

    rx

    1/sda

    tx1/sc

    l

    rs

    485

    _b

    rs

    385

    _a

    int1

    rc

    14in

    t2

    int0

    rc

    13

    Use

    on

    lyw

    ith

    I2C

    pro

    toco

    l

  • 7/29/2019 Dspicnode Internal Report

    5/8

    Schematic - Power section

    55

    44

    33

    22

    11

    D

    D

    C

    C

    B

    B

    A

    A

    1

    dspicnodeb

    oard

    -power

    B

    3

    3

    M

    onday,

    M

    arch

    03,

    2008

    Title

    Size

    Docum

    entNum

    ber

    Rev

    Date:

    Sheet

    of

    C20

    2200UF

    +

    VR4

    LM

    78L05C/TO

    92

    IN

    3

    O

    UT

    1

    GND

    2

    J27

    RCA

    JACK

    1

    2

    D1

    D1N4001

    C19

    100

    NF

    C9

    1

    00

    UF

    +

    C18

    10

    UF

    +

    C10

    100

    NF

    R17

    10R

    R16

    1R

    L2

    CHO

    KE

    D2

    LED

    R5

    1K

    C17

    100

    NF

    C16

    470UF

    +

    VR2

    LM

    7805C

    /TO

    220

    IN

    1

    O

    UT

    3

    GND

    2

    VR1

    LM

    7805C/TO

    220

    IN

    1

    O

    UT

    3

    GND

    2

    VCC

    _UNREG

    VCC

    _5

    VCC

    _UNREG

    VCC

    _UNREG

    AVCC

    VCC

    _UNREG

    5V

    _PW

    R

    AG

    ND

    vcc_

    unreg

    avcc

    5v_

    pwr

    vcc_

    5

  • 7/29/2019 Dspicnode Internal Report

    6/8

    PCB layout - Top layer

    0.098 CAR D GUIDES

    S W2 S W1

    VR 4

    VR 2

    Q1

    D1

    6

    1

    J28

    J29

    R51

    R50

    R47

    R46

    R30

    R29

    R28

    R25

    R24

    R22

    R2

    0

    R18

    R7

    R6

    R5

    R4

    R2

    R48

    C25

    MCLR

    C28

    C12

    C1 0

    C8

    C4

    C2

    U1

    U9D4 D3 D2

    C16

    C2 0

    C9

    C18

    L2

    X2

    PGC

    0.109

    0.218 3.500

    3.937

    J26

    6.299

    B3 2

    A1

    B1

    C1

    A32

    C32

    X1

    VR 1

    96

    51

    U2

    +V GND

    RX TX

    U10

    U4

    Outubro2007

    EURATOM/IST

    dsPicNodev1.2

    CFN-IST

    5V_PWR

    J27

    1

    AVCC

    122

    R16

    V_UNREG

    VCCGND

    PGD

    3

    1

    J31

    3

    1

    J30 S

    D

    121

    GND_PWR

    AGND

    Q2

    D

    S

    R17

  • 7/29/2019 Dspicnode Internal Report

    7/8

    PCB layout - Bottom layer

    C23

    R49

    R45

    R43

    R2 3

    R1 9

    R15

    R13

    R8

    R41

    R40

    R39

    R38

    R37

    R36

    R35

    R34

    R33

    R32

    R31

    R14

    R11

    R10

    R9

    C62

    C2 4

    C21

    C19

    C1 7

    C14

    C13

    C11

    C7

    C6

    C5

    C3

    C1

    R42

    0.2183.500

    3.937

    6.050

    C26

    C22

    C27

  • 7/29/2019 Dspicnode Internal Report

    8/8