You are on page 1of 33

A compact starter kit

with your favorite


microcontroller and two
mikroBUS sockets

TO OUR VALUED CUSTOMERS


I want to express my thanks to you for being interested in our products and for
having confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic
products and to constantly improve the performance thereof in order to better
suit your needs.

Nebojsa Matic
General Manager
The PIC and Windows logos and product names are trademarks of Microchip Technology and Microsoft in the U.S.A. and other countries.

Table of contents
Introduction to clicker 2 for PIC32MX

3.2 Programming with mikroProg programmer

Key features

1. Power supply

4. Buttons and LEDs

18

2. PIC32MX460F512L microcontroller

5. Power management and battery charger

20

Key microcontroller features

6. Oscillators

21

mikroProg Suite for PIC software

15
16

3. Programming the microcontroller

10

7. USB connection

23

3.1 Programming with mikroBootloader

11

8. Pads

25

step 1 Connecting clicker 2 for PIC32MX

11

9. Pinout

26

step 2 Browsing for .HEX file

12

9.1 PWM jumper selection

27

step 3 Selecting .HEX file

12

9.2 RF3/USBID jumper selection

28

step 4 Uploading .HEX file

13

10. click boards are plug and play!

29

step 5 Finish upload

14

11. Dimensions

31

Page 3

Introduction to clicker 2 for PIC32MX


Clicker 2 for PIC32MX is a
compact dev. kit with two
mikroBUS sockets for
click board connectivity.
You can use it to quickly
build your own gadgets
with unique functionalities
and features. It carries
the PIC32MX460F512L,
a 32-bit MIPS M4K core
PIC32 microcontroller, two
indication LEDs, two general
purpose buttons, a reset
button, an on/off switch, a
li-polymer battery connector,
a USB Mini-B connector and
two mikroBUS socket. A
mikroProg connector and a
2x26 pinout for interfacing
with external electronics

are also provided. The


mikroBUS connector
consists of two 1x8 female
headers with SPI, I2C, UART,
RST, PWM, Analog and
Interrupt lines as well as
3.3V, 5V and GND power
lines. Clicker 2 for PIC32MX
board can be powered over a
USB cable.
power supply
via USB cable
(5V DC)
board dimensions
60.4 x 81 mm
(2.4 x 3.2 inch)
weight
26 g (0. 057 lbs)

Page 4

Key features

12

13

1 ON/OFF switch

2 Pads for connecting external ON/OFF switch

3 32.768 KHz crystal oscillator


4 8 MHz crystal oscillator
5 PIC32MX460F512L

5
6

10

14

11

15

6 2x26 connection pads


7 mikroBUS sockets 1 and 2
8 Pushbuttons
9 Additional LEDs
10 LTC3586-1 USB power manager IC
11 Power and Charge indication LEDs
12 RESET button
13 USB mini-B connector
14 Li-Polymer battery connector
15 Programmer connector

Page 5

VCC-3.3V

C9

C10

C11

C12

C35

C36

C37

10uF

100nF

100nF

100nF

100nF

100nF

100nF

100nF

VCC-3.3V

VSYS
VCC-3.3V

Vcap

RB0-MB1_AN0
RE2-MB1_RST
RG13-MB1_CS
RG6_SPI2_SCK
RG7_SPI2_MISO
RG8_SPI2_MOSI

E1
10uF

R16

C14

C15

C16

C17

10K

22uF

1uF

10nF

1uF

3K3

VSYS

C18
100nF

RG15-STAT
RE6-GPIO

SWCD3
EN3
VOUT3
VOUT3
VIN3
VIN3
SWAB3

C20

2.2uF

2.2uF

RG6_SPI2_SCK
R9
RG7_SPI2_MISO
RG8_SPI2_MOSI
R7
RESET#
RG9-T3
PWR-EN

VCC-3.3V
L2

VCC-3.3V VCC-3.3V

2.2uH

R19
324K
C23

RA0-GPIO
RE8-MB1-INT1
RE9-MB2-INT2

C21

RB4-MB2_AN4

33pF

RB2-MB2_RST
RB1-MB2_CS
RB0-MB1_AN0

10pF

R21
15K

R22
105K

C24
300pF

LDO3V3

C31

C32

22uF

10uF

VSYS

PIC32MX460F512L
100pin TQFP

VSS
SOSCO/RC14
SOSCI/RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2/RC15
OSC1/RC12
VDD
RA5
RA4
RA3
RA2
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3

75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51

OSC32_OUT
OSC32_IN
RD0-PWM1

VCC-5V VCC-5V VCC-5V


R26
88K7
R27
16K9

VCC-5V

VCC-5V

C29

C30

C27

C28

