Digilent ChipKIT PRO Reference Manual

Mx4 board

Advertisement

Quick Links

ChipKIT™ PRO MX4 Board Reference Manual
Revised November 7, 2013
This manual applies to Rev C of the board

Table of Contents

Table of Contents .................................................................................................................. 1
Overview ............................................................................................................................... 3
1
Functional Description ................................................................................................... 4
2 Programming Tools ............................................................................................................. 4
2.1 Using ChipKIT Pro MX4 with Microchip Development Tools ................................................ 5
2.3 Additional Tools Information ................................................................................................ 7
3 Power Supply ..................................................................................................................... 7
3.1 Power Supply Monitor Circuit ............................................................................................... 9
4 Pmod Connectors ............................................................................................................... 9
5 Digital I/O ......................................................................................................................... 10
5.1 PIC32MX460 Pin 20 ............................................................................................................. 11
5.2 Push Buttons and LEDs ....................................................................................................... 11
5.3 RC Servo Connectors ........................................................................................................... 12
6 5V Signal Compatibility ..................................................................................................... 13
7 CPU Clock Source .............................................................................................................. 14
8 USB Interface .................................................................................................................... 15
9 UART Interface ................................................................................................................. 16
DOC#: 502-295
Other product and company names mentioned may be trademarks of their respective owners.
Copyright Digilent, Inc. All rights reserved.
1300 Henley Court
Pullman, WA 99163
509.334.6306
www.digilentinc.com
Page 1 of 37

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ChipKIT PRO and is the answer not in the manual?

Questions and answers

