Digilent chipKIT MX3 Reference Manual Download Page 1

 

1300 Henley Court 

Pullman, WA 99163 

509.334.6306 

www.digilentinc.com 

chipKIT

™ MX3 Board Reference Manual

 

 

Revised October 11, 2013 
This manual applies to the chipKIT MX3 rev. B 

 

DOC#: 502-297 

Copyright Digilent, Inc. All rights reserved. 

Other product and company names mentioned may be trademarks of their respective owners.

 

Page 

1

 of 

24

 

 

 

Overview 

chipKIT MX3 is the new name for Cerebot MX3. This board retains all functionality of the Cerebot MX3. 

The chipKIT MX3 is a microcontroller development board based on the Microchip PIC32MX320F128H, a member of 
the 32-bit PIC32 microcontroller family. It is compatible with Digilent's line of Pmods™, and is suitable for use with 
the Microchip® MPLAB

®

 IDE tools. The chipKIT MX3 is also compatible for use with the chipKIT MPIDE development 

environment. chipKIT MPIDE is a PIC32 based system compatible with many existing Arduino™ code examples, 
reference materials, and other resources.   

The chipKIT MX3 is designed to be easy to use and suitable for beginners to advanced users for experimenting with 
electronics and embedded control systems. It is intended to be used with either the multi-platform integrated 
development environment (MPIDE, a modified Arduino IDE) or the Microchip MPLAB IDE. The kit contains 
everything needed to start developing embedded applications using the MPIDE. In order to use the MPLAB IDE, an 
additional programming/debugging device, such as a Microchip PICkit™3 is required. 

The chipKIT MX3 provides 42 I/O pins that support a number of peripheral functions, such as UART, SPI, and I

2

ports, as well as five pulse width modulated outputs and five external interrupt inputs. Eleven of the I/O pins can 
be used as analog inputs in addition to their use as digital inputs and outputs. 

The chipKIT MX3 can be powered via USB, an external power supply that may be either an AC-DC power adapter, 
or batteries.

 

 

 

The chipKIT MX3 board. 

 

          Features include: 
 

 

Microcontroller: PIC32MX320F128H 

 

Flash Memory: 128K 

 

RAM Memory: 16K 

 

Operating Voltage: 3.3V 

 

Max Operating Frequency: 80Mhz 

 

Typical operating current: 75mA 

 

Input Voltage (recommended): 7V to 15V 

 

Input Voltage (maximum): 20V 

 

I/O Pins: 42 total 

 

Analog Inputs: 12 

 

Analog input voltage range: 0V to 3.3V 

 

DC Current per pin: +/-18mA 

 

Summary of Contents for chipKIT MX3

Page 1: ...for experimenting with electronics and embedded control systems It is intended to be used with either the multi platform integrated development environment MPIDE a modified Arduino IDE or the Microchip MPLAB IDE The kit contains everything needed to start developing embedded applications using the MPIDE In order to use the MPLAB IDE an additional programming debugging device such as a Microchip PI...

Page 2: ...th the MPIDE system version 20111209 or later The MPIDE uses a serial communications port to communicate with a boot loader running in the target board The serial port on the MX3 board is implemented using an FTDI FT232R USB serial converter Before attempting to use the MPIDE to communicate with the MX3 the appropriate USB device driver must be installed The chipKIT MX3 board uses a standard mini ...

Page 3: ...use of external programming hardware Typically this will be a Microchip PICkit3 but can be any other tool that supports the same connection interface as the PICkit3 and supports the PIC32MX3XX processor family Connector JP3 on the left side of the board is used to connect to the Microchip hardware development tool This connector is not loaded at the factory but can be installed by the user if desi...

Page 4: ...ddition to this reference manual The chipKIT MX3 Schematic available on the chipKIT MX3 product page on the Digilent web site www digilentinc com The PIC32MX3XX 4XX Family Data Sheet and the PIC32MX Family Reference Manual available from the Microchip web site www microchip com Additional reference material for the MPIDE system is included in the MPIDE software download and on line in the chipKIT ...

Page 5: ...omplished by placing the jumper in the BYP position The forward drop across the MCP1725 is typically 210mV 350mV max at 500mA output With JP2 in the BYP position this will allow correct operation of the 3 3V power supply from an input voltage down to 3 5V This allows powering the board from batteries and other lower voltage power sources In this case the VCC5V0 power bus will not be powered at 5V ...

Page 6: ...per row of pins are numbered 1 6 left to right when viewed from the top of the board and the lower row of pins are numbered 7 12 left to right This is in keeping with the convention that the upper and lower rows of pins can be considered to be two six pin connectors stacked When viewed from the end of the connector pin 1 is the upper right pin and pin 7 is immediately below it closer to the PCB Ea...

