Anda di halaman 1dari 21

PIC32-MAXI-WEB development board Users Manual

All boards produced by Olimex are RoHS compliant Rev. A, February 2011

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

Page 1

INTRODUCTION:
This board features a PIC32 processor with embedded 100Mbit Ethernet module 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, a large 240x320 TFT LCD with touchscreen support that allows you to develop complex graphical user interface applications, digital optoisolated inputs, trimmer potentiometer, accelerometer with integrated temperature sensor, two CAN interface channels, RS232 interface, USB on-the-go and micro SD card slot to store large amounts of data. 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 PIC32MX795F512L has 512K Flash memory (plus an additional 12 KB of Boot Flash).

BOARD FEATURES:
PIC32MX795F512L High-Performance, USB, CAN and Ethernet 32-bit Flash Microcontroller TFT LCD 320x240 65 k colours with resistive touchscreen Debug interface JTAG and ICSP RESET circuit Reset button Two optoisolated digital inputs with indicator LEDs Two CAN interfaces 100Mbit Ethernet interface Two UEXT connectors to connect to other Olimex boards Accelerometer with integrated temperature sensor micro SD card holder Two Relays 10A/250VAC with indicator LEDs USB_OTG RS232 interface Trimmer connected to analogue input Three user LEDs PWR LED Three user buttons 3.3V voltage regulator Dimensions 140x100 mm (5.51x3.94")

ELECTROSTATIC WARNING:
The PIC32-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.

Page 2

BOARD USE REQUIREMENTS:


Cables: The Board needs external power supply cable and mini ICSP cable (connected to the respective debugger) in order to test basic functionality. Depending on the peripherals used you may also need and Ethernet RJ45 terminated cable, 9pin RS232 cable, miniUSB cable. The board requires +12V regulated power supply. !!! Please note that the processor on this board is not supported by the once famous ICD2 programmer/debugger and derivatives, but by the PIC-KIT3 and other compatible tools. Software: PIC32-MAXI-WEB is tested with MPLAB IDE v8.63 + MPLAB C32 v1.10B C compiler. It is possible that the demo application may not work as expected as new releases of MPLAB and the C32 compiler are released in the future.

Hardware:

Page 3

MICROCONTROLLER FEATURES:
PIC32-MAXI-WEB board use MCU PIC32MX795F512L from Microchip Technology with these features: High-Performance 32-bit RISC CPU:

MIPS32 M4K 32-bit core with 5-stage pipeline 80 MHz maximum frequency 1.56 DMIPS/MHz (Dhrystone 2.1) performance at zero Wait state Flash access Single-cycle multiply and high-performance divide unit MIPS16e mode for up to 40% smaller code size Two sets of 32 core register files (32-bit) to reduce interrupt latency Prefetch Cache module to speed execution from Flash Microcontroller Features: Operating voltage range of 2.3V to 3.6V 512K Flash memory (plus an additional 12 KB of Boot Flash) 128K SRAM memory Pin-compatible with most PIC24/dsPIC DSC devices Multiple power management modes Multiple interrupt vectors with individually programmable priority Fail-Safe Clock Monitor mode

Configurable Watchdog Timer with on-chip Low-Power RC oscillator for reliable operation Peripheral Features: Atomic SET, CLEAR and INVERT operation on select peripheral registers 8-channels of hardware DMA with automatic data size detection USB 2.0-compliant full-speed device and On-The-Go (OTG) controller: Dedicated DMA channels 10/100 Mbps Ethernet MAC with MII and RMII interface: Dedicated DMA channels CAN module: 2.0B Active with DeviceNet addressing support Dedicated DMA channels 3 MHz to 25 MHz crystal oscillator Internal 8 MHz and 32 kHz oscillators Six UART modules with: RS-232, RS-485 and LIN 1.2 support IrDA with on-chip hardware encoder and decoder Four SPI modules Five I2C modules Separate PLLs for CPU and USB clocks

Parallel Master and Slave Port (PMP/PSP) with 8-bit and 16-bit data, and up to 16 address lines

Page 4

Hardware Real-Time Clock and Calendar (RTCC)

Five 16-bit Timers/Counters (two 16-bit pairs combine to create two 32-bit timers) Five Capture inputs Five Compare/PWM outputs Five external interrupt pins High-speed I/O pins capable of toggling at up to 80 MHz High-current sink/source (18 mA/18 mA) on all I/O pins Configurable open-drain output on digital I/O pins Debug Features: Two programming and debugging Interfaces:

2-wire interface with unintrusive access and real-time data exchange with application 4-wire MIPS standard enhanced Joint Test Action Group (JTAG) interface Unintrusive hardware-based instruction trace IEEE Standard 1149.2 compatible (JTAG) boundary scan Analog Features: 16-channel, 10-bit Analog-to-Digital Converter: 1 Msps conversion rate Conversion available during Sleep and Idle Two Analog Comparators 5V tolerant input pins (digital pins only)

Page 5

BLOCK DIAGRAM:

Page 6

MEMORY MAP:

Page 7

SCHEMATIC:
2.5V

LAN
C20
+

3.3V R28 3.3V SW _SCL1 R29 PHY_IRQ R30 MOSI3A R31 R8 10k 3.3V C22 100nF C23 3.3V 3.3V EMDIO EMDC AERXD1 AERXD0 ERXDV AERXERR
1k 1k 1k 1k 1k 100nF
FB0805/600R/200mA(201209-601)

4.7k
0R

UEXT1
UEXT1 TXD1 SCL1 MISO1 SCK1
1 3 5 7 9 2 4 6 8 10

R32 R33 R34 R35 R36 R37


0R

NA 4.7k

RXD1_INT

49.9R/1% NA 49.9R/1% 49.9R/1% 49.9R/1%

3.3V

0R(NA) NA NA

C21

RXD1 SDA1 MOSI1 UEXT1_CS

3.3V 0R(NA) SW _SDA1 NA AETXEN NA MISO3A 10k 3.3V

10uF/6.3V/TANT 100nF LAN 1 4 5 2 3 7 8 6


75 75

FB2

FB0805/600R/200mA(201209-601)

R1 R2 R3 R4 R5

BH10S

YELLOW 75 75 1:1

LEDACT LED100/DUP

REXT VDDRCV GND6 TXTX+ VDDTX GND7 GND8 XO XI VDDPLL RST#

GREEN

1nF/2kV

TD+ COM TDAG KG AY KY RD+ NC RD-

PHY_VDD_PLL

1:1

1 3 2 AG KG AY KY 7 6 8

R7
37 38 39 40 41 42 43 44 45 46 47 48

PHY_VDD_PLL PHY_RSTN
3.3V

4.99k/1% R6 1.5K/1%
36 35 34 33 32 31 1k 30 29 NA 28 330R 27 330R 26 330R 25

R9 10k
1 2 3 4 5 6 7 8 9 10 11 12

10uF/6.3V/TANT 3.3V R10 1k SW _U2TX R38 R39 R40 3.3V 0R(NA) NA 4.7k

RJ45 SIDE

UEXT2
UEXT2
1 3 5 7 9 2 4 6 8 10

0R

RJLBC-060TC1
C17 C18 C19

R27 3.3V R26 R25 R24 R23 R22

VDDIO2 GND3 CRS/RMII_BTB COL/RMII TXD3 TXD2 TXD1 TXD0 TXEN TXC/REFCLK TXER VDDC

MDIO GND5 MDC GND4 RXD3/PHYAD1 FXSD/FXEN RXD2/PHYAD2 RX+ RXD1/PHYAD3 RXRXD0/PHYAD4 VDDRX VDDIO1 PD# GND1 LED3/NWAYEN RXDV/CRSDV/PCS_LPBK LED2/DUPLEX RXC LED1/SPD100/NFEF RXER/ISO LED0/TEST GND2 INT/PHYAD0

U2TX SCL2 MISO3A AC1TX/SCK3A

U2RX SDA2 MOSI3A UEXT2_CS

R41 R42 R43 R44

0R

0R(NA) SW_U2RX NA AC1RX 4.7k 3.3V 10k 3.3V

BH10S

100nF

100nF

100nF

3.3V R105

ACCELEROMETER
330R U3
1 10 9 2 3 NC1 SCK NC2 SDO SDI/SDA VDDIO VDD INT GND CSB 6 7 R50 8 4 5

3.3V R45 R46 1M 10k

SD/MMC
CS_MMC MOSI3A AC1TX/SCK3A 100k MISO3A 100k 100k
+

FB3

PHY_IRQ

4.7k 3.3V

C24

R11 R12 R13 R14 R15

C63 10uF/6.3V 3.3V 3.3V C30


10uF/6.3V

SCL2 1k SDA2

AETXD1 AETXD0 AETXEN

DIGITAL INs
IN1
2 1

24 23 22 21 20 19 18 17 16 15 14 13

3.3V 3.3V

U2

KS8721BLMM

C29 100nF

C64
10uF/6.3V/TANT

R51 0R(NA) ACC_INT 0R 3.3V

R47 R48 R49 L2

2 3 6 4 5 7 8 1

CD/DAT3/CS CMD/DI VSS VDD CLK/SCLK DAT0/DO DAT1/RES DAT2/RES

CL470nH/0805/1.76R/250mA

LED_IN1 R103 330R


GYX-SD-TC0805SURK(RED)

OPT1
4 3

1k 1k 1k 1k

1k

1 2

IN1 R104 4.7k

R16 CD1
1 3 E/D

100k
VDD 4

SMB380,(QFN10)

TB2-3.5mm IN2
2 1

D8 1N4148 LED_IN2

47uF/6.3V/TANT

C28 47uF/6.3V/TANT

SD/MMC MICRO

C27
R21 R20 R19 R18 R17

C26 100nF

C25

H11A817SMD
GYX-SD-TC0805SURK(RED)

GYX-SD-TC0805SURK(RED)

LED_R1

TB2-3.5mm

D7 1N4148

3.3V

PHY_REFCLK

6NC2-50MHz

REL
1 2 3 4 5 6

REL1

REL1 R52 1k
RAS-12-15

LED_R2

R102 330R

GYX-SD-TC0805SURK(RED)

OPT2

100nF IN2 R101 4.7k

OUT

VSS

+12V

RELAYS
D1 1N4148

+12V

REL2 R53 1k
RAS-12-15

D2 1N4148

H11A817SMD 3.3V

47k

R98

R97

U1
86 62 46 37 16 2 VDD VDD VDD VDD VDD VDD VSS VSS VSS VSS VSS VUSB VBUS VCAP/VDDCORE 17 TMS/RA0 38 TCK/RA1 58 SCL2/RA2 59 SDA2/RA3 60 TDI/RA4 61 TDO/RA5 91 TRCLK/RA6 92 TRD3/RA7 28 VREF-/CVREF-/AERXD2/PMA7/RA9 29 VREF+/CVREF+/AERXD3/PMA6/RA10 66 AETXCLK/SCL1/INT3/RA14 67 AETXEN/SDA1/INT4/RA15 PGED1/AN0/CN2/RB0 PGEC1/AN1/CN3/RB1 AN2/C2IN-/CN4/RB2 AN3/C2IN+/CN5/RB3 AN4/C1IN-/CN6/RB4 AN5/C1IN+/VBUSON/CN7/RB5 PGEC2/AN6/OCFA/RB6 PGED2/AN7/RB7 AN8/C1OUT/RB8 AN9/C2OUT/RB9 AN10/CVREFOUT/PMA13/RB10 AN11/ERXERR/AETXERR/PMA12/RB11 AN12/ERXD0/AECRS/PMA11/RB12 AN13/ERXD1/AECOL/PMA10/RB13 AN14/ERXD2/AETXD3/PMALH/PMA1/RB14 AN15/ERXD3/AETXD2/OCFB/PMALL/PMA0/CN12/RB15 25 24 23 22 21 20 26 27 32 33 34 35 41 42 43 44 6 7 8 9 63 64 74 73 72 76 77 78 84 83 82 81 68 69 70 71 79 80 47 48 93 94 98 99

R99 CAN1
3 2 1

10k
1

+5V

C62 U8 100nF

NA(4.7k)

R100 120R
CAN1_T CLOSE
2

4.7k

CAN1_D OPEN
8 7 6 5

TB3-3.5mm

TXD RS CANH VSS CANL VDD VREF RXD

1 AC1TX/SCK3A 2 3 4 R96 0R AC1RX

C1
100nF

C2 100nF

C3 100nF

C4 100nF

C5 100nF

C6
100nF 15

0R(NA)

TDI,TDO,TMS,TCK

MCP2551

3.3V
R93

3.3V 3.3V
R92

36 45 65 75 55 54 85

TMS TCK SCL2 SDA2 TDI TDO PHY_RSTN /TFT_RST /TFT_CS TFT_RS PHY_IRQ AETXEN SW _SCL1 SW _SDA1 ACC_INT USB_FAULT RXD1_INT VBUSON PGEC2 PGED2 TRIM SW _U2TX LED1 YD XL YU SW _U2RX XR CS_MMC AC2TX AC2RX MISO1

DEBUG INTERFACE:
3.3V 3.3V D3
1N5819(SS14)

47k

CAN

REL2
1

3.3V

3.3V

HD-515R_6P VDD_E CLOSE

T1 DTC114YKA

1 0k

RELAY1

T2 DTC114YKA

10 k

RELAY2

10k CAN2
3 2 1

R94
1

+5V

NA(4.7k)

NA(4.7k)

R95 120R
CAN2_T CLOSE
2

CAN2_D C61 U7
1 2 3 4

C16 100nF C15 +5V_VBUS 100nF C14 + 10uF/6.3V/TANT C13 100nF FB1
FB0805/600R/200mA(201209-601)

JTAG NC 11 330R TCK 9 TMS 7 TDO 5 TDI 3


1 13 14 12 10 CUT!!! 8 6 4 2

RSTN

R54

OPEN
8 7 6 5

TB3-3.5mm

TXD RS CANH VSS CANL VDD VREF RXD

100nF AC2TX

3.3VA

30

C12
10uF/6.3V/TANT

C11 100nF RSTN


31 13 1 95 97 96 14 12 11 10 56 57 89 90 39 40 53 50 49 51 52 88 87 19 18 5 4 3 100

AVDD AVSS #MCLR

NC BH14S(PIN<12>-CUT!) 3.3V RSTN PGED2 PGEC2


1 2 3 4 5 6

R91 0R(NA)

0R

AC2RX

AGND

ICSP

MCP2551 AERXERR UEXT2_CS RELAY1 RELAY2 PHY_REFCLK ERXDV IN1 IN2 USB_DUSB_D+ PMD9 PMD8 AC1TX/SCK3A AC1RX TXD1 MOSI3A MISO3A USBID RXD1 PMD10 PMD11 AERXD1 AERXD0 PMD7 PMD6 PMD5 PMD4

USB_OTG
+5V 3.3V 3.3V
8 7 6 5

10k 10k U6

R90 R89
1 2 3 4

C60 100nF USB_OTG


GND2 GND1

OUT_A #ENA FLAG_A IN GND FLAG_B OUT_B #ENB


LM3526M-L(SO8)

USB_FAULT

T3 DTC114YKA +5V_VBUS USB_DUSB_D+ USBID C59 FB4


FB0805/600R/200mA(201209-601)

10 k
47k

VBUSON

VBUS DD+ ID GND

USB

+5V_VBUS USB_DUSB_D+ USBID C58 2.2uF

GND4 GND3

100nF

AERXERR/RG15 T2CK/RC1 TRD2/RG14 T3CK/AC2TX/RC2 TRD0/RG13 T4CK/AC2RX/RC3 TRD1/RG12 T5CK/SDI1/RC4 ERXCLK/#SS2A/U2BRX/#U2ACTS/PMA2/CN11/RG9 OSC1/CLKI/RC12 ERXDV/SCL2A/SDO2A/U2ATX/PMA3/CN10/RG8 OSC2/CLKO/RC15 ECRS/SDA2A/SDI2A/U2ARX/PMA4/CN9/RG7 SOSCO/T1CK/CN0/RC14 ECOL/SCK2A/U2BTX/#U2ARTS/PMA5/CN8/RG6 SOSCI/CN1/RC13 D-/RG3 D+/RG2 SDO1/OC1/INT0/RD0 C2TX/ETXERR/PMD9/RG1 OC2/RD1 C2RX/PMD8/RG0 OC3/RD2 OC4/RD3 AC1TX/SCK3A/U3BTX/#U3ARTS/RF13 ETXCLK/PMD15/CN16/RD7 AC1RX/#SS3A/U3BRX/U3ACTS/RF12 ETXEN/PMD14/CN15/RD6 SCL1A/SDO1A/U1ATX/RF8 PMRD/CN14/RD5 SCL3A/SDO3A/U3ATX/PMA8/CN18/RF5 OC5/PMWR/CN13/RD4 SDA3A/SDI3A/U3ARX/PMA9/CN17/RF4 RTCC/EMDIO/IC1/RD8 USBID/RF3 #SS1/IC2/RD9 SDA1A/SDI1A/U1ARX/RF2 SCK1/IC3/PMCS2/PMA15/RD10 C1TX/ETXD0/PMD10/RF1 EMDC/IC4/PMCS1/PMA14/RD11 C1RX/ETXD1/PMD11/RF0 ETXD2/IC5/PMD12/RD12 ETXD3/PMD13/CN19/RD13 AETXD0/#SS1A/U1BRX/#U1ACTS/CN20/RD14 AERXD1/INT2/RE9 AETXD1/SCK1A/U1BTX/#U1ARTS/CN21/RD15 AERXD0/INT1/RE8 PMD7/RE7 PMD0/RE0 PMD6/RE6 PMD1/RE1 PMD5/RE5 PMD2/RE2 PMD4/RE4 PMD3/RE3

Q1

C7 C8 C9

39pF 39pF 27pF 27pF

Q8.000MHz/20pF/HC-49SM(SMD)

WF6S

Q2 MOSI1 LED2 LED3 TFT_LIGHT PMD15 PMD14 PMRD PMWR EMDIO UEXT1_CS SCK1 EMDC PMD12 PMD13 AETXD0 AETXD1 PMD0 PMD1 PMD2 PMD3

GN D

C10

QCT32768(2x6)/6pF

RESET CIRCUIT
3.3V 3.3V 3.3V

R55 10k RSTN R56 330R RESET


T1107A(6x3.8x2.5mm)

D4 1N4148

U4
VCC 2

NA(MCP130T)

1 RESET GND

C31 100nF

MICRO_AB

PIC32MX795F512L-80I/PT 3.3V 3.3V 3.3V 3.3V 3.3V

RS232
3.3V
15 GND

3.3VA

TRIMMER
R86
+

TFT-LCD
TFT
8 4 6 7 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 5 #RESET #CS RS #WR #RD DB0 DB1 DB2 DB3 DB4 DB5 DB6 DB7 DB8 DB9 DB10 DB11 DB12 DB13 DB14 DB15 VCC VCC GND GND YD XL YU XR LEDA LEDA LEDK1 LEDK2 LEDK3 LEDK4 LEDK5 GND 2 3 1 25 26 27 28 29 35 36 30 31 32 33 34 37

U5PWR

16 VCC

AN_TR 10k

TRIM C52 C51 100nF AGND

R57 NA /TFT_RST /TFT_CS TFT_RS PMW R PMRD PMD0 PMD1 PMD2 PMD3 PMD4 PMD5 PMD6 PMD7 PMD8 PMD9 PMD10 PMD11 PMD12 PMD13 PMD14 PMD15 TFT_LIGHT

R58 NA

R59 NA

330R

C33 100nF

C32 100nF

C57 100nF U5 C56 100nF C55 100nF R88


G1 2 6 C1+ V+ VC1C2+ C21 3 4 5 11 10 12 9

10uF/6.3V/TANT AGND C53 100nF C54 100nF TXD1 R87 330R CTS RXD1 RTS R85 330R LED1
GYX-SD-TC0805SYC(YELLOW)

AGND

USER LEDS
LED1 LED2 LED3 LED2
GYX-SD-TC0805SGC(GREEN)

YD XL YU XR R62
0R

R60 R61

100k 100k FET1 IRLML6402 R63 100k

RS232
1 2 3 4 5

NA PC_CD PC_RXD PC_TXD

0R(NA)

PC_RXD PC_CTS PC_TXD PC_RTS

14 7 13 8

GYX-SD-TC0805SURK(RED)

PC_RTS PC_CTS

6 7 8 9 G2

T1OUT T2OUT R1IN R2IN

T1IN T2IN R1OUT R2OUT

LED3

R64 1k

DB9-F

ST3232(SO16)

R84 330R

R83 330R

FS-K320QVB-V1

POWER SUPPLY
+5V VR1(3.3V) LM1117IMPX-ADJ
GYX-SD-TC0805SURK(RED)

USER BUTTONS
3.3V 3.3VA 3.3V
2

3.3V

3.3V

3.3V

R73 10k R71


T1103NE-DTSM-21R(12x12x4.3mm)

R70 10k PMD14


T1103NE-DTSM-21R(12x12x4.3mm)

R67 10k R68 330R R69 NA(100R) C35 NA(100nF) BUT3 PMD15
T1103NE-DTSM-21R(12x12x4.3mm)

3.3V_E CLOSE

R65 330R R66 NA(100R) C34 NA(100nF)

PMD13

R79 D6 PW R_JACK
1N5819(SS14)

4.99k/1% R80 150k L1

R78

R77

3.3VA_E
1 2

330R R72 NA(100R) C36 NA(100nF) BUT2

240R/1%

+12V
1 6
+ C50 + C49

IN

OUT

3.3VA

VR1
VIN RT INV SW 5 2 3

15k/1% 4.99k/1% C45 NA(10nF)


1000uF/6.3V/8x12/low_ESR +

ADJ/GND

CLOSE PW R
+

R75 C41 C40


NA(10uF/6.3V)
47uF/6.3V/TANT

C38 C37
47uF/6.3V/TANT

C43

R82

C48

10uF/16V/TANT

+ C44

10uF/16V/TANT +

1000uF/16VDC

220uF/10V/tant

4.7k

100nF

2.2uF

330R

BD9778HFP
68k

4.7nF

390R/1%

EN/SYNC GND FB

100nF

YDJ-1134 12VDC

C47

R81

7 4

C46

C42

15uH/DBS135

D5
1N5819(SS14)

R76

R74

100nF GND AGND_E


1 2

BUT1

C39

AGND AGND

CLOSE

PIC32-MAXI-WEB
Rev. A COPYRIGHT(C) 2011, OLIMEX Ltd. http://www.olimex.com/dev

Page 8

BOARD LAYOUT:

POWER SUPPLY CIRCUIT:


PIC32-MAXI-WEB can take power only from power connector PWR_JACK, where only 12 VDC external voltage source has to be applied. The board power consumption is about 300mA with all peripherals and MCU running at full speed, relays and LEDs on and working Ethernet connection.

RESET CIRCUIT:
PIC32-MAXI-WEB reset circuit is made of D4 (1N4148), RC group R55 10k and C31 100nF. Serial resistor R56 330 is used to prevent fast C31 charge and discharge when PIC32MX795F512L is being programmed. Manual reset is possible by the RESET button.

CLOCK CIRCUIT:
Quartz crystal Q1 8MHz is connected to (OSC1/CLKI/RC12) and 64 (OSC2/CLKO/RC15). PIC32MX795F512L pins 63

Quartz crystal Q2 32.768 KHz is connected to PIC32MX795F512L pins 73 (SOSCI/CN1/RC13) and 74 (SOSCO/T1CK/CN0/RC14).

Page 9

JUMPER DESCRIPTION:
3.3V_E 3.3VA_E
Enables 3.3V positive supply for analog modules. Default state is closed (shorted). Enables 3.3V supply for PIC32MX795F512L and all other devices. Default state closed (shorted).

VDD_E

Enables PIC32MX795F512L's 3.3V power supply. Default state is closed (shorted).

AGND_E

Enables the analog ground. Default state is closed (shorted).

CAN1_T
This jumper assures correct work of the CAN1. At each end of the bus it should be closed. This means that if you have only two devices with CAN, the jumpers of both devices should be closed. If you have more than two devices, only the two end devices should be closed. Default state is closed (shorted).

CAN1_D

CAN Disable. If this jumper is closed, the CAN1 is disabled. Default state is open (not shorted).

CAN2_T

This jumper assures correct work of the CAN2. At each end of the bus it should be closed. This means that if you have only two devices with CAN, the jumpers of both devices should be closed. If you have more than two devices, only the two end devices should be closed. Default state is closed (shorted).

CAN2_D
CAN Disable. If this jumper is closed, the CAN2 is disabled. Default state is open (not shorted).

Page 10

INPUT/OUTPUT:
User button with name BUT1 connected to PIC32MX795F512L pin 83 (ETXEN/PMD14/CN15/RD6). User button with name BUT2 connected to PIC32MX795F512L pin 84 (ETXCLK/PMD15/CN16/RD7). User button with name BUT3 connected to PIC32MX795F512L pin 80 (ETXD3/PMD13/CN19/RD13). Reset button with name RESET connected to PIC32MX460F512L pin 13 (#MCLR). One analog trimmer with name AN_TR connected to PIC32MX795F512L pin 32 (AN8/C1OUT/RB8). Status Led (yellow) with name LED1 connected to PIC32MX795F512L pin 34 (AN10/CVREFOUT/PMA13/RB10). Status Led (green) with name LED2 connected to PIC32MX795F512L pin 76 (OC2/RD1). Status Led (red) with name LED3 connected to PIC32MX795F512L pin 77 (OC3/RD2). Two optoisolated digital inputs IN1 and IN2. Two red LEDs LED_IN1 and LED_IN2 for every digital input. Two red LEDs LED_R1, LED_R2 for the relays. Power supply red LED with name PWR indicates that 3.3V power supply is available. TFT LCD Display - FS-K320QVB-V1

Page 11

EXTERNAL CONNECTOR DESCRIPTION: ICSP:


Pin # 1 2 3 4 5 6 Signal Name RSTN 3.3V GND PGED2 PGEC2 NC

PGED2 I/O PGEC2 Input

Program Data. Serial data for programming. Program Clock. Clock used for transferring the serial data (output from ICSP, input for the MCU).

RS232:
Pin # 1 2 3 4 5 6 7 8 9 TXD RXD Signal Name PC_CD PC_RXD PC_TXD NC GND NC PC_RTS PC_CTS NC

Output Transmit Data. This is the asynchronous serial data output (RS232) for the shift r egister on the UART controller. Input Receive Data. This is the asynchronous serial data input (RS232) for the shift register on the UART controller.

Page 12

LAN:

Pin # 1 2 3 4

Signal Name Chip Side TX+ TXVCC/2 (2.5V) Not Connected (NC)

Pin # 5 6 7 8

Signal Name Chip Side Not Connected (NC) Not Connected (NC) RX+ RX-

LED Left Right Yellow Green

Color

Usage 100MBits/s (Half/Full duplex) Activity

REL:
Pin # 1 2 3 4 5 6 Signal Name Normal Open Common Normal Close Normal Open Common Normal Close REL2 REL1

Page 13

CAN1:
Pin # 1 2 3 GND CANL CANH Signal

CAN2:
Pin # 1 2 3 GND CANL CANH Signal

JTAG:
Pin # 1 2 3
4

Signal Name NC GND TDI GND TDO GND TMS GND TCK GND RSTN CUT NC 3.3 V

5 6 7 8 9 10 11 12 13 14

Page 14

PWR_JACK:
Pin # 1 2 Signal Name Power Input GND

USB_OTG
Pin # Signal Name

1 2 3 4 5

+5V_VBUS USB_DUSB_D+ USBID GND

UEXT1:
Pin #
1

Signal Name 3.3 V


GND

2 3 4 5 6 7 8 9 10

TXD1 RXD1 SCL1 SDA1 MISO1 MOSI1 SCK1 UEXT1_CS

Page 15

UEXT2:
Pin #
1

Signal Name 3.3 V


GND

2 3 4 5 6 7 8 9 10

U2TX U2RX SCL2 SDA2 MISO3A MOSI3A AC1TX/SCK3A UEXT2_CS

SD/MMC:
Pin # 1 2 3 4 5 6 7 8 9 10 11 12 Signal Name MCIDAT2 CS_MMC MOSI3A VDD (3.3 V) AC1TX/SCK3A GND MISO3A MCIDAT1 Not Connected Not Connected Not Connected Not Connected

Page 16

MECHANICAL DIMENSIONS:

Page 17

AVAILABLE DEMO SOFTWARE:


You could find demo software for PIC32-MAXI-WEB board on www.olimex.com/dev. - DemoSoft PIC32-MAXI-WEB v.1.00 Description: The demo demonstrates the functionality of the various peripherals of the board including user input, serial communication, Graphical User Interface (GUI) and Network connectivity The demo is built upon the following Microchip's freely distributed support libraries: - Microchip Graphics Library v2.00 - Microchip TCP/IP Stack Library v.5.20 - Microchip MDD File System Library - Microchip USB support source files FreeRTOS was used to make all tasks run virtually simultaneously. FreeRTOS is a freely distributed RTOS with excellent supportand online documentation. Version used is v6.0.2. MPLAB has support for FreeRTOS (Tools/RTOS viewer). Upon power up the user is presented with a welcome screen. Pressing the screen leads you to the demo screen which contains controlsfor nearly all the peripheral features of the board. To test the functionality of the buttons press button and its corresponding virtual light bulb will be lit. Digital optoinsulated inputs act the same way, but at least 3V must be applied to the terminal block of the input. LEDs and Relays can be toggled by clicking inside their respective checkboxes. Potentiometer controls the meter widget at the lower right corner of the screen. To test the SD card slot just insert a FAT formatted SD card in the slot and press the UPDATE button at the upper left corner of the screen - you'll see information about the size of the card as well as sector size. This demo also implements a USB device function - just connect a miniUSB cable to the board and a HID mouse device should be installed and started (the cursor should draw octagons onscreen), no drivers necessary. This demo program implements a WEB server (and a ICMP server for test purposes). After connecting the LAN cable to the board the TCP/IP stack is initialized and an attempt is made to get a valid IP address. In the presence of a DHCP server the IP is received automatically (as well as subnet mask, gateway etc.). Otherwise defaults defined in 'TCPIPConfig.h' are used: IP: Subnet mask: Gateway: DNS1: 192.168.0.113 255.255.255.0 192.168.0.1 192.168.0.1

To access the WEB server you need a way to determine the current IP address of the board. If you connect a RS232 straight cable to a PC and start any terminal program with the following settings: 9600-8-N-1, IP address info will be displayed in the terminal window. The last entry defines the currently assigned IP address. Enter this IP in the address bar of your favourite browser (for ex. http://192.168.0.113) and you'll access a demo page which dynamically updates status of many of the peripherals present on the board. Try it :). You'll see values of the embedded accelerometer, potentiometer, buttons, digital inputs, LEDs and relays. *NOTE: CAN modules demo can be found inside the file 'Additional Projects.zip' as this feature is not part of the main demo. Build info:

Page 18

MPLAB IDE v8.50 MPLAB C32 v1.10B Microchip Graphics Library v2.00 FreeRTOS v6.0.2 Debugger used: PICKit3 by Microchip

Page 19

ORDER CODE:
PIC32-MAXI-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.

Revision history: Rev. A - created February 2011

Page 20

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, express or 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 21

Anda mungkin juga menyukai