pic32-mx460lcd development board - olimex...icd2-pocket or pic-icd2-tiny, before connecting the...
TRANSCRIPT
-
PIC32-MX460LCD development board Users Manual
All boards produced by Olimex are ROHS compliant
Rev. A, December 2009Copyright(c) 2010, OLIMEX Ltd, All rights reserved
Page1
-
INTRODUCTION
PIC32-MX460LCD is low cost development board with the new high-performance 80MHz MIPS-Based 32-bit Flash microcontroller PIC32MX460F512L – 100 pin general purpose and USB. This powerful microcontroller supports various serial interfaces such as USB OTG, UART, SPI. In addition you will find also LCD, three UEXT connectors, mini SD/MMC, JTAG and ICSP connectors, EXT_PWR connector and accelerometer. All this allows you to build a diversity of powerful applications to be used in a wide range of situations.
BOARD FEATURES
• PIC32MX460F512L microcontroller
• TFT LCD 320x240 pixels with touch screen
• ICSP/ICD connector for programming and debugging with PIC-ICD2, PIC-ICD2-TINY and PIC-ICD2-POCKET.
• JTAG connector
• EXT_PWR connector
• Voltage regulator +3.3V – VR2(3.3V)
• Voltage regulator +5V - VR1(5V)
• SD/MMC mini connector
• Accelerometer
• USB OTG connector
• two UEXT connectors 2x5 pins
• UEXT40 connector 2x20 pins
• Power plug-in connector for 7-9V DC power supply
• PCB: FR-4, 1.5 mm (0,062"), solder mask, silkscreen component print
• Dimensions 79.2x57.7 mm (3.12x2.27")
ELECTROSTATIC WARNING
The PIC32-MX460LCD 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: Depends on the used programming/debugging tool. It could be 1.8 meter USB A-B cable to connect PIC-ICD2 or PIC-ICD2-POCKET to USB host on PC or RS232 cable in case of PIC-ICD2-TINY or other programming/debugging tools. You will also need a USB OTG cable.
Hardware: Programmer/Debugger – most of Olimex programmers are applicable, for example PIC-ICD2, PIC-ICD2-POCKET, PIC-ICD2-TINY or other compatible programming/debugging tool.
Page2
http://www.olimex.com/dev/pic-icd2.htmlhttp://www.olimex.com/dev/pic-icd2-tiny.htmlhttp://www.olimex.com/dev/pic-icd2-pocket.html
-
!!!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.
PROCESSOR FEATURES
PIC32-MX460LCD board use High-Performance 32-bit RISC microcontroller PIC32MX460F512L from Microchip Technology Inc with these features:
– Operating Voltage Range of 2.3V to 3.6V
– 512K Flash Memory (plus an additional 12KB of Boot Flash)
– 32K SRAM Memory
– Pin-Compatible with Most PIC24/dsPIC® 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
– Up to 4-Channel Hardware DMA with Automatic Data Size Detection
– USB 2.0 Compliant Full Speed Device and On-The-Go (OTG) Controller
– USB has a Dedicated DMA Channel
– 40 MHz Crystal Oscillator
– Internal 8 MHz and 32 kHz Oscillators
– Separate PLLs for CPU and USB Clocks
– Two I2C™ Modules
– Two UART Modules with:
– RS-232, RS-485 and LIN 1.2 support
– IrDA® with On-Chip Hardware Encoder and Decoder
– Parallel Master and Slave Port (PMP/PSP) with 8-bit and 16-bit Data and Up to 16 Address Lines
– Hardware Real-Time Clock/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
Page3
-
– Five External Interrupt Pins
– High-Speed I/O Pins Capable of Toggling at 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 JTAG interface
– Unintrusive Hardware-Based Instruction Trace
– IEEE Std 1149.2 Compatible (JTAG) Boundary Scan
Analog Features:
– 16-Channel 10-bit Analog-to-Digital Converter:
– 1000 ksps Conversion Rate
– Conversion Available During Sleep, Idle
– Two Analog Comparators
– 5V Tolerant Input Pins (digital pins only)
Page4
-
BLOCK DIAGRAM
Page5
-
MEMORY MAP
Page6
-
SCHEMATIC
Page7
100n
F
10uF
/6.3
V
100n
F
100n
F
100n
F10
0nF
100n
F10
0nF
100n
F
1uF
10uF
/6.3
V
39pF
39pF
27pF
27pF
100n
F
100n
F10
0nF
100u
F/6.
3V/ta
nt
47uF
/6.3
V
100n
F10
0nF
100uF/6.3V/tant
100n
F
100n
F2.
2uF
100n
F
100n
F(N
A)
NA
100n
F
47uF
/6.3
V/T
AN
T22
0uF/
16V
DC
/min
i10
0nF
1N58
19S
1N58
19S
1N58
19S
1N58
19S
1N58
19S
WU
06S
FB0805/600R/200mA(201209-601)
FB08
05/
600R
/200
mA
(201
209-
601
)
IRLM
L640
2
IRLM
L640
2
IRLM
L640
2
IRLM
L640
2
WU
06S
BH
14R
(PIN
-CU
T!)
470n
H
+5V
+5V
+5V
WF2
R
Q8.
000M
Hz/
20pF
/HC
-49S
M(S
MD
)
QC
T32
768(
2x6)
/6pF
100K
NA
NA
NA
0R(N
A)
4.7K N
A
4.7K
560R
560R
4.7K
1K
33K
330K
/1%
10K4
7K/1
%
10K
33K
100K
NA
1K
100K
1K
100K
10K
2K
1K
560R
4.7K
560R
33K
33K
33K
1M10
K
4.7K
33K
4.7K
220R
/1%
330R
/1%
330R
/1%
100K
100K
220R
/1%
RF1
10_S
MD
DTC
114Y
KA
FS-K
320Q
VB
-V1
U1
PIC
32M
X46
0F51
2L
NA
LM35
26M
-L(S
O8)
LIS
3LV
02D
L-TR
(LG
A16
)
BH
10R
BH
10R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
R5
R6 R
7
R8
R9
R10
R11
R12
R13
R14
R15
R16
R17
R18
R19
R20
R21
R22
R23
R24
R25
R26
R27
R28
R29
R30
R31
R32
R33
R34
R35
R36
R37
R38
R39
R40
R41
R42
R43
R44
RF1
R_L
CD
T1
#CS
4
#RD
7
#RE
SE
T8
#WR
6
DB
09
DB
110
DB
211
DB
312
DB
413
DB
514
DB
615
DB
716
DB
817
DB
918
DB
1019
DB
1120
DB
1221
DB
1322
DB
1423
DB
1524
GN
D1
GN
D25
GN
D37
LED
A35
LED
A36
LED
K1
30
LED
K2
31
LED
K3
32
LED
K4
33
LED
K5
34
RS
5
VC
C2
VC
C3
XL
27
XR
29
YD
26
YU
28
TFT
#MC
LR13
#U1R
TS/B
CLK
1/C
N21
/RD
1548
#U2C
TS/R
F12
40
#U2R
TS/B
CLK
2/R
F13
39
AV
DD
30
AV
SS
31
C1I
N-/A
N4/
CN
6/R
B4
21
C1O
UT/
AN
8/R
B8
32
C2I
N+/
AN
3/C
N5/
RB
322
C2I
N-/A
N2/
CN
4/R
B2
23
C2O
UT/
AN
9/R
B9
33
CN
20/#
U1C
TS/R
D14
47
CV
RE
FOU
T/P
MA
13/A
N10
/RB
1034
D+/
RG
257
D-/R
G3
56
EN
VR
EG
86
IC1/
RTC
C/R
D8
68
IC2/
#SS
1/R
D9
69
IC3/
SC
K1/
PM
CS
2/P
MA
15/R
D10
70
IC4/
PM
CS
1/P
MA
14/R
D11
71
INT1
/RE
818
INT2
/RE
919
OC
2/R
D1
76
OC
3/R
D2
77
OC
4/R
D3
78
OS
C1/
CLK
I/RC
1263
OS
C2/
CLK
O/R
C15
64
PG
C1/
EM
UC
1/A
N1/
CN
3/R
B1
24
PG
C2/
EM
UC
2/A
N6/
OC
FA/R
B6
26
PG
D1/
EM
UD
1/A
N0/
CN
2/R
B0
25
PG
D2/
EM
UD
2/A
N7/
RB
727
PM
A2/
#SS
2/C
N11
/RG
914
PM
A3/
SD
O2/
CN
10/R
G8
12P
MA
4/S
DI2
/CN
9/R
G7
11P
MA
5/S
CK
2/C
N8/
RG
610
PM
A6/
VR
EF+
/CV
RE
F+/R
A10
29P
MA
7/V
RE
F-/C
VR
EF-
/RA
928
PM
A8/
U2T
X/C
N18
/RF5
50P
MA
9/U
2RX
/CN
17/R
F449
PM
A10
/AN
13/R
B13
42P
MA
11/A
N12
/RB
1241
PM
A12
/AN
11/R
B11
35
PM
ALH
/PM
A1/
AN
14/R
B14
43
PM
ALL
/PM
A0/
AN
15/O
CFB
/CN
12/R
B15
44
PM
D0/
RE
093
PM
D1/
RE
194
PM
D2/
RE
298
PM
D3/
RE
399
PM
D4/
RE
410
0
PM
D5/
RE
53
PM
D6/
RE
64
PM
D7/
RE
75
PM
D8/
RG
090
PM
D9/
RG
189
PM
D10
/RF1
88P
MD
11/R
F087
PM
D12
/IC5/
RD
1279
PM
D13
/CN
19/R
D13
80
PM
D14
/CN
15/R
D6
83
PM
D15
/CN
16/R
D7
84P
MR
D/C
N14
/RD
582
PM
WR
/OC
5/C
N13
/RD
481
RG
151
SC
L1/IN
T3/R
A14
66
SC
L2/R
A2
58
SD
A1/
INT4
/RA
1567
SD
A2/
RA
359
SD
I1/T
5CK
/RC
49
SD
O1/
OC
1/IN
T0/R
D0
72
SO
SC
I/CN
1/R
C13
73
SO
SC
O/T
1CK
/CN
0/R
C14
74
T2C
K/R
C1
6
T3C
K/R
C2
7
T4C
K/R
C3
8
TCK
/RA
138
TDI/R
A4
60
TDO
/RA
561
TMS
/RA
017
TRC
LK/R
A6
91
TRD
0/R
G13
97TR
D1/
RG
1296
TRD
2/R
G14
95
TRD
3/R
A7
92
U1R
X/R
F252
U1T
X/R
F853
US
BID
/RF3
51
VB
US
54
VB
US
ON
/C1I
N+/
AN
5/C
N7/
RB
520
VC
AP
/VD
DC
OR
E85
VD
D2
VD
D16
VD
D37
VD
D46
VD
D62
VS
S15
VS
S36
VS
S45
VS
S65
VS
S75
VU
SB
55
3
12
GN
D
VC
CR
ES
ET
U2
#EN
A1
#EN
B4
FLA
G_A
2
FLA
G_B
3G
ND
6IN
7O
UT_
A8
OU
T_B
5
U3
CK
8
CS
6
GN
D9
GN
D1
14
GN
D2
16
NC
7
RD
Y/IN
T1
RE
S_1
10
RE
S_2
12
RE
S_3
15
SC
L/S
PC
5
SD
A/S
DI/S
DO
3
SD
O2
VD
D11
VD
D1
13
VD
D_I
O4
U4
12
34
56
78
910
UE
XT1
12
34
56
78
910
UE
XT2
12
34
56
78
910
1112
1314
1516
1718
1920
2122
2324
2526
2728
2930
3132
3334
3536
3738
3940
UE
XT4
0
D+
D-
GN
DGND1GND2
GND3GND4
IDVB
US
US
B_O
TG
CD
/DA
T3/C
S2
CLK
/SC
LK5
CM
D/D
I3
CP
19
CP
211
DA
T0/D
O7
DA
T1/R
ES
8
DA
T2/R
ES
1
VD
D4
VS
S6
WP
110
WP
212
US
D
AD
J/G
ND
INO
UT
VR
1(5V
)
#SH
DN
1
AD
J5
GN
D3
GN
D6
VIN
2V
OU
T4
VR
2(3.
3V)
PIC
32-M
X460
LCD
Rev
. A
CO
PY
RIG
HT(
C)
2009
, Olim
ex L
td.
http
://w
ww
.olim
ex.c
om/d
ev
0R
0R
+
+
+
+
+
+
+
GN
D
0R
0R
10
k 47 k
USB
POW
ER S
UPP
LY C
IRC
UIT
ACC
ELER
OM
ETER
SD/M
MC
CAR
D
UEX
T2
UEX
T1
USB
_OTG
NC
NC
CU
T!!!
7-9V
DC
-
BOARD LAYOUT
Page8
-
POWER SUPPLY CIRCUIT
PIC32-MX460LCD can take power from three sources:
- PWR connector where (7-9) V DC is applied by external power source.- +5V_VBS from USB OTG.- EXT_PWR pin 3 (BAT_PWR), where power can be applied by the GSM battery
of our module – MOD_GSM, when it is connected to the board
The board power consumption is: about 20 mA with all peripherals and MCU running at full speed.
RESET CIRCUIT
PIC32-MX460LCD reset circuit includes PIC32MX460F512L pin 13 (#MCLR), ICSP pin 1, through resistor 560 – JTAG pin 11 and UEXT40 pin 32.
CLOCK CIRCUIT
Quartz crystal 8 MHz is connected to PIC32MX460F512L pin 63 (OSC1/CLKI/RC12) and pin 64 (OSC2/CLKO/RC15) .
Quartz crystal 32.768 KHz is connected to PIC32MX460F512L pin 73 (SOSCI/CN1/RC13) and pin 74 (SOSCO/T1CK/CN0/RC14).
JUMPER DESCRIPTION
3.3V_EEnable 3.3V board power supply.Default state is closed.
3.3V_MCU_E Enable PIC32MX460F512L 3.3V power supply.Default state is closed.
INPUT/OUTPUT
TFT LCD 320x240 with touch screen
Page9
-
EXTERNAL CONNECTORS DESCRIPTION
ICSP
#Pin Signal Name
1 RST
2 3.3V
3 GND
4 PGD2
5 PGC2
6 NC
JTAG
#Pin Signal Name #Pin Signal Name
1 NC 2 GND
3 TDI 4 GND
5 TDO 6 GND
7 TMS 8 GND
9 TCK 10 GND
11 via R9 to RST 12 Removed
13 NC 14 3.3V
USB_OTG
Pin # Signal Name
1 GND
2 USBID
3 USB_D+
4 USB_D-
5 +5V_VBUS
SD/MMC
Page10
-
Pin # Signal Name
1 Pull-up
2 SD_CS
3 SPI2_MOSI
4 VDD (power supply)
5 SPI2_SCK
6 GND
7 SPI2_MISO
8 Pull-up
9 Not connected
10 Not connected
11 Not connected
12 Not connected
EXT_PWR
#Pin Signal Name
1 +5V_VBUS
2 GND
3 BAT_PWR
4 NC
5 NC
6 NC
PWR
Pin # Signal Name
1 VIN
2 GND
Page11
-
UEXT1
Pin # Signal Name
1 UEXT1_PWR
2 GND
3 USART1_TX
4 USART1_RX
5 I2C1_SCL1
6 I2C1_SDA1
7 SPI1_MISO
8 SPI1_MOSI
9 SPI1_SCK
10 SPI1_NSS
Page12
-
UEXT2
Pin # Signal Name
1 UEXT2_PWR
2 GND
3 USART2_TX
4 USART2_RX
5 I2C1_SCL2
6 I2C1_SDA2
7 SPI2_MISO
8 SPI2_MOSI
9 SPI2_SCK
10 SPI2_NSS
UEXT40
Pin # Signal Name Pin # Signal Name
1 3,3V 2 GND
3 USART1_TX 4 USART1_RX
5 I2C1_SCL1 6 I2C1_SDA1
7 SPI1_MISO 8 SPI1_MOSI
9 SPI1_SCK 10 SPI1_NSS
11 3.3V 12 GND
13 +5V 14 VIN
Page13
-
15 RA9 16 RA7
17 RD8 18 RD3
19 RD2 20 RD1
21 RD15 22 RF13
23 RF12 24 RG14
25 RG13 26 RG12
27 RB15 28 RB13
29 RB12 30 RB11
31 3.3V_A 32 RST
33 AGND 34 AN0
35 VREF+ 36 AN1
37 RB8 38 AN2
39 RB10 40 AN4
Page14
-
MECHANICAL DIMENSIONS
All measures are in Inches.
Page15
-
AVAILABLE DEMO SOFTWARE
– PIC32-MX460LCD demo.zip
Page16
-
ORDER CODE
PIC32-MX460LCD - completely assembled and tested.
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 - create December 2009
Page17
http://www.olimex.com/dev
-
Disclaimer:
© 2010 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.
Page18