Summary of Contents for Digilent ChipKIT PRO

  • Page 1: Table Of Contents

    Overview ..........................3 Functional Description ....................4 2 Programming Tools ......................4 2.1 Using ChipKIT Pro MX4 with Microchip Development Tools ..........5 2.3 Additional Tools Information ....................7 3 Power Supply ........................7 3.1 Power Supply Monitor Circuit ....................9 4 Pmod Connectors .......................
  • Page 2 ChipKIT Pro MX4 Reference Manual 10 Serial Peripheral Interface (SPI) ..................17 11 I C ™ Interface ........................ 18 11.1 Jumper Setting for I C Pull Up Resistors ................19 11.2 On-Board I C Peripheral Devices ..................20 12 Analog Inputs ......................... 20 13 A/D Converter Voltage Reference ...................
  • Page 3: Overview

    ChipKIT Pro MX4 Reference Manual Overview ChipKIT Pro MX4 is the new name for Cerebot MX4ck. This board retains all functionality of the Cerebot MX4ck. The ChipKIT Pro MX4 is a microcontroller development board based on the Microchip PIC32MX460F512L, a member of the 32-bit PIC32 microcontroller family.
  • Page 4: Functional Description

    ChipKIT Pro MX4 Circuit Diagram The ChipKIT Pro MX4 is designed to be easy to use and suitable for use by anyone from beginners to advanced users for experimenting with electronics and embedded control systems. A built in programming/debugging circuit ®...
  • Page 5: Using Chipkit Pro Mx4 With Microchip Development Tools

    Remove the shorting block from JP8 to disable the reset circuit. If the shorting block has been removed, it is necessary to reinstall it on JP8 in order to use the ChipKIT Pro MX4 board with the MPIDE again.
  • Page 6 JP8. The shorting block is reinstalled on JP8 to restore operation with the MPIDE. Two red LEDs (LD7 and LD8) will blink when data is being sent or received between the ChipKIT Pro MX4 and the PC over the serial connection.
  • Page 7: Additional Tools Information

    JP10 to protect the USB load switch, which is limited to a maximum voltage of 5.5V. The USB load switch is used to control bus power when the ChipKIT Pro MX4 is being used to implement a USB host.
  • Page 8 The ChipKIT Pro MX4 has a second screw terminal connector, J5 that supplies power to the servo power bus, VS, to power the RC hobby servo connectors. This allows servos to be powered from a separate power supply than the one powering the electronics on the ChipKIT Pro MX4.
  • Page 9: Power Supply Monitor Circuit

    3.1 Power Supply Monitor Circuit The ChipKIT Pro MX4 microcontroller can measure the power supply voltage on the BRD_VU and VS power busses using the provided power supply monitor circuits. This feature is especially useful when using batteries because it allows the microcontroller firmware to determine the charge state of the battery and potentially notify the user when a battery supply is low.
  • Page 10: Digital I/O

    PIC32MX3XX/4XX Family Data Sheet. 5 Digital I/O The ChipKIT Pro MX4 board provides access to 72 of the I/O pins from the PIC32 microcontroller via the Pmod connectors. Two additional I/O pins can be accessed via the I C connector, J6. Any of the pins on the Pmod or I connectors can be individually accessed for digital input or output.
  • Page 11: Pic32Mx460 Pin 20

    ChipKIT Pro MX4 Reference Manual On the ChipKIT Pro MX4, pin numbers 0–71 are used to access the pins on the Pmod connectors and pin numbers 72 and 73 are used for the two signal pins on the I C connector, J6. 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.
  • Page 12: Rc Servo Connectors

    • LD4 – PIN_LED4, pin 67, RB13 5.3 RC Servo Connectors The ChipKIT Pro MX4 provides eight 3-pin RC hobby servo connectors, labeled S1-S8, for direct control of servos in robotics and other embedded hardware actuator applications. The connectors share the I/O pins with Pmod connector JC.
  • Page 13: Signal Compatibility

    In this case, remove the shorting block on JP1, tie the external servo power bus ground to the ChipKIT Pro MX4 ground through the ground terminal on J10, and use pin 1 on the servo connectors to bring the servo control signals out to the servos.
  • Page 14: Cpu Clock Source

    This is found using the “Help.Topics…” command in the MPLAB IDE. Also, refer to Appendix B for an example of setting the configuration variables. When using the ChipKIT Pro MX4 with the MPIDE software, the clock source is set by the boot loader and no action is required.
  • Page 15: Usb Interface

    USB PLL, and set the input divider to the correct value to generate a valid USB clock. The input to the USB PLL must be 4Mhz. The ChipKIT Pro MX4 provides an 8Mhz clock to the PIC32 microcontroller, so a USB PLL input divider value of 2 must be used.
  • Page 16: Uart Interface

    Jumper JP10 can be used to disconnect the power supply from USB load switch, IC6, when the board is operating from a power supply with a higher voltage than 5V. When the ChipKIT Pro MX4 is operating as a USB host, a shorting block must be in place on JP10.
  • Page 17: Serial Peripheral Interface (Spi)

    JE until the sketch has been downloaded and then reconnect it. When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the UARTs are accessed using the HardwareSerial facility built into the system. UART1, connector JE, is accessed using the Serial object and...
  • Page 18: C ™ Interface

    Detailed information about the operation of the SPI peripherals can be found in the PIC32 Family Reference Manual, Section 23, Serial Peripheral Interface. When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the SPI ports are accessed using either the standard chipKIT SPI library or using the Digilent DSPI library.
  • Page 19: Jumper Setting For I C Pull Up Resistors

    Disabled 11.1 Jumper Setting for I C Pull Up Resistors When using the ChipKIT Pro MX4 with the MPIDE and the chipKIT system, the I C interfaces are accessed using the standard chipKIT Wire library, or the Digilent DTWI library.
  • Page 20: On-Board I C Peripheral Devices

    Refer to the Microchip data sheets for detailed information on the operation of these devices. The analog output voltage from IC3 is available at two places on the ChipKIT Pro MX4 board. The two pin header, J10, provides the DAC output voltage and ground for connection to off-board applications.
  • Page 21: D Converter Voltage Reference

    ChipKIT Pro MX4 Reference Manual 13 A/D Converter Voltage Reference The PIC32 microcontroller provides two voltage reference inputs to the analog to digital converter. Vref- is used to set the lower reference level and Vref+ is used to set the upper reference level. These reference inputs can be connected to internal references or to external references using two of the analog input pins.
  • Page 22: Output Compare

    ChipKIT Pro MX4 Reference Manual • TCK4 – JE-10, digital pin 39, RC03 • TCK5 – JK-10, digital pin 71, RC04 For detailed information on the operation of the PIC32 timers, refer to the PIC32 Family Reference Manual, Section 14, Timers.
  • Page 23: External Interrupts

    ChipKIT Pro MX4 Reference Manual The PIC32 microcontroller provides five input capture units. An input capture unit works in conjunction with a timer and monitors the state of an associated pin. When the pin changes state, the current value of the timer is captured.
  • Page 24 ChipKIT Pro MX4 Reference Manual solder in a 32Khz watch crystal. The Citizen CFS206-32.768KDZF-UB is a crystal part that can be used in this location. Copyright Digilent, Inc. All rights reserved. Page 24 of 37 Other product and company names mentioned may be trademarks of their respective owners.
  • Page 25: Appendix A: Connector Descriptions And Jumper Settings

    This is a two pin header connector that can be used to supply external power to the board. USB OTG connector This is a USB micro-AB connector that is used when the ChipKIT Pro MX4 board is used to implement a USB device, or USB OTG device.
  • Page 26 Auxiliary Power Out This connector provides access to the unregulated power bus BRD_VU and GND. It can be used to distribute power to other boards from the ChipKIT Pro MX4. Connect VS bus to BRD_VU bus This jumper is used to connect the VS bus to the BRD_VU bus. The VS bus provides power to the servo connectors, S1-S8.
  • Page 27 ChipKIT Pro MX4 Reference Manual Do not use Used for manufacturing test purposes. 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 chipKIT MPIDE development tools.
  • Page 28: Appendix B: Example Of Configuration Values

    MX4. 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 MX4 board. It sets the system clock for processor operation at 80Mhz, and the peripheral bus at 10Mhz.
  • Page 29: Appendix C: Connector Pinout Tables

    ChipKIT Pro MX4 Reference Manual Appendix C: Connector Pinout Tables Arranged by Microcontroller Pin Number PIC 32 Connector ChipKIT PIC 32 Signal Name Notes Pin # Pin # Pin # Port Bit JC-04 RG15 RG15 also servo S4 JA-08 RE05...
  • Page 30 ChipKIT Pro MX4 Reference Manual JK-03 RB12 PMA11/AN12/RB12 also LD3 JK-04 RB13 PMA10/AN13/RB13 also LD4 JB-10 RB14 PMALH/PMA1/AN14/RB14 JB-07 RB15 PMALL/PMA0/AN15/OCFB/CN12/RB15 JE-01 RD14 CN20/U1CTS/RD14 JE-04 RD15 U1RTS/BCLK1/CN21/RD15 JH-03 RF04 PMA9/U2RX/CN17/RF4 JH-02 RF05 PMA8/U2TX/CN18/RF5 RF03 USBID/RF3 USB-4 JE-03 RF02 U1RX/RF2 JE-02...
  • Page 31 ChipKIT Pro MX4 Reference Manual JC-09 RF00 PMD11/RF0 also servo S7 JC-10 RF01 PMD10/RF1 also servo S8 JC-08 RG01 PMD9/RG1 also servo S6 JC-07 RG00 PMD8/RG0 also servo S5 JF-03 RA06 TRCLK/RA6 also BTN1 JF-04 RA07 TRD3/RA7 also BTN2 JA-01...
  • Page 32: Arranged By Connector Pin Number And Digital Pin Number

    ChipKIT Pro MX4 Reference Manual Arranged by Connector Pin Number and Digital Pin Number PIC 32 Connector ChipKIT PIC 32 Signal Name Notes Pin # Pin # Pin # Port Bit JA-01 RE00 PMD0/RE0 JA-02 RE01 PMD1/RE1 JA-03 RE02 PMD2/RE2...
  • Page 33 ChipKIT Pro MX4 Reference Manual JE-03 RF02 U1RX/RF2 JE-04 RD15 U1RTS/BCLK1/CN21/RD15 JE-07 RE09 INT2/RE9 also JP5, USB OC_SENSE JE-08 RD03 OC4/RD3 JE-09 RD11 IC4/PMCS1/PMA14/RD11 JE-10 RC03 T4CK/RC3 JF-01 RA14 SCL1/INT3/RA14 also J2-01,J2-02 I2C1 JF-02 RA15 SDA1/INT4/RA15 also J2-03,J2-04 I2C1 JF-03...
  • Page 34 ChipKIT Pro MX4 Reference Manual JK-09 RD12 PMD12/IC5/RD12 JK-10 RC04 SDI1/T5CK/RC4 also J1-03 J6-1,J6-2 RA02 SCL2/RA2 I2C2 J6-3,J6-4 RA03 SDA2/RA3 I2C2 RB06 PGC2/EMUC2/AN6/OCFA/RB6 debug PGC RB07 PGD2/EMUD2/AN7/RB7 debug PGD RF03 USBID/RF3 USB-4 RG03 D-/RG3 USB-2 RG02 D+/RG2 USB-3 RC12 OSC1/CLKI/RC12...
  • Page 35: Arranged By Microcontroller I/O Port Name And Bit Number

    ChipKIT Pro MX4 Reference Manual Arranged by MCU Port and Bit Number PIC 32 Connector ChipKIT PIC 32 Signal Name Notes Pin # Pin # Pin # Port Bit JF-07 RA00 TMS/RA0 JF-08 RA01 TCK/RA1 J6-1,J6-2 RA02 SCL2/RA2 I2C2 J6-3,J6-4...
  • Page 36 ChipKIT Pro MX4 Reference Manual RC14 SOSCO/T1CK/CN0/RC14 Secondary Oscillator RC15 OSC2/CLKO/RC15 Primary Oscillator JH-08 RD00 SDO1/OC1/INT0/RD0 also J1-02 JD-02 RD01 OC2/RD1 JD-08 RD02 OC3/RD2 JE-08 RD03 OC4/RD3 JB-09 RD04 PMWR/OC5/CN13/RD4 JB-08 RD05 PMRD/CN14/RD5 JD-07 RD06 PMD14/CN15/RD6 also J1-10 JD-01 RD07...
  • Page 37 ChipKIT Pro MX4 Reference Manual JH-04 RF13 U2RTS/BCLK2/RF13 JC-07 RG00 PMD8/RG0 also servo S5 JC-08 RG01 PMD9/RG1 also servo S6 RG02 D+/RG2 USB-3 RG03 D-/RG3 USB-2 JB-04 RG06 PMA5/SCK2/CN8/RG6 JB-03 RG07 PMA4/SDI2/CN9/RG7 JB-02 RG08 PMA3/SDO2/CN10/RG8 JB-01 RG09 PMA2/SS2/CN11/RG9 JC-01 RG12...
  • Page 38 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Digilent 410-295P-KIT...

Table of Contents