300 Henley Court Pullman, WA 99163 509.334.6306 www.digilentinc.com chipKIT™ Pro MX7 Board Reference Manual Revised January 3, 2014 This manual applies to the chipKIT Pro MX7 rev. B and C Overview chipKIT Pro MX7is the new name for Cerebot MX7. This board retains all functionality of the Cerebot MX7. The chipKIT Pro MX7 is a microcontroller development board based on the Microchip® PIC32MX795F512L, a member of the 32-bit PIC32 microcontroller family.
chipKIT™ Pro MX7 Board Reference Manual Features of the PIC32MX795F512L include: chipKIT Pro MX7 Circuit Diagram 512KB internal program flash memory 128KB internal SRAM memory USB 2.
chipKIT™ Pro MX7 Board Reference Manual 1.1 Using the chipKIT Pro MX7 with Microchip Development Tools The Microchip MPLAB IDE or the MPLAB X IDE can be used to program and debug code running on the chipKIT Pro MX7 board using the built-in programming/debugging circuit. The MPLAB development environment can be downloaded from the Microchip website. This software suite includes a free evaluation copy of the Microchip C32 compiler for use with the PIC32 microcontroller family.
chipKIT™ Pro MX7 Board Reference Manual Use the "File Import…" dialog box to navigate to and select the boot loader programming downloaded from the Digilent web site. The file name will be something like: chipKIT_Bootloader_MX7.hex Use the "Programmer.Program" command to program all memories on the device. 1.
chipKIT™ Pro MX7 Board Reference Manual The PIC32MX5XX/6XX/7XX Family Data Sheet and the PIC32MX Family Reference Manual are available from the Microchip web site: www.microchip.com Reference material for the MPIDE system is included in the MPIDE software download and on-line in the chipKIT wiki. Help with questions and problems using the board with the MPIDE software can also be obtained in the chipKIT forums: www.github.com/chipKIT32 (software download) www.chipKIT.org/wiki www.chipKIT.
chipKIT™ Pro MX7 Board Reference Manual When the power switch is turned on, transistor Q7A attempts to drive the ON/OFF pin of IC9 high to enable the main power supply. If the licensed debugger is connected to an active USB port, it initially disables the main power supply by holding the PWR_ON signal low. This causes Q8B to hold the ON/OFF pin of IC9 low, forcing the main supply off.
chipKIT™ Pro MX7 Board Reference Manual 2.1 RESET A reset button is at the upper right corner of the board. Pressing this button will reset the PIC32 microcontroller. 3 Pmod™ Connectors The chipKIT Pro MX7 has six connectors for connecting Digilent Pmod peripheral modules. The Pmod connectors labeled JA–JF, are 2x6 pin, right-angle, female pin header connectors. Each connector has an associated power select jumper block labeled JPA–JPF.
chipKIT™ Pro MX7 Board Reference Manual Digilent Pmod peripheral modules can either be plugged directly into the connectors on the chipKIT Pro MX7 or attached via cables. Digilent has a variety of Pmod interconnect cables available. See the Pinout Tables in Appendix C for more information about connecting peripheral modules and other devices to the chipKIT Pro MX7. These tables describe the mapping between pins on the PIC32MX795 microcontroller and the pins on the various connectors.
chipKIT™ Pro MX7 Board Reference Manual The MPIDE system uses logical pin numbers to identify digital I/O pins on the connectors. These pin numbers start with pin 0 and are numbered up consecutively. On the chipKIT Pro MX7, pin numbers 0-47 are used to access the pins on the Pmod connectors and pin numbers 2 55-58 are used for the signal pins on the I C connectors, J7 and J8. The pin numbers are assigned so that connector JA pin 1 (JA-01) is digital pin 0, JA pin 2 (JA-02) is digital pin 1, and so on.
chipKIT™ Pro MX7 Board Reference Manual LD1 – PIN_LED1, pin 51, RG12 LD2 – PIN_LED2, pin 52, RG13 LD3 – PIN_LED3, pin 53, RG14 LD4 – PIN_LED4, pin 54, RG15 4.2 5V Signal Compatibility The PIC32 microcontroller operates at 3.3V and the I/O pins provide 3.3V logic levels; however, it is possible in some circumstances to use the chipKIT Pro MX7 to operate with 5V logic devices. There are two issues to consider when dealing with 5V compatibility for 3.3V logic. The first is protection of 3.
chipKIT™ Pro MX7 Board Reference Manual Using the internal system clock phase-locked loop (PLL), it is possible to select numerous multiples or divisions of the 8 MHz oscillator to produce CPU operating frequencies up to 80 MHz. The clock circuit PLL provides an input divider, multiplier, and output divider. The external clock frequency (8 MHz) 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.
chipKIT™ Pro MX7 Board Reference Manual PIC32MX795 device is programmed at the factory to have a unique MAC address that will be loaded by default when the device is reset. Digilent provides another unique MAC address that can be used as well. This address is printed on a sticker attached to the bottom of the board. The Digilent provided MAC address is a twelve digit hexadecimal number of the form: 00183Exxxxxx, where xxxxxx represents six hexadecimal digits.
chipKIT™ Pro MX7 Board Reference Manual 7 USB Interface The PIC32MX795 microcontroller contains a USB 2.0 Compliant, Full Speed Device and On-The-Go (OTG) controller. This controller provides the following features: USB full speed host and device support Low speed host support USB OTG support Endpoint buffering anywhere in system RAM Integrated DMA to access system RAM and Flash memory.
chipKIT™ Pro MX7 Board Reference Manual When operating as a USB host, the PIC32MX795 microcontroller controls application of power to the connected device via the VBUSON control pin. The VBUSON signal is connected to the circuit net labeled P32_VBUSON in the schematic. Bus power is applied to the attached USB device by driving the VBUSON pin high. Power is removed from the device by driving the VBUSON pin low. The VBUSON pin is accessed via bit 3 of the U1OTGCON register.
chipKIT™ Pro MX7 Board Reference Manual #pragma config FCANIO=OFF The MPIDE boot loader sets the configuration variables, and so no action is necessary when using the MPIDE software system. The pins on the PIC32MX795 microcontroller used by signals for the CAN1 controller to connect to its transceiver are shared with two of the signals for the UART2 and SPI4 ports. Jumpers JP1 and JP2 are used to select the use of these two signals.
chipKIT™ Pro MX7 Board Reference Manual Note that early versions of the Microchip PIC32MX5XX/6XX/7XX Family Data Sheet refer to UART1 as UART1A and UART2 as UART3A. 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 is connected to UART1. The MPIDE uses this to communicate with the boot loader.
chipKIT™ Pro MX7 Board Reference Manual SDI4 SCK4 JF-03 JF-04 Note that early versions of the Microchip PIC32MX5Xx/6XX/7XX Family Data Sheet refer to SPI3 as SPI1A and SPI4 as SPI3A. Detailed information about the operation of the SPI peripherals can be found in the PIC32 Family Reference Manual, Section 23, Serial Peripheral Interface.
chipKIT™ Pro MX7 Board Reference Manual Pull-ups Enabled 3V3 GND SDA SCL 3V3 GND SDA SCL The pull-ups on I2C1 on the chipKIT Pro MX7 board are actually implemented using current mirrors rather than simple resistors. These current mirrors source approximately 1.7mA. The use of current mirrors provides faster rise 2 times on the I C signals and provides the ability to drive longer cable runs reliably than would be the case with simple pull-up resistors.
chipKIT™ Pro MX7 Board Reference Manual JF-02 – SCL5 JF-03 – SDA5 11.1 On-Board I2C Peripheral Device 2 The chipKIT Pro MX7 provides one on-board I C peripheral device, a Microchip 24LC256 serial EEPROM. This device is connected to I2C2. The 24LC256 is a 256Kbit (32Kbyte) serial EEPROM device to provide non-volatile memory storage. The device address for the 24LC256 is 1010000 (0x50).
chipKIT™ Pro MX7 Board Reference Manual When the internal references are being used, Vref- is connected to VSS and Vref+ is connected to VDD. This means that the voltage input range at the analog input pins is 0V–3.3V. In this case, an input voltage of 0V will convert to ~0, an input voltage of 1.65V will convert to ~511, and an input voltage of 3.3V will convert to ~1023. Either one, or both, of the references can be connected to external reference pins.
chipKIT™ Pro MX7 Board Reference Manual Control and operation of the timers is not explicitly provided in the current version of the MPIDE software. This capability will be added in a future version of the software; however, timers are used implicitly by various core functions and libraries. 14 Output Compare The PIC32MX795 microcontroller provides five output compare units that can be used to control the timing of state changes on certain output pins or to generate pulse width modulated (PWM) outputs.
chipKIT™ Pro MX7 Board Reference Manual For detailed information on the operation and use of the input capture units, refer to the PIC32 Family Reference Manual, Section 15, Input Capture.
chipKIT™ Pro MX7 Board Reference Manual Appendix A: Connector Descriptions and Jumper Settings Label JA-JF JPA – JPF J1 J2 Function Pmod Connectors These connectors provide access to the I/O pins on the PIC32MX795 microcontroller. Digilent Pmod peripheral modules can be attached to these connectors. These connectors can be used for general access to I/O pins on the PIC32MX795 microcontroller. Pmod header power select Any of the Pmod connectors can provide either regulated or unregulated power.
chipKIT™ Pro MX7 Board Reference Manual This connector is used to connect the on-board programming and debug circuit to the PC for use with the MPLAB IDE. J17 J18 J19 J20 JP1 & JP2 JP3 & JP4 JP5 JP6 JP7 JP8 JP9 JP10 External Power Connector This is a 2.5mm x 5.5mm, center positive, coax power connector used to provide external power to the board. The optional Digilent 5V Switching Power Supply is connected here.
chipKIT™ Pro MX7 Board Reference Manual JP11 JP17 USB Serial converter reset disconnect This is used to connect/disconnect the USB serial converter reset circuit from the PIC32 MCLR pin. The shorting block must be in place on this jumper when using the MPIDE development tools. Remove the shorting block if the USB serial converter is interfering with proper operation of the licensed debugger circuit. Do Not Use. Copyright Digilent, Inc. All rights reserved.
chipKIT™ Pro MX7 Board Reference Manual Appendix B: Example of Configuration Values The following example illustrates setting the configuration values in the PIC32 microcontroller on the chipKIT Pro MX7. The microcontroller configuration should be done in a single source file in the project, and is typically done in the ‘main’ project source file. This example sets all configuration values to valid values for the chipKIT Pro MX7 board.
chipKIT™ Pro MX7 Board Reference Manual Appendix C: Connector Pinout Tables Arranged by Microcontroller Pin Number PIC32 Pin # Connector Pin chipKIT Pin # MCU Port Bit PIC32 Signal Name Notes LED4 1 LD4 54 RG15 AERXERR/RG15 3 JB-08 13 RE05 PMD5/RE5 4 JB-09 14 RE06 PMD6/RE6 5 JB-10 15 RE07 PMD7/RE7 6 JC-01 16 RC01 T2CK/RC1 7 N/A N/A RC02 T3CK/AC2TX/RC2 CAN2 8 N/A N/A RC03 T4CK/AC2RX/RC3 CAN2 9 JD-03 26 RC04 T5CK/SDI1/RC4 10 BTN1 47 RG06 ...
chipKIT™ Pro MX7 Board Reference Manual 44 JC-07 20 RB15 AN15/...
chipKIT™ Pro MX7 Board Reference Manual 93 JB-01 8 RE00 PMD0/RE0 94 JB-02 9 RE01 PMD1/RE1 95 LD3 53 RG14 TRD2/RG14 LED3 96 LD1 51 RG12 TRD1/RG12 LED1 97 LD2 52 RG13 TRD0/RG13 LED2 98 JB-03 10 RE02 PMD2/RE2 99 JB-04 11 RE03 PMD3/RE3 100 JB-07 12 RE04 PMD4/RE4 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
chipKIT™ Pro MX7 Board Reference Manual Arranged by Connector Pin Number and Digital Pin Number PIC32 Pin # Connector Pin chipKIT Pin # MCU Port Bit PIC32 Signal Name 23 JA-01 0 RB02 AN2/C2IN-/CN4/RB2 22 JA-02 1 RB03 AN3/C2IN+/CN5/RB3 21 JA-03 2 RB04 AN4/C1IN-/CN6/RB4 26 JA-04 3 RB06 PGEC2/AN6/OCFA/RB6 27 JA-07 4 RB07 PGED2/AN7/RB7 32 JA-08 5 RB08 AN8/C1OUT/RB8 33 JA-09 6 RB09 AN9/C2OUT/RB9 34 JA-10 7 RB10 CVrefout/PMA13/AN10/RB10 93 JB-01 8 RE00 PMD0/RE0 9
chipKIT™ Pro MX7 Board Reference Manual 53 JE-02 33 RF08 SCL1A/SDO1A/U1ATX/RF8 52 JE-03 34 RF02 SDA1A/SDI1A/U1ARX/RF2 48 JE-04 35 RD15 AETXD1/SCK1A/U1BTX/U1ARTS/CN21/RD15 18 JE-07 36 RE08 AERXD0/INT1/RE8 92 JE-08 37 RA07 TRD3/RA7 28 JE-09 38 RA09 Vref-/CVref-/AERXD2/PMA7/RA9 29 JE-10 39 RA10 Vref+/CVref+/AERXD3/PMA6/RA10 40 JF-01 40 RF12 AC1RX/SS3A/U3BRX/U3ACTS/RF12 50 JF-02 41 RF05 SCL3A/SDO3A/U3ATX/PMA8/CN18/RF5 49 JF-03 42 RF04 SDA3A/SDI3A/U3ARX/PMA9/CN17/
chipKIT™ Pro MX7 Board Reference Manual 42 N/A N/A RB13 AN13/ERXD1/AECOL/PMA10/RB13 Ethernet PHY 51 N/A N/A RF03 USBID/RF3 USBID (USB-4) 56 N/A N/A RG03 D-/RG3 D- (USB-2) 57 N/A N/A RG02 D+/RG2 D+ (USB-3) 63 N/A N/A RC12 OSC1/CLKI/RC12 Primary Oscillator 64 N/A N/A RC15 OSC2/CLKO/RC15 Primary Oscillator 68 N/A N/A RD08 RTCC/EMDIO/AEMDIO/IC1/RD8 Ethernet PHY 71 N/A N/A RD11 EMDC/AEMDC/IC4/PMCS1/PMA14/RD11 Ethernet PHY 73 N/A N/A RC13 SOSCI/CN1/RC13 Seconda
chipKIT™ Pro MX7 Board Reference Manual Arranged by MCU Port and Bit Number PIC32 Pin # Connector Pin # chipKIT Pin # MCU Port Bit PIC32 Signal Name Notes BTN3 17 BTN3 50 RA00 TMS/RA0 38 JF-08 45 RA01 TCK/RA1 58 J7-1, J7-2 55 RA02 SCL2/RA2 I2C2 59 J7-3, J7-4 56 RA03 SDA2/RA3 I2C2 60 JF-09 46 RA04 TDI/RA4 61 JF-10 48 RA05 TDO/RA5 91 N/A 47 RA06 TRCLK/RA6 92 JE-08 37 RA07 TRD3/RA7 28 JE-09 38 RA09 Vref-/CVref-/AERXD2/PMA7/RA9 29 JE-10 39 RA10 Vref+/CVr
chipKIT™ Pro MX7 Board Reference Manual 8 N/A N/A RC03 T4CK/AC2RX/RC3 9 JD-03 26 RC04 T5CK/SDI1/RC4 63 N/A N/A RC12 OSC1/CLKI/RC12 Primary Oscillator 73 N/A N/A RC13 SOSCI/CN1/RC13 Secondary Oscillator 74 N/A N/A RC14 SOSCO/T1CK/CN0/RC14 Secondary Oscillator 64 N/A N/A RC15 OSC2/CLKO/RC15 Primary Oscillator 72 JD-02 25 RD00 SDO1/OC1/INT0/RD0 76 JD-07 28 RD01 OC2/RD1 77 JD-08 29 RD02 OC3/RD2 78 JD-09 30 RD03 OC4/RD3 81 JC-09 22 RD04 OC5/PMWR/CN13/RD4
chipKIT™ Pro MX7 Board Reference Manual 88 N/A N/A RF01 C1TX/ETXD0/PMD10/RF1 52 JE-03 34 RF02 SDA1A/SDI1A/U1ARX/RF2 51 N/A N/A RF03 USBID/RF3 49 JF-03 42 RF04 SDA3A/SDI3A/U3ARX/PMA9/CN17/RF4 50 JF-02 41 RF05 SCL3A/SDO3A/U3ATX/PMA8/CN18/RF5 53 JE-02 33 RF08 SCL1A/SDO1A/U1ATX/RF8 40 JF-01 40 RF12 AC1RX/SS3A/U3BRX/U3ACTS/RF12 also CAN1 (JP-1) 39 JF-04 43 RF13 AC1TX/SCK3A/U3BTX/U3ARTS/RF13 also CAN1 (JP-2) 90 JC-02 17 RG00 C2RX/PMD8/RG0 89 JC-03 18 RG01 C2TX/ET