Page 7: ... microcontroller some of the I O Ports are not present and not all 16 bits are present in all I O Ports Each I O Port has four control registers TRIS LAT PORT and ODC The registers for I O Port A are named TRISA LATA PORTA and ODCA The registers for the other I O Ports are named similarly The TRIS register is used to set the pin direction Setting a TRIS bit to 0 makes the pin an output Setting the...

Page 8: ... the LEDs are accessed as digital pins 42 LD4 and 43 LD5 or preferably using the symbols PIN_LED1 and PIN_LED2 4 2 5V Signal Compatibility The PIC32 microcontroller operates at 3 3V And the I O pins provide 3 3V logic levels It is possible in some circumstances to use the chipKIT MX3 to operate with 5V logic devices There are two issues to consider when dealing with 5V compatibility for 3 3V logic...

Page 9: ...le to select numerous multiples or divisions of the 8Mhz oscillator to produce CPU operating frequencies up to 80Mhz The clock circuit PLL provides an input divider multiplier and output divider The external clock frequency 8Mhz is first divided by the input divider value selected This is multiplied by the selected multiplier value and then finally divided by the selected output divider The result...

Page 10: ...wing pins U1CTS JB 01 U1TX JB 02 U1RX JB 03 U1RTS JB 04 U2CTS JC 01 U2TX JC 02 U2RX JC 03 U2RTS JC 04 Some of the pins on UART1 and SPI1 are shared on the PIC32 microcontroller This means that UART1 and SPI1 can t both be used at the same time Detailed information about the operation of the UART peripherals can be found in the PIC32 Family Reference Manual Section 21 UART The USB Serial converter ...

Page 11: ...and SPI2 is accessed via Pmod connector JE RD9 JB 01 used for SS output SDO1 JB 02 SDI1 JB 03 SCK1 JB 04 SS2 JE 01 MOSI JE 02 MISO JE 03 SCK2 JE 04 SPI1 is only laid out to support use as an SPI master To use SPI1 as a slave device it is necessary to use external wiring to connect the signals appropriately When using SPI1 as a slave device the SS1 signal is obtained from Pmod connector JD pin 1 JD...

Page 12: ...vices on the bus actively drive the signals low The high state of the I 2 C signals is achieved by pull up resistors when no device is driving the lines low One device on the I 2 C bus must provide the pull up resistors On the chipKIT MX3 I2C1 provides selectable pull up resistors that can be enabled or disabled via jumper blocks JP1 and JP10 near Pmod connector JA The pull ups are enabled by inst...

Page 13: ...6 JD 07 digital pin 28 RB12 A7 JD 10 digital pin 31 RB13 A8 JE 08 digital pin 37 RB5 A9 JE 09 digital pin 38 RB4 A10 JE 10 digital pin 39 RB3 10 A D Converter Reference The PIC32 microcontroller provides two reference inputs to the analog to digital converter Vref is used set the lower reference level and Vref is used to set the upper reference level These references can be connected to internal r...

Page 14: ...arious modes of operation The count register counts cycles of the clock source selected via the control register This clock source can be the peripheral bus clock or a division of the peripheral bus clock via a prescaler divider The period register can be used to generate an interrupt and or reset the count register when a predetermined value is reached For detailed information on the operation of...

Page 15: ... of an associated pin When the pin changes state the current value of the timer is captured The input capture units can be used with either Timer2 or Timer3 The input capture unit can be programmed to be sensitive to either a rising edge a falling edge or both edges on the input pin An interrupt can also be signaled when an input capture is triggered Each input capture has a four level deep FIFO t...

Page 16: ...ler I O port and bit number INT0 JB 04 digital pin 11 RF6 INT1 JE 07 digital pin 36 RD8 INT2 JB 01 digital pin 8 RD9 INT3 JD 03 digital pin 26 RD10 INT4 JD 09 digital pin 30 RD11 15 RTCC The PIC32 microcontroller contains a low frequency oscillator and Real Time Clock Calendar RTCC circuit that can be used to maintain time and date information The operation of the RTCC requires a 32 768Khz frequen...

Page 17: ...er Connector This is a 5 5x2 5mm coaxial power connector used to provide external power to the board It is wired as center positive The maximum recommended operating voltage is 15V DC JP1 USB Serial converter reset disconnect This jumper is used to disconnect the USB serial converter from the MCLR pin used to reset the PIC32 microcontroller The shorting block on this jumper can be removed if the U...

Page 18: ...em PIC32 Configuration Settings Oscillator Settings pragma config FNOSC PRIPLL Oscillator selection pragma config POSCMOD XT Primary oscillator mode pragma config FPLLIDIV DIV_2 PLL input divider pragma config FPLLMUL MUL_20 PLL multiplier pragma config FPLLODIV DIV_1 PLL output divider pragma config FPBDIV DIV_8 Peripheral bus clock divider pragma config FSOSCEN OFF Secondary oscillator enable Cl...