10pF

22uF

1uF

10nF

VCC-3.3V
RB4-MB2_AN4
RB2-MB2_RST
RB1-MB2_CS
RG6_SPI2_SCK
RG7_SPI2_MISO
RG8_SPI2_MOSI

RD4-MB1-PWM5
RE8-MB1-INT1
RF2-UART1_RX
RF8-UART1_TX
RA2-I2C2_SCL
RA3-I2C2_SDA

PWM
INT
RX
TX
SCL
SDA
5V
GND

VCC-5V
AN
RST
CS
SCK
MISO
MOSI
3.3V
GND

RD9-GPIO
RD8-GPIO
RA15-INT4
RA14-INT3

32.768KHz

22pF

J1
C33

VCC-3.3

22pF

RB6-PGC2
RB7-PGD2
RESET#

OSC2
OSC1

X1

RA4-GPIO
RA3-I2C2_SDA
RA2-I2C2_SCL
USB-D_P
R28
USB-D_N
R29

C5

USB-DET
RF8-UART1_TX
RF2-UART1_RX
USB-ID-RF3

AVCC

HD1
1
2
3
4
5

VCC-3.3V
FP1

C1

C2

100nF

2.2uF

HDR1
RB15-AN15
RB14-AN14
RB13-AN13
RB11-AN11
RB10-AN10
RB9-AN9
RB8-AN8
RA14-INT3
RA15-INT4
RE9-MB2-INT2
RE8-MB1-INT1
RF12-GPIO
RD9-GPIO
RD8-GPIO
RA4-GPIO
RA9-GPIO
RF3-GPIO
RA0-GPIO
RE6-GPIO
RG6_SPI2_SCK
RG7_SPI2_MISO
RG8_SPI2_MOSI

HDR2

AN

PWM

INT

RX
TX
SCL
SDA

SCK
SDI
SDO

VCC-3.3V

mPROG

8MHz

22pF

MB2_PWM
RE9-MB2-INT2
RF4-UART2_RX
RF5-UART2_TX
RA2-I2C2_SCL
RA3-I2C2_SDA

PWM
INT
RX
TX
SCL
SDA
5V
GND

RG12-GPIO
MB2_PWM
RD0-PWM1

X2
C34

22pF

RESET#

RST

1K

VCC-BAT

T1
C3

2K2

VCC-BAT

R10
1M

100nF
R2

RF13-SENSEL

M1

R11
1K

2K2

VCC-3.3V

DMP2305U

VCC-USB
T2

VCC-3.3V
R5
10K

R8
470

clicker 2 for PIC32MX schematic

Page 6

VCC-3.3V

R3
10K

R4

J2

AVCC

RD1-PWM2
RD2-PWM3
RD3-PWM4
RD0-PWM1
RD12-GPIO
RD13-GPIO
RD5-GPIO
RD6-GPIO
RD7-GPIO
RF0-GPIO
RF1-GPIO
RG0-GPIO
RA6-GPIO
RA7-GPIO
RE0-GPIO
RG14-GPIO
RF4-UART2_RX
RF5-UART2_TX
RA2-I2C2_SCL
RA3-I2C2_SDA

VCC-3.3V

USB-ID
USB-ID-RF3
RF3-GPIO

LD3

RESET#

C6

R1

VCC
-5V
L3
2.2uH

VCC-USB

RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0

RE3-LD1

C25
100nF

LTC3586

VSYS

C19

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

RF4-UART2_RX
RF5-UART2_TX

LDO3V3

R23
1K69

VCC-USB

PWR-EN

RF13-SENSEL
RF12-GPIO
RB12-VSENSE
RB13-AN13
RB14-AN14
RB15-AN15

10K

RB6
RB7
RA9
RA10
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5

3.3uH

FAULT
R20

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

L1
C22
22uF

BAT
EN4
VOUT
VBUS
VBUS
SW
FAULT#

ILIM0
ILIM1
LDO3V3
CLPROG
NTC
VOUT4
VOUT4
SW4
MODE
FB4
FB3
VC3

VCC-USB

19
18
17
16
15
14
13

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

VSYS

32
33
34
35
36
37
38

U2
LTC3586-1

GATE
CHRG#
PROG
FB1
VIN1
SW1
SW2
VIN2
FB2
VIN4
EN1
EN2

31
30
29
28
27
26
25
24
23
22
21
20

DMP2305U

PWR-EN

U1

R18

M2

VCC-BAT

VCC-3.3

R17
1K

RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
VDD
VCAP/VDDCORE
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1

2K2

SW1
JS202011AQN

RB8-AN8
RB9-AN9
RB10-AN10
RB11-AN11

LD4B
RED

R15
RG15-STAT

VCC-3.3V

VCC-3.3V VCC-3.3V VCC-3.3V LDO3V3

RB6-PGC2
RB7-PGD2
RA9-GPIO
RA10-LD2

LDO3V3

100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76

LDO3V3
LDO3V3

VCC-5V
AN
RST
CS
SCK
MISO
MOSI
3.3V
GND

T3

VCC-3.3V

USB-DET
USB-D_N
USB-D_P
USB-ID

R6
10K
RA10-LD2

VCC-3.3V VCC-3.3V VCC-3.3V

RG9-T3

VCC-3.3V

RE4-T2

VCC-3.3V

RF1-GPIO
RF0-GPIO

VCC-3.3V

C40

RD7-GPIO
RD6-GPIO
RD5-GPIO
RD4-MB1-PWM5
RD13-GPIO
RD12-GPIO
RD3-PWM4
RD2-PWM3
RD1-PWM2

CN1
BATT
CONN

2.2uF

RE0-GPIO
RA7-GPIO
RA6-GPIO
RG0-GPIO

VCC-3.3V

VCC-BAT

C38

RE4-T2
RE3-LD1
RE2-MB1_RST
RG13-MB1_CS
RG12-GPIO
RG14-GPIO

VCC-BAT

R24 100

CN2

FP2
FERRITE

C26
10nF

1
2
3
4
5

VBUS
DD+
ID
GND
USB MINIB

R12
100K
R13
100K

RB12-VSENSE
C13
100nF

R14
100K

1. Power supply
Battery power supply

Figure 1-1: Connecting


USB power supply

You can also power the board using a Li-Polymer battery, via
on-board battery connector. On-board battery charger circuit
enables you to charge the battery over USB connection. LED
diode (RED) will indicate when battery is charging. Charging
current is ~300mA and charging voltage is 4.2V DC.
Figure 1-2: Connecting
Li-Polymer battery

USB
power supply
You can supply power to the board with a Mini-B USB cable
provided in the package. On-board voltage regulators provide
the appropriate voltage levels to each component on the board.
Power LED (GREEN) will indicate the presence of power supply.

NOTE click boards that use a 3.3V power supply can draw up to 750 mA of current, which is more current than a USB can supply
(500 mA); In those cases you would need to use the battery as the power supply, or the vsys pin on the side of the board.
Page 7

LDO3V3

RG15-STAT

LDO3V3

LD4B
RED

R15

R16

2K2

VCC-3.3V VCC-3.3V VCC-3.3V LDO3V3


C14

C15

22uF

10K

C16

1uF

10nF

VSYS

FAULT
R20

C22

10K

22uF

LDO3V3

R23
1K69
C25
100nF

LTC3586

C19

C20

2.2uF

2.2uF

19
18
17
16
15
14
13

PWR-EN

C18
100nF

L2

LDO3V3

C31

C32

22uF

10uF

1K

DMP2305U

C1

C2

100nF

2.2uF

R12
100K
R13
100K

RB12-VSENSE

VCC-BAT

R19
324K

VSYS

R14
100K

HDR1

HDR2

VCC-BAT

C38

C21

2.2uF

33pF

CN1
BATT
CONN

10pF

R21

VCC-5V VCC-5V VCC-5V

R27
16K9

VCC-3.3V
FP1

R11

RF13-SENSEL

VCC-3.3V VCC-3.3V

2.2uH

C23

R26
88K7

AVCC

VCC-BAT
M1

R10
1M

R22
105K

C24
300pF

VCC-USB

VCC
-5V

VCC-USB

VCC-BAT

R17
1K

PWR-EN

VCC-3.3V

15K

L3
2.2uH

VCC-USB

SWCD3
EN3
VOUT3
VOUT3
VIN3
VIN3
SWAB3

ILIM0
ILIM1
LDO3V3
CLPROG
NTC
VOUT4
VOUT4
SW4
MODE
FB4
FB3
VC3

3.3uH

BAT
EN4
VOUT
VBUS
VBUS
SW
FAULT#

VSYS

SW1
JS202011AQN

C13
100nF

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

VCC-USB

L1

32
33
34
35
36
37
38

U2
LTC3586-1

GATE
CHRG#
PROG
FB1
VIN1
SW1
SW2
VIN2
FB2
VIN4
EN1
EN2

31
30
29
28
27
26
25
24
23
22
21
20

DMP2305U

VSYS

1uF

VCC-3.3

3K3

PWR-EN

VCC-3.3V

R18

M2

VCC-BAT

LDO3V3

C17

VCC-5V

VCC-5V

C29

C30

C27

C28

10pF

22uF

1uF

10nF

VCC-3.3V

CN2

FP2
FERRITE

LD3

R8
470

C26
10nF

VSYS

Figure 1-3: Power supply schematic

Page 8

1
2
3
4
5

VBUS
DD+
ID
GND
USB MINIB

VCC-3.3V

VCC-3.3V

2. PIC32MX460F512L microcontroller
The PIC32MX clicker development tool comes
with the PIC32MX460F512L microcontroller.
This 32-bit MIPS M4K Core high performance
microcontroller is rich with on-chip peripherals
and features 512KB of Flash and 32KB RAM. It
has integrated full speed USB 2.0. support.

Key microcontroller features



MIPS M
4K 32-b
it core
- 80MH
z,
- 5 Stag 105 DMIPS
e Pipeli
ne, 32-b
it ALU
Trace 32
-bit
32 Core
HW
JTAG
Mul/Div Registers
Shadow
Set
Instruct
ion
Data

Prefetc
h
Bu er
Cache

32K RAM (can execute from RAM);

85 I/O pins;

SPI, I2C, A/D, UART;

16-bit, 32-bit Digital Timers;

Internal Oscillator 8MHz, 32kHz;

RTCC; etc.

16-bit
Paralle
l
Port
RTCC

Page 9

DMA
4Ch

2-wire
Debug

USB
OTG

Bus Ma
trix
Flash

105 DMIPS/ 80MHz, 32-bit MIPS M4K Core;


512K Flash (plus 12K boot Flash);

PIC32M

SRAM

Interru
pt
Controll
er

Periphe
ri

al Bus

16 Ch
10-bit
ADCs

I2C
(2)

Input
Capture
(5)
UARTs
(2)

Output
Compa
re
PWM(5
)

GPIO
(85) VREG

16-bit
Timers
(5)
SPI
Analog
(2)
Compa
rators
(2)

3. Programming the microcontroller

Figure 3-1:
PIC32MX460F512L
microcontroller

The microcontroller can be programmed in three ways:


01 Using USB HID mikroBootloader,
02 Using external mikroProg for PIC32MX programmer
03 Using external ICD2/3 programmer
Page 10

3.1 Programming with mikroBootloader


step 1 Connecting PIC32MX clicker

You can program the microcontroller with bootloader which is


preprogrammed by default. To transfer .hex file from a PC to
MCU you need bootloader software (mikroBootloader USB
HID) which can be downloaded from:
www.mikroe.com/downloads/get/2210/
clicker_2_pic32mx_bootloader_v100.zip

01

After the mikroBootloader software is downloaded, unzip it


to desired location and start it.
clicker 2 for PIC32MX Bootloader
WinRAR ZIP archive
clicker 2 for PIC32MX Bootloader
File folder

Software
File folder

mikroBootloader USB HID.exe


Bootloader tool for mikroElektron...
mikroElektronika

Figure 3-2: USB HID mikroBootloader window


01 To start, connect the USB cable, or if already connected
press the Reset button on your PIC32MX clicker. Click the
Connect button within 5s to enter the bootloader mode,
otherwise existing microcontroller program will execute.

Firmware
File folder

clicker 2 for PIC32MX PIC32MX460F512L


USB HID Bootloader v1.300.hex
HEX File

Page 11

step 2 Browsing for .HEX file

step 3 Selecting .HEX file

01
01

02

Figure 3-3: Browse for HEX

01

Figure 3-4: Selecting HEX

Click the Browse for HEX button and from a


pop-up window (Figure 3.4) choose the .HEX file
which will be uploaded to MCU memory.

Page 12

01

Select .HEX file using open dialog window.

02

Click the Open button.

step 4 Uploading .HEX file

01

01
Figure 3-5: Begin uploading

01

Figure 3-6: Progress bar

To start .HEX file bootloading click the


Begin uploading button.

01

Page 13

Progress bar enables you to monitor .HEX file


uploading.

step 5 Finish upload

01

Figure 4-8: mikroBootloader ready for next job


Figure 3-7: Restarting MCU

01 Click OK button after the uploading process is finished.


02 Press Reset button on PIC32MX clicker board and wait
for 5 seconds. Your program will run automatically.
Page 14

3.2 Programming with mikroProg programmer

GND
MCLR#
PGD
PGC
VCC 3.3V

You can also


program it
with ICD2
or ICD3 if
you reroute
the wires like
shown here.

1. NC
2. PGC
3. PGD
4. GND
5. VCC 3.3V
6. MCLR#

The microcontroller can be programmed with external


mikroProg for PIC programmer and mikroProg Suite
for PIC software. The external programmer is connected
to the development system via 1x5 connector Figure 3-9.
mikroProg is a fast USB 2.0 programmer with hardware
debugger support. It supports PIC10, dsPIC30/33, PIC24
and PIC32 devices in a single programmer. It supports
over 570 microcontrollers from Microchip.
Outstanding performance, easy operation and
elegant design are its key features.

ICD2/3
programmer

Figure 3-8:
mikroProg
connector

clicker 2 for
PIC32MX 1x5
programming
headers

Page 15

mikroProg Suite for PIC Software

The mikroProg programmer requires


special programming software called
mikroProg Suite for PIC. It can be
used for programming all Microchip
microcontroller families, including PIC10,
PIC12, PIC16, PIC18, dsPIC30/33,
PIC24 and PIC32. The software has
intuitive interface and SingleClick
programming technology. Just download
the latest version of mikroProg Suite
and your programmer is ready to program
new devices. mikroProg Suite is
updated regularly, at least four times a
year, so your programmer will be more and
more powerful with each new release.

Figure 3-9: Main window of mikroProg Suite for PIC programming software
Page 16

VCC-3.3V

Vcap

E1

100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76

10uF

75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51

OSC32_OUT
OSC32_IN

VCC-3.3V

X2
C34

32.768KHz

22pF

OSC2
OSC1

RB6
RB7
RA9
RA10
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5

the programming
connector, you have
to solder the provided
1x5 male header to
the programming
pads (HD1).

VSS
SOSCO/RC14
SOSCI/RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2/RC15
OSC1/RC12
VDD
RA5
RA4
RA3
RA2
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

NOTE Before attaching

PIC32MX460F512L
100pin TQFP

C33
22pF

X1
C5

8MHz

22pF

VCC-3.3
RB6-PGC2
RB7-PGD2
RESET#

C6
22pF

HD1
1
2
3
4
5

VCC-3.3V

C40

C9

10uF

100nF

VCC-3.3V

VCC-3.3V

C10

C11

100nF

100nF

VCC-3.3V

VCC-3.3V

C12

C35

100nF

100nF

VCC-3.3V

VCC-3.3V

C36

C37

100nF

100nF

mPROG
RB6-PGC2
RB7-PGD2

RESET#

RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0

RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
VDD
VCAP/VDDCORE
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1

U1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

AVCC

Figure 3-10: mikroProg connection schematic


Page 17

4. Buttons and LEDs


The board also contains a 01 reset
button and a pair of 02 buttons
and 03 LEDs, as well as
an ON/OFF switch. The
Reset button is used
to manually reset the
microcontroller by generating
a low voltage level on the
microcontrollers reset pin. LEDs can
be used for visual indication of the logic
state on two pins (RE3) and (RA10).
An active LED indicates that a logic
high (1) is present on the pin. Pressing
any of the two buttons can change
the logic state of the microcontroller
pins (RE4 and RG9) from logic high
(1) to logic low (0). In addition to the
onboard ON/OFF switch, two pads
(EXT and PSW) allow you to connect
your own external switch.

03
Figure 4-1:
Two LEDs, two buttons
and a reset button
Page 18

02

01

RE4-T2
RE3-LD1

VCC-3.3V
VCC-3.3V

Vcap

E1
R4

RESET#

10uF

R3
10K
RST

1K

100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76

T1

VCC-3.3V

VCC-3.3V

C12

C35

100nF

100nF

VCC-3.3V

VCC-3.3V

C36

C37

100nF

100nF

RESET#
RG9-T3

PIC32MX460F512L
100pin TQFP

X2
32.768KHz

22pF

C33
22pF

AVCC

VCC-3.3V
FP1

OSC1

X1
C5

8MHz

22pF

C6

C1

C2

100nF

2.2uF

22pF

R1

R2

2K2

2K2
T2

VCC-3.3V
R5
10K

AVCC

Figure 4-2: Other modules connection schematic


Page 19

T3

VCC-3.3V
R6
10K

RA10-LD2

100nF

C34

RG9-T3

100nF

OSC32_OUT
OSC32_IN

RE4-T2

C11

75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51

RE3-LD1

C10

VSS
SOSCO/RC14
SOSCI/RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2/RC15
OSC1/RC12
VDD
RA5
RA4
RA3
RA2
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3

RF4-UART2_RX
RF5-UART2_TX

VCC-3.3V

RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0

RF13-SENSEL
RF12-GPIO
RB12-VSENSE
RB13-AN13
RB14-AN14
RB15-AN15

VCC-3.3V

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

RB8-AN8
RB9-AN9
RB10-AN10
RB11-AN11

100nF

RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
VDD
VCAP/VDDCORE
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1

C9

10uF

RB6
RB7
RA9
RA10
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5

C40

C3
100nF

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

VCC-3.3V

RB6-PGC2
RB7-PGD2
RA9-GPIO
RA10-LD2

VCC-3.3V

U1

5. Power management and battery charger


Clicker 2 for PIC18FJ features
LTC3586-1, a highly integrated power
management and battery charger IC
that includes a current limited switching
PowerPath manager. LTC3586 also
enables battery charging over a USB
connection.

Figure 5-1:
power
management
and battery
charger IC
Page 20

6. Oscillators

Board is equipped with 8MHz and


32.7kHz crystal oscillators (X1
and X2) that provide external clock
waveforms to the microcontroller
OSC2 and OSC1 (X1) and SOSCO and
SOSCI (X2) pins. This base frequency
is suitable for further clock multipliers
and ideal for generation of necessary
USB clock, which ensures proper
operation of bootloader and your
custom USB-based applications.

Figure 6-1:
32.768kHz
crystal
oscillator
module (X2)

Figure 6-2:
8MHz
crystal
oscillator
module (X1)
Page 21

VCC-3.3V

Vcap

E1

100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76

10uF

C9

10uF

100nF

VCC-3.3V

VCC-3.3V

C10

C11

100nF

100nF

VCC-3.3V

VCC-3.3V

C12

C35

100nF

100nF

VCC-3.3V

VCC-3.3V

C36

C37

100nF

100nF

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0

PIC32MX460F512L
100pin TQFP

VSS
SOSCO/RC14
SOSCI/RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2/RC15
OSC1/RC12
VDD
RA5
RA4
RA3
RA2
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3

75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51

OSC32_OUT
OSC32_IN

X2
C34

32.768KHz

22pF

OSC2
OSC1

X1
C5

8MHz

22pF

it is purposely left out, because of the schematics clarity.


Page 22

C6
22pF

AVCC

VCC-3.3V
FP1

C1

C2

100nF

2.2uF

AVCC

NOTE The use of crystal in all other schematics is implied even if

C33
22pF

RB6
RB7
RA9
RA10
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5

C40

RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
VDD
VCAP/VDDCORE
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1

U1

VCC-3.3V

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

VCC-3.3V

Figure 6-3:
Crystal
oscillator
schematic

7. USB connection
PIC32MX460F512L microcontrollers has an
integrated USB module, which enables you to
implement USB communication functionality to
your clicker 2 board. Connection with target USB
host is done over a Mini-B USB connector which
is positioned next to the battery connector.

Figure 7-1:
Connecting USB
cable to clicker 2

Page 23

VCC-3.3V

Vcap

E1

VCC-USB

10uF
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76

USB-DET
USB-D_N
USB-D_P
USB-ID

10uF

100nF

VCC-3.3V

VCC-3.3V

C10

C11
100nF

VCC-3.3V

VCC-3.3V

C12

C35

100nF

100nF

VCC-3.3V

VCC-3.3V

C36

C37

100nF

100nF

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0

RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
VDD
VCAP/VDDCORE
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1

C9

PIC32MX460F512L
100pin TQFP

VSS
SOSCO/RC14
SOSCI/RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2/RC15
OSC1/RC12
VDD
RA5
RA4
RA3
RA2
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3

1
2
3
4
5

VBUS
DD+
ID
GND
USB MINIB

OSC32_OUT
OSC32_IN

X2
C34

32.768KHz

22pF

C33
22pF

AVCC

VCC-3.3V
FP1

OSC2
OSC1

X1
C5

8MHz

22pF
R28
R29

USB-DET
USB-ID-RF3

USB-ID
USB-ID-RF3
RF3-GPIO

Figure 7-2: USB module connection schematic

C6
22pF

USB-D_P
USB-D_N

AVCC

Page 24

CN2

FP2
FERRITE

C26
10nF
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51

RB6
RB7
RA9
RA10
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5

C40

100nF

U1

VCC-3.3V

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

VCC-3.3V

R24 100

J2

C1

C2

100nF

2.2uF

RD7-GPIO
RD6-GPIO
RD5-GPIO
RD4-MB1-PWM5
RD13-GPIO
RD12-GPIO
RD3-PWM4
RD2-PWM3
RD1-PWM2

VCC-3.3V

RF1-GPIO
RF0-GPIO

RE0-GPIO
RA7-GPIO
RA6-GPIO
RG0-GPIO

RE4-T2
RE3-LD1
RE2-MB1_RST
RG13-MB1_CS
RG12-GPIO
RG14-GPIO

8. Pads
AVCC
Vcap

VCC-3.3V
FP1

E1
C1

C2

100nF

2.2uF

100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76

10uF

RG15-STAT

HDR1

AN

INT

RG6_SPI2_SCK
R9
RG7_SPI2_MISO
RG8_SPI2_MOSI
R7
RESET#
RG9-T3
RA0-GPIO
RE8-MB1-INT1
RE9-MB2-INT2
RB4-MB2_AN4

SCK
SDI
SDO

RB2-MB2_RST
RB1-MB2_CS
RB0-MB1_AN0

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

RG15
VDD
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0

PIC32MX460F512L
100pin TQFP

VSS
SOSCO/RC14
SOSCI/RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
VSS
OSC2/RC15
OSC1/RC12
VDD
RA5
RA4
RA3
RA2
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3

75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51

HDR2

OSC32_OUT
OSC32_IN
RD0-PWM1

X2
C34

RD9-GPIO
RD8-GPIO
RA15-INT4
RA14-INT3

32.768KHz

22pF

C33
22pF

OSC2
OSC1

PWM

X1

RA4-GPIO
RA3-I2C2_SDA
RA2-I2C2_SCL
USB-D_P
R28
USB-D_N
R29
USB-DET
RF8-UART1_TX
RF2-UART1_RX
USB-ID-RF3

C5

8MHz

22pF

C6
22pF

RX
TX
SCL
SDA

USB-ID
USB-ID-RF3
RF3-GPIO
J2

RESET#

RD1-PWM2
RD2-PWM3
RD3-PWM4
RD0-PWM1
RD12-GPIO
RD13-GPIO
RD5-GPIO
RD6-GPIO
RD7-GPIO
RF0-GPIO
RF1-GPIO
RG0-GPIO
RA6-GPIO
RA7-GPIO
RE0-GPIO
RG14-GPIO
RF4-UART2_RX
RF5-UART2_TX
RA2-I2C2_SCL
RA3-I2C2_SDA

VCC-3.3V

Pads HDR2

RF13-SENSEL
RF12-GPIO
RB12-VSENSE
RB13-AN13
RB14-AN14
RB15-AN15

RB8-AN8
RB9-AN9
RB10-AN10
RB11-AN11

RB6-PGC2
RB7-PGD2
RA9-GPIO
RA10-LD2

AVCC

RF4-UART2_RX
RF5-UART2_TX

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

VCC-3.3V

RE6-GPIO

RB6
RB7
RA9
RA10
AVDD
AVSS
RB8
RB9
RB10
RB11
VSS
VDD
RA1
RF13
RF12
RB12
RB13
RB14
RB15
VSS
VDD
RD14
RD15
RF4
RF5

RB15-AN15
RB14-AN14
RB13-AN13
RB11-AN11
RB10-AN10
RB9-AN9
RB8-AN8
RA14-INT3
RA15-INT4
RE9-MB2-INT2
RE8-MB1-INT1
RF12-GPIO
RD9-GPIO
RD8-GPIO
RA4-GPIO
RA9-GPIO
RF3-GPIO
RA0-GPIO
RE6-GPIO
RG6_SPI2_SCK
RG7_SPI2_MISO
RG8_SPI2_MOSI

RE4
RE3
RE2
RG13
RG12
RG14
RE1
RE0
RA7
RA6
RG0
RG1
RF1
RF0
VDD
VCAP/VDDCORE
RD7
RD6
RD5
RD4
RD13
RD12
RD3
RD2
RD1

U1

VSYS

VCC-3.3V

VCC-3.3V

VCC-3.3V

C40

C9

C10

C11

C12

C35

C36

C37

10uF

VCC-3.3V

100nF

VCC-3.3V

100nF

100nF

100nF

100nF

100nF

100nF

Figure 8-1: Connecting pads schematic

VCC-3.3V VCC-3.3V VCC-3.3V

Pads HDR1

Most microcontroller pins are available for further connectivity via two 1x26 rows of connection
pads on both sides of the clicker 2 for PIC32MX board. They are designed to match additional
shields, such as Battery Boost shield, Gaming, PROTO shield and others.
Page 25

9. Pinout
Reset pin
Reference Ground

PWM lines

Digital I/O lines

RX
TX
SCL
I2C2 Lines
SDA
3.3V power supply
Reference Ground

UART1 Lines

RST
GND

VSYS
GND
RB15
RB14
RB13
RB11
RB10
RB9
RB8
RA14
RA15
RE9
RE8
RF12
RD9
RD8
RA4
RA9
RF3
RA0
RE6
RG6
RG7
RG8
3.3V
GND

RD1
RD2
RD3
RD0
RD12
RD13
RD5
RD6
RD7
RF0
RF1
RG0
RA6
RA7
RE0
RG14
RF4
RF5
RA2
RA3
3.3V
GND

Pin functions
Digital lines

System power supply


Reference Ground

Analog Lines

Interrupt Lines

Digital I/O lines

SCK
SDI
SPI1 Lines
SDO
3.3V power supply
Reference Ground
Pin functions

Analog Lines

Interrupt Lines

SPI Lines
Page 26

I2C Lines

UART lines

PWM lines

9.1 PWM jumper selection


Clicker 2 for PIC32MX employs a solution to optimize

Analog line

the use of available pins and MCU I/Os. The PWM


SEL jumper (Figure 9-2) enables two modes of
use for the second available PWM line:

Digital lines*

1 The default position of the jumper is for


applications when youre not using the PWM line on
the 1x26 pinout on the right side of the board. This
keeps this PWM available through mikroBUS 2
If you resolder the jumper into the second
position, it would turn the PWM line on mikroBUS
2 into a GPIO. You would use this in scenarios
where you already utilized the PWM through the
1x26 pinout (which would make the PWM pin on
mikroBUS 2 unusable)

SCK
MISO
MOSI
3.3V power supply
Reference ground
SPI2
lines

Analog line
Digital lines*
SCK
MISO
MOSI
3.3V power supply
Reference ground
SPI2
lines

RB0
RE2
RG13
RG6
RG7
RG8
3.3V
GND

RD4
RE8
RF2
RF8
RA2
RA3
5V
GND

PWM line
Interrupt line
RX
UART1 lines
TX
SCL
I2C2 lines
SDA
5V power supply
Reference ground

RB4
RB2
RB1
RG6
RG7
RG8
3.3V
GND

RD0
RE9
RF4
RF5
RA2
RA3
5V
RD5

PWM line
Interrupt line
RX
UART2 lines
TX
SCL
I2C2 lines
SDA
5V power supply
Reference ground

Figure 9-1: mikroBUS individual and shared lines

Figure 9-2:
PWM SEL jumper

9.2 RF3/USBID Jumper selection


Clicker 2 for PIC32MX employs a solution to
optimize the use of available pins and MCU I/Os.
The PWM SEL jumper (Figure 9-2) enables two
modes of use for the second available PWM line:

1 To use RF3 as a GPIO, keep the jumper in the


default position (connected to the corresponding
pin on the 1x26 connection pad, see page 26)
2 To connect the RF3 MCU pin to USB-ID (one of
the four pins on the USB port), resolder the RF3 SEL
jumper (zero-ohm resistor) to the other position.

Figure 9-3:
RF3/USBID jumper

10. click boards are plug and play!


Up to now, MikroElektronika
has released more than a 100
mikroBUS compatible click
boards. On the average, one
click board is released per week.
It is our intention to provide you
with as many add-on boards as
possible, so you will be able to
expand your development board
with additional functionality.
Each board comes with a set of
working example code. Please
visit the click boards webpage
for the complete list of currently
available boards:
www.mikroe.com/click

Figure 10-1:
clicker 2 for PIC32MX
driving click boards
Page 29

RFid click

Relay click

8x8 click

FM click

Bluetooth2 click

Thunder click

USB SPI click

BarGraph click

7seg click

THERMO click

Gyro click

EEPROM click

LightHz click

Pressure click

Page 30

11. Dimensions

Page 31

DISCLAIMER
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated
as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval
system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can
be printed for private or local use, but not for distribution. Any modification of this manual is prohibited.
MikroElektronika provides this manual as is without warranty of any kind, either expressed or implied, including, but not limited to, the implied
warranties or conditions of merchantability or fitness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall
MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including
damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual
or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information
contained in this manual at any time without prior notice, if necessary.

HIGH RISK ACTIVITIES


The products of MikroElektronika are not fault tolerant nor designed, manufactured or intended for use or resale as on line control
equipment in hazardous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation
or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead
directly to death, personal injury or severe physical or environmental damage (High Risk Activities). MikroElektronika and its suppliers
specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.

TRADEMARKS
The MikroElektronika name and logo, mikroC, mikroBasic, mikroPascal, Visual TFT, Visual GLCD, mikroProg, Ready, MINI, mikroBUS, EasyPIC,
EasyAVR, Easy8051, click boards and mikromedia are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their
respective companies. All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their
respective companies, and are only used for identification or explanation and to the owners benefit, with no intent to infringe.
Copyright 2014 MikroElektronika. All Rights Reserved.
Page 32

If you want to learn more about our products, please visit our web site at
www.mikroe.com
If you are experiencing some problems with any of our products or just need
additional information, please place your ticket at www.mikroe.com/support
If you have any questions, comments or business proposals, do not hesitate to
contact us at office@mikroe.com
Clicker 2 for PIC32MX manual
ver 1.02

0100000070901

You might also like