Cerebot MX7cK™ Board Reference Manual Revision: June 24, 2013 Note: This document applies to REV B and C of the board. 1300 Henley Court | Pullman, WA 99163 (509) 334 6306 Voice and Fax Overview The Cerebot MX7cK is a microcontroller development board based on the Microchip PIC32MX795F512L, a member of the 32-bit PIC32 microcontroller family. It is compatible with Digilent’s line of Pmod™ peripheral modules, and is suitable for use with the Microchip MPLAB® IDE tools.
Cerebot MX7cK Reference Manual Functional Description The Cerebot MX7cK is designed for embedded control and network communications applications as well as for general microprocessor experimentation. Firmware suitable for many applications can be downloaded to the Cerebot MX7cK’s programmable PIC32 microcontroller.
Cerebot MX7cK Reference Manual of the Microchip C32 compiler for use with the PIC32 microcontroller family. The licensed debugger is compatible with the MPLAB IDE version 8.63 or later or all versions of MPLAB X. When creating a new project, use the “Configure.Select Device…” menu to specify the PIC32 device being used. Ensure that the device is set to PIC32MX795F512L. In order to use the on-board programming/debugging circuit it must be selected as the debugger or programmer within the MPLAB IDE.
Cerebot MX7cK Reference Manual Using the Cerebot MX7cK with the chipKIT MPIDE ChipKIT and the MPIDE is a PIC32 based hardware and software system compatible with many existing Arduino™ code examples, reference materials and other resources. The MPIDE development platform was produced by modifying the Arduino™ IDE and is fully backward compatible with the Arduino IDE. The Cerebot MX7cK board is designed to be fully compatible with the chipKIT MPIDE system, version 20111221 or later.
Cerebot MX7cK Reference Manual Board Hardware Description The following describes the various hardware features of the Cerebot MX7cK board and the PIC32XM795F512L microcontroller. Board Power Supply Switch SW1, in the lower left corner of the board is the power switch. Place this switch in the ON position to turn on board power and in the OFF position to turn off board power. The Cerebot MX7cK may be USB powered via either the USB debug port, the USB UART port, or the USB device port.
Cerebot MX7cK Reference Manual main power supply will be turned on immediately when the power switch is turned on. When load switch IC9 is turned on, it powers the board unregulated power bus VCC5V0, which provides the input power to the main regulator. The main board power supply is a switch mode voltage regulator implemented using a Microchip MCP16301 switch mode step-down regulator, IC10. This regulator provides 3.3V at up to 600 mA with approximately 96% efficiency.
Cerebot MX7cK Reference Manual Digilent Pmods are a line of small peripheral modules that provide various kinds of I/O interfaces. The Pmod product line includes such things as button, switch and LED modules, connector modules, LCD displays, high current output drivers, various kinds of RF interfaces, and many others. There are two styles of Pmod connector: sixpin and twelve-pin. Both connectors use standard pin headers with 100mil spaced pins.
Cerebot MX7cK Reference Manual +7/-12mA. The maximum current that can be sourced or sunk across all I/O pins simultaneously is +/-200mA. The maximum voltage that can be applied to any digital I/O pin is 5.5V. The maximum voltage that can be applied to any analog input capable pin is 3.6V. For more detailed specifications, refer to the PIC32MX5XX/6XX/7XX Family Data Sheet.
Cerebot MX7cK Reference Manual Pins 0-7 are on connector JA, pins 8-15 on JB, pins 16-23 on JC, pins 24-31 and so on. Refer to the tables in Appendix B for detailed information about the pin mapping between Pmod connector, logical pin number, and PIC32 microcontroller pin number and pin function. When using the Cerebot MX7cK with the chipKIT MPIDE the functions pinMode(), digitalRead(), and digitalWrite() are used for digital pin I/O. The pinMode() function is used to set the pin direction.
Cerebot MX7cK Reference Manual The digital only I/O pins on the PIC32 microcontroller are 5V tolerant. It is safe to apply 5V logic signals directly to these pins without risk of damage to the microcontroller. with pins that are not 5V tolerant on the PIC32 microcontroller. The analog capable I/O pins on the PIC32 are not 5V tolerant. The absolute maximum voltage rating for the analog pins is 3.6V.
Cerebot MX7cK Reference Manual PIC32 Peripheral Devices The following describes the peripheral devices available in the PIC32MX795F512L microcontroller and how they are accessed on the Cerebot MX7cK board. CPU Clock Source The PIC32 microcontroller supports numerous clock source options for the main processor operating clock.
Cerebot MX7cK Reference Manual Layer Transceiver (PHY). Together, the MAC and PHY in combination with an appropriate coupling transformer and RJ45 jack provide a standard 10/100 Ethernet interface. The RJ45 connector J11, provides the physical connection to an Ethernet network using a standard Ethernet cable. All devices on an Ethernet network must have a unique address. This address is used to direct packets on the network to a specific device and to identify the device that originated a packet.
Cerebot MX7cK Reference Manual reset and begin operation. The NRST signal is pulled low on the board, so that the PHY is held in reset by default. To allow the PHY to operate, this pin must be driven high. This reset operation is not part of the Microchip network protocol stack, and so driving NRST high must be done before initializing the Microchip network stack.
Cerebot MX7cK Reference Manual block in the “A” position when using the standard USB type A (host) Connector, J20. Place the shorting block in the “MICRO” position for use with the USB micro-AB (OTG) connector, J19. the chipKIT MPIDE development environment. These libraries are built on a custom version of the Microchip Applications Library and can be downloaded from the Cerebot MX7cK product page on the Digilent web site.
Cerebot MX7cK Reference Manual interface pins, the following statement must appear in the main program module: #pragma config FCANIO=OFF The chipKIT 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.
Cerebot MX7cK Reference Manual with the boot loader. This can also be used for a serial communications interface between the Cerebot MX7cK board and other software running on a PC. Resistors are used to decouple the USB serial interface and so UART1 can also be used via Pmod connector JE when not using it to communicate with the USB serial converter. the slave, it simultaneously receives a byte from the slave.
Cerebot MX7cK Reference Manual DSPI2 object class is used to access SPI4, Pmod connector JF. lines low. One device on the I2C bus must provide the pull-up resistors. I2C™ Interface On the Cerebot MX7cK, I2C2, connector J8, has permanently connected, 2.2K ohm, pull-up resistors. I2C1, connector J7, provides selectable pull-ups that can be enabled or disabled via jumper blocks JP3 and JP4. The pull-ups are enabled by installing shorting blocks on JP3 and JP4.
Cerebot MX7cK Reference Manual The Wire library supports a single I2C interface, I2C2 on J8. This is accessed using the Wire object. The DTWI library supports four I2C interfaces. The DTWI0 object class is used to create an object for access to I2C1, connector J7, and the DTWI1 object class is used to access I2C2, connector J8. The DTWI2 object class is used to access I2C3, Pmod connector JE, and the DTWI3 object class is used to access I2C5, Pmod connector JF.
Cerebot MX7cK Reference Manual connected to internal references or to external references using two of the analog input pins. 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.
Cerebot MX7cK Reference Manual Timers are used implicitly by various core functions and libraries, however. OC4 – JD-09, digital pin 30, RD03 OC5 – JC-09, digital pin 22, RD04 Output Compare Input Capture 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. The PIC32MX795 microcontroller provides five input capture units.
Cerebot MX7cK Reference Manual External Interrupts Citizen CFS206-32.768KDZF-UB is a crystal part that can be used in this location. The PIC32 microcontroller provides five external interrupt inputs. An external interrupt input can be used to generate an interrupt to the microprocessor CPU when the pin changes state. They can be programmed to interrupt on a rising edge or a falling edge on the pin.
Cerebot MX7cK Reference Manual Appendix A: Connector Descriptions and Jumper Settings Label JA-JF 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. JPA – JPF Pmod header power select Any of the Pmod connectors can provide either regulated or unregulated power.
Cerebot MX7cK Reference Manual This connector provides access to the 10/100 Ethernet port. J12J14 J15 Do Not Use. J17 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. J18 External Power Connector This is a screw terminal connector used to provide external power to the board.
Cerebot MX7cK Reference Manual JP8 CAN #1 5V0 Enable This jumper is used to enable/disable providing 5V to the CAN #1 connector. Insert the shorting block to connect the board 5V0 supply to pins 9 & 10 of CAN #1 connector. Remove the shorting block to disconnect the 5V0 supply. JP9 Do Not Use JP10 USB host power select This jumper is used to select which host connector is powered when host power is enabled.
Cerebot MX7cK Reference Manual Appendix B: Example of Configuration Values The following example illustrates setting the configuration values in the PIC32 microcontroller on the Cerebot MX7cK. 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 Cerebot MX7cK board.
Cerebot MX7cK Reference Manual Appendix C: Connector and Jumper Block Pinout Tables Arranged by Microcontroller Pin Number PIC32 Pin # Connector Pin chipKIT Pin # MCU Port Bit PIC32 Signal Name Notes 1 3 4 5 6 7 8 9 LD4 JB-08 JB-09 JB-10 JC-01 N/A N/A JD-03 54 13 14 15 16 N/A N/A 26 RG15 RE05 RE06 RE07 RC01 RC02 RC03 RC04 AERXERR/RG15 PMD5/RE5 PMD6/RE6 PMD7/RE7 T2CK/RC1 T3CK/AC2TX/RC2 T4CK/AC2RX/RC3 T5CK/SDI1/RC4 LED4 10 11 12 14 17 18 19 20 21 22 BTN1 BTN2 N/A N/A BTN3 JE-07 JF-07 N/A JA-03 J
Cerebot MX7cK Reference Manual 49 50 51 JF-03 JF-02 N/A 42 41 N/A RF04 RF05 RF03 SDA3A/SDI3A/U3ARX/PMA9/CN17/RF4 SCL3A/SDO3A/U3ATX/PMA8/CN18/RF5 USBID/RF3 52 53 56 57 58 59 60 61 63 64 JE-03 JE-02 N/A N/A J7-1,J7-2 J7-3,J7-4 JF-09 JF-10 N/A N/A 34 33 N/A N/A 55 56 46 47 N/A N/A RF02 RF08 RG03 RG02 RA02 RA03 RA04 RA05 RC12 RC15 SDA1A/SDI1A/U1ARX/RF2 SCL1A/SDO1A/U1ATX/RF8 D-/RG3 D+/RG2 SCL2/RA2 SDA2/RA3 TDI/RA4 TDO/RA5 OSC1/CLKI/RC12 OSC2/CLKO/RC15 66 67 68 69 70 71 72 73 74 76 J8-1,J8-2 J8-3.
Cerebot MX7cK Reference Manual 98 99 100 JB-03 JB-04 JB-07 www.digilentinc.com 10 11 12 RE02 RE03 RE04 PMD2/RE2 PMD3/RE3 PMD4/RE4 page 28 of 36 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Cerebot MX7cK Reference Manual Arranged by Connector Pin Number and Digital Pin Number PIC32 Pin # Connector Pin chipKIT Pin # MCU Port Bit Signal 23 22 21 26 JA-01 JA-02 JA-03 JA-04 0 1 2 3 RB02 RB03 RB04 RB06 AN2/C2IN-/CN4/RB2 AN3/C2IN+/CN5/RB3 AN4/C1IN-/CN6/RB4 PGEC2/AN6/OCFA/RB6 27 32 JA-07 JA-08 4 5 RB07 RB08 PGED2/AN7/RB7 AN8/C1OUT/RB8 33 34 JA-09 JA-10 6 7 RB09 RB10 AN9/C2OUT/RB9 CVrefout/PMA13/AN10/RB10 93 94 98 99 JB-01 JB-02 JB-03 JB-04 8 9 10 11 RE00 RE01 RE02 RE03 PMD0/R
Cerebot MX7cK Reference Manual 29 40 50 JE-10 JF-01 JF-02 39 40 41 RA10 RF12 RF05 Vref+/CVref+/AERXD3/PMA6/RA10 AC1RX/SS3A/U3BRX/U3ACTS/RF12 SCL3A/SDO3A/U3ATX/PMA8/CN18/RF5 49 39 19 38 60 61 10 11 17 96 JF-03 JF-04 JF-07 JF-08 JF-09 JF-10 BTN1 BTN2 BTN3 LD1 42 43 44 45 46 47 48 49 50 51 RF04 RF13 RE09 RA01 RA04 RA05 RG06 RG07 RA00 RG12 SDA3A/SDI3A/U3ARX/PMA9/CN17/RF4 AC1TX/SCK3A/U3BTX/U3ARTS/RF13 AERXD1/INT2/RE9 TCK/RA1 TDI/RA4 TDO/RA5 .../SCK2A/U2BTX/U2ARTS/PMA5/CN8/RG6 ...
Cerebot MX7cK Reference Manual 12 14 N/A N/A www.digilentinc.com N/A N/A RG08 RG09 .../SCL2A/SDO2A/U2ATX/PMA3/CN10/RG8 .../SS2A/U2BRX/U2ACTS/PMA2/CN11/RG9 Ethernet PHY Ethernet PHY page 31 of 36 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Cerebot MX7cK Reference Manual Arranged by Microcontroller I/O Port Name and Bit Number PIC32 Pin # Connector Pin chipKIT Pin # MCU Port Bit PIC32 Signal Name Notes 17 BTN3 50 RA00 TMS/RA0 BTN3 38 58 JF-08 J7-1,J7-2 45 55 RA01 RA02 TCK/RA1 SCL2/RA2 I2C2 59 60 61 91 92 28 J7-3,J7-4 JF-09 JF-10 N/A JE-08 JE-09 56 46 47 N/A 37 38 RA03 RA04 RA05 RA06 RA07 RA09 SDA2/RA3 TDI/RA4 TDO/RA5 TRCLK/RA6 TRD3/RA7 Vref-/CVref-/AERXD2/PMA7/RA9 29 66 67 25 24 23 JE-10 J8-1,J8-2 J8-3.
Cerebot MX7cK Reference Manual 78 81 82 JD-09 JC-09 JC-08 30 22 21 RD03 RD04 RD05 OC4/RD3 OC5/PMWR/CN13/RD4 PMRD/CN14/RD5 83 84 68 69 70 71 79 N/A JC-04 N/A JD-01 JD-04 N/A JD-10 N/A 19 N/A 24 27 N/A 31 RD06 RD07 RD08 RD09 RD10 RD11 RD12 ETXEN/PMD14/CN15/RD6 ETXCLK/PMD15/CN16/RD7 RTCC/EMDIO/AEMDIO/IC1/RD8 SS1/IC2/RD9 SCK1/IC3/PMCS2/PMA15/RD10 EMDC/AEMDC/IC4/PMCS1/PMA14/RD11 ETXD2/IC5/PMD12/RD12 80 47 N/A JE-01 60 32 RD13 RD14 ETXD3/PMD13/CN19/RD13 AETXD0/SS1A/U1BRX/U1ACTS/CN20/RD14 48 93 94 9
Cerebot MX7cK Reference Manual 95 1 LD3 LD4 www.digilentinc.com 53 54 RG14 RG15 TRD2/RG14 AERXERR/RG15 LED3 LED4 page 34 of 36 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.
Cerebot MX7cK Reference Manual Declaration of Conformity In accordance with EN ISO/IEC 17050-1:2010 Manufacturers Name: Manufacturers Address: Application of Council Directives: EMC Standards: EMC Digilent, Inc. 1300 NE Henley Court Pullman, WA 99163 U.S.A.
Cerebot MX7cK Reference Manual Title: www.digilentinc.com President___________ page 36 of 36 Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.