Page 19: ... AN5 CN7 RB5 A8 12 JE 09 38 RB04 C1IN AN4 CN6 RB4 A9 13 JE 10 39 RB03 C2IN AN3 CN5 RB3 A10 14 JD 01 24 RB02 C2IN AN2 SS1 CN4 RB2 A4 15 JC 08 21 RB01 PGC1 AN1 VREF CVREF CN3 RB1 A3 16 JC 07 20 RB00 PGED1 PMA6 AN0 VREF CVREF CN 2 RB0 A2 17 N A N A RB06 PGEC2 AN8 OCFA RB6 18 N A N A RB07 PGED2 AN7 RB7 19 N A N A AVDD 20 N A N A AVSS 21 JC 01 16 RB08 U2CTS C1OUT AN8 RB8 A0 22 JD 04 27 RB09 PMA7 C2OUT ...

Page 20: ...D9 44 JD 03 26 RD10 IC3 PMCS2 PMA15 INT3 RD10 45 JD 09 30 RD11 IC4 PMCS1 PMA14 INT4 RD11 46 JC 09 22 RD00 OC1 RD0 PIN_OC1 47 N A N A RC13 SOSCI CN1 RC13 X2 secondary oscillator 48 N A N A RC14 SOSCO T1CK CN0 RC14 X2 secondary oscillator 49 JC 10 23 RD01 OC2 RD1 PIN_OC2 50 JD 02 25 RD02 OC3 RD2 PIN_OC3 51 JD 08 29 RD03 OC4 RD3 PIN_OC4 52 JB 09 14 RD04 PMWR OC5 IC5 CN13 RD4 PIN_OC5 53 JB 08 13 RD05 ...

Page 21: ...3 RD05 PMRD CN14 RD5 52 JB 09 14 RD04 PMWR OC5 IC5 CN13 RD4 PIN_OC5 55 JB 10 15 RD07 CN16 RD7 21 JC 01 16 RB08 U2CTS C1OUT AN8 RB8 A0 32 JC 02 17 RF05 PMA8 U2TX SCL2 CN18 RF5 31 JC 03 18 RF04 PMA9 U2RX SDA2 CN17 RF4 29 JC 04 19 RB14 PMALH PMA1 U2RTS AN14 RB14 A1 16 JC 07 20 RB00 PGED1 PMA6 AN0 VREF CVREF CN2 RB0 A2 15 JC 08 21 RB01 PGC1 AN1 VREF CVREF CN3 RB1 A3 46 JC 09 22 RD00 OC1 RD0 PIN_OC1 49...

Page 22: ..._LED1 LD4 59 N A 43 RF01 RF1 PIN_LED2 LD5 7 N A N A MCLR 9 N A N A VSS 10 N A N A VDD 17 N A N A RB06 PGEC2 AN8 OCFA RB6 18 N A N A RB07 PGED2 AN7 RB7 19 N A N A AVDD 20 N A N A AVSS 25 N A N A VSS 26 N A N A VDD 38 N A N A VDD 39 N A N A RC12 OSC1 CLKI RC12 X1 system clock oscillator 40 N A N A RC15 OSC2 CLKO RC15 X1 system clock oscillator 41 N A N A VSS 47 N A N A RC13 SOSCI CN1 RC13 X2 seconda...

Page 23: ...N10 RB10 24 N C N C RB11 TDO PMA12 AN11 RB11 27 JD 07 28 RB12 TCK PMA11 AN12 RB12 A6 28 JD 10 31 RB13 TDI PMA10 AN13 RB13 A7 29 JC 04 19 RB14 PMALH PMA1 U2RTS AN14 RB14 A1 30 N C N C RB15 PMALL PMA0 AN15 OCFB CN12 RB15 39 N A N A RC12 OSC1 CLKI RC12 X1 system clock oscillator 47 N A N A RC13 SOSCI CN1 RC13 X2 secondary oscillator 48 N A N A RC14 SOSCO T1CK CN0 RC14 X2 secondary oscillator 40 N A N...

Page 24: ... JB 03 10 RF02 U1RX SDI1 RF2 33 JB 02 9 RF03 U1TX SDO1 RF3 31 JC 03 18 RF04 PMA9 U2RX SDA2 CN17 RF4 32 JC 02 17 RF05 PMA8 U2TX SCL2 CN18 RF5 35 JB 04 11 RF06 U1RTS BCLK1 SCK1 INT0 RF6 37 J2 1 J2 2 41 RG02 SCL1 RG2 36 J2 3 J2 4 40 RG03 SDA1 RG3 4 JE 04 35 RG06 SCK2 PMA5 CN8 RG6 5 JE 03 34 RG07 SDI2 PMA5 CN8 RG7 JP6 in M position 6 JE 02 33 RG08 SDO2 PMA3 CN10 RG8 JP8 in M position 8 JE 01 32 RG09 S...

Page 25: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Digilent 410 297P KIT 410 297 ...

Reviews: