Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| chipkit_cmod:refmanual [2015/03/18 22:34] – brandon marcum | chipkit_cmod:refmanual [2022/10/04 11:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ---- | ---- | ||
| - | ==== Revision History ==== | + | ===== Revision History |
| Revised November 2013 | Revised November 2013 | ||
| Line 13: | Line 13: | ||
| ===== Overview ===== | ===== Overview ===== | ||
| - | The chipKIT Cmod is a chipKIT/ | + | The chipKIT Cmod is a chipKIT/ |
| The chipKIT Cmod takes advantage of the powerful [[http:// | The chipKIT Cmod takes advantage of the powerful [[http:// | ||
| Line 24: | Line 24: | ||
| {{ : | {{ : | ||
| - | The chipKIT Cmod is also fully compatible with the advanced Microchip MPLAB® IDE. To develop embedded applications using MPLAB®, a separate device programmer/ | + | The chipKIT Cmod is also fully compatible with the advanced Microchip MPLAB® IDE. To develop embedded applications using MPLAB®, a separate device programmer/ |
| Features Include: | Features Include: | ||
| Line 37: | Line 37: | ||
| * 13 analog inputs | * 13 analog inputs | ||
| * 3.3V operating voltage | * 3.3V operating voltage | ||
| - | * Two Pmod connectors | + | * Two Pmod ports for Digilent peripheral module boards |
| ---- | ---- | ||
| - | ===== 1 Functional Description ===== | + | ===== 1. Functional Description ===== |
| {{ : | {{ : | ||
| Line 48: | Line 48: | ||
| - | The chipKIT Cmod provides 33 I/O pins located on the 40-pin DIP package. Some pins share functions with the onboard circuits such as the on-board LEDs, the UART data lines used by the USB serial converter, or the Pmod connectors | + | The chipKIT Cmod provides 33 I/O pins located on the 40-pin DIP package. Some pins share functions with the onboard circuits such as the on-board LEDs, the UART data lines used by the USB serial converter, or the Pmod ports (see the schematic for details). If these peripherals are needed in the design, then the microcontroller can be reconfigured to allow these pins to be used for other purposes. Thirteen of the digital I/O pins can also be used as analog input pins. |
| The PIC32MX150F128D microcontroller supports peripheral functions such as UART, SPI, and I2C, as well as pulse-width-modulated outputs. To use the peripheral functions the PIC32MX1xx family of microcontrollers features a mappable I/O system called peripheral pin select (PPS), which allows select peripheral functionality to be mapped to multiple pins on the device. The default chipKIT Cmod board support files provide a specific mapping of peripheral functions to microcontroller pins. This default pin mapping can be over-ridden by the user’s MPLABX program if a different mapping is desired (this requires the mentioned, compatible debugger). | The PIC32MX150F128D microcontroller supports peripheral functions such as UART, SPI, and I2C, as well as pulse-width-modulated outputs. To use the peripheral functions the PIC32MX1xx family of microcontrollers features a mappable I/O system called peripheral pin select (PPS), which allows select peripheral functionality to be mapped to multiple pins on the device. The default chipKIT Cmod board support files provide a specific mapping of peripheral functions to microcontroller pins. This default pin mapping can be over-ridden by the user’s MPLABX program if a different mapping is desired (this requires the mentioned, compatible debugger). | ||
| - | ==== 1.1 Hardware Overview ==== | + | ==== 1.1. Hardware Overview ==== |
| {{ : | {{ : | ||
| Line 59: | Line 59: | ||
| | 1 | J3 USB connector for USB serial converter | | 1 | J3 USB connector for USB serial converter | ||
| | 2 | JP2 Microchip ICSP Connector | | | 2 | JP2 Microchip ICSP Connector | | ||
| - | | 3 | J1-J2 Digilent Pmod connectors | + | | 3 | J1-J2 Digilent Pmod ports | |
| | 4 | 40 Pin DIP connector | | 4 | 40 Pin DIP connector | ||
| | 5 | User LEDs | | | 5 | User LEDs | | ||
| Line 68: | Line 68: | ||
| ---- | ---- | ||
| - | ===== 2 Programming Tools ===== | + | ===== 2. Programming Tools ===== |
| - | The ChipKIT | + | The chipKIT |
| - | The ChipKIT | + | The chipKIT |
| - | ==== 2.1 MPIDE and USB Serial Communications ==== | + | ==== 2.1. MPIDE and USB Serial Communications ==== |
| The chipKIT Cmod board is designed to be used with the Multi-Platform IDE (MPIDE). The MPIDE development platform was created by modifying the Arduino™ IDE. It is backwards-compatible with the Arduino IDE. | The chipKIT Cmod board is designed to be used with the Multi-Platform IDE (MPIDE). The MPIDE development platform was created by modifying the Arduino™ IDE. It is backwards-compatible with the Arduino IDE. | ||
| Line 90: | Line 90: | ||
| Two red LEDs (LD1 and LD2) will blink when data is being sent or received between the chipKIT Cmod and the PC over the serial connection. | Two red LEDs (LD1 and LD2) will blink when data is being sent or received between the chipKIT Cmod and the PC over the serial connection. | ||
| - | ==== 2.2 Microchip Development Tool Compatibility ==== | + | ==== 2.2. Microchip Development Tool Compatibility ==== |
| In addition to being used with the MPIDE, the chipKIT Cmod board can be used as a more traditional microcontroller development board using Microchip' | In addition to being used with the MPIDE, the chipKIT Cmod board can be used as a more traditional microcontroller development board using Microchip' | ||
| Line 97: | Line 97: | ||
| {{ : | {{ : | ||
| - | Typically, a right-angle male connector is used in JP2 so that the programmer can be attached coplanar with the chipKIT Cmod. The connector can be loaded from the top or the bottom. In either case, the programmer will be upside-down while the chipKIT Cmod board is upright (button, LEDs, and Pmod connectors | + | Typically, a right-angle male connector is used in JP2 so that the programmer can be attached coplanar with the chipKIT Cmod. The connector can be loaded from the top or the bottom. In either case, the programmer will be upside-down while the chipKIT Cmod board is upright (button, LEDs, and Pmod ports visible). Ensure that pin 1 on the programmer is connected to the square solder pad on JP2. In some cases, because of mechanical clearance limitations, |
| The Microchip MPLAB® IDE or the MPLAB® X IDE can be used to program and debug code running on the chipKIT Cmod board. These programs can be downloaded from the Microchip web site. | The Microchip MPLAB® IDE or the MPLAB® X IDE can be used to program and debug code running on the chipKIT Cmod board. These programs can be downloaded from the Microchip web site. | ||
| - | ==== 2.3 Reloading the Boot Loader ==== | + | ==== 2.3. Reloading the Boot Loader ==== |
| Using the Microchip development tools to program the board will cause the boot loader to be erased. To use the board with the MPIDE again, it is necessary to program the boot loader back onto the board. The boot loader compiled image can be found on the chipKIT Cmod producg page on the Digilent web site. The source code project for the boot loader is available on the Git server www.github.com. | Using the Microchip development tools to program the board will cause the boot loader to be erased. To use the board with the MPIDE again, it is necessary to program the boot loader back onto the board. The boot loader compiled image can be found on the chipKIT Cmod producg page on the Digilent web site. The source code project for the boot loader is available on the Git server www.github.com. | ||
| Line 118: | Line 118: | ||
| ---- | ---- | ||
| - | ===== 3 Power Supply ===== | + | ===== 3. Power Supply ===== |
| Line 128: | Line 128: | ||
| ---- | ---- | ||
| - | ===== 4 5V Compatibility ===== | + | ===== 4. 5V Compatibility ===== |
| The PIC32 microcontroller operates at 3.3V. There are two issues to consider when dealing with 5V compatibility for 3.3V logic. The first is protection of 3.3V inputs from damage caused by 5V signals. The second is whether the 3.3V output is high enough to be recognized as a logic high value by a 5V input. When driving a high impedance input (typical of CMOS logic), the output high voltage from the PIC32 microcontroller will be close to 3.3V. Some 5V devices will recognize this voltage as a logic high input, and some won’t. Many 5V logic devices will work reliably with 3.3V inputs. Please check the datasheet for the 5V components you are using to ensure that 3.3V will satisfy the logic high conditions for the components. | The PIC32 microcontroller operates at 3.3V. There are two issues to consider when dealing with 5V compatibility for 3.3V logic. The first is protection of 3.3V inputs from damage caused by 5V signals. The second is whether the 3.3V output is high enough to be recognized as a logic high value by a 5V input. When driving a high impedance input (typical of CMOS logic), the output high voltage from the PIC32 microcontroller will be close to 3.3V. Some 5V devices will recognize this voltage as a logic high input, and some won’t. Many 5V logic devices will work reliably with 3.3V inputs. Please check the datasheet for the 5V components you are using to ensure that 3.3V will satisfy the logic high conditions for the components. | ||
| Line 135: | Line 135: | ||
| ---- | ---- | ||
| - | ===== 5 Pmod™ Connectors | + | ===== 5. Pmod Ports ===== |
| - | The chipKIT Cmod has two connectors | + | The chipKIT Cmod has two ports for connecting Digilent |
| - | The Pmod connectors | + | The Pmod ports on the chipKIT Cmod are both twelve-pin connectors. The ports use standard pin headers with 100-mil spaced pins. The twelve-pin |
| - | The twelve-pin | + | The twelve-pin |
| - | The pin numbering that Digilent uses on the twelve-pin Pmod connectors | + | The pin numbering that Digilent uses on the twelve-pin Pmod ports is non-standard. |
| {{ : | {{ : | ||
| Line 149: | Line 149: | ||
| The upper row of pins are numbered 1–6, right to left (when viewed from the end of the connector), and the lower row of pins are numbered 7–12, right to left. 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. | The upper row of pins are numbered 1–6, right to left (when viewed from the end of the connector), and the lower row of pins are numbered 7–12, right to left. 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. | ||
| - | It is important to note that the Pmod connectors | + | It is important to note that the Pmod ports on the chipKIT Cmod are rotated 180 degrees in relation to each other. Pin 1 of each Pmod port is marked on the board. When viewing the top of the board, pin 1 of Pmod port J2 is the upper right pin, and pin 7 is immediately below it. For Pmod port J1, pin 1 is in the lower left corner and pin 7 is immediately above it. Connecting peripheral modules incorrectly could result in damaging the peripheral module or the chipKIT Cmod. \\ |
| {{ : | {{ : | ||
| Line 156: | Line 156: | ||
| ---- | ---- | ||
| - | ===== 6 Input/ | + | ===== 6. Input/ |
| Line 172: | Line 172: | ||
| ---- | ---- | ||
| - | ===== 7 Peripheral I/O Functions ===== | + | ===== 7. Peripheral I/O Functions ===== |
| The PIC32 microcontroller on the chipKIT board provides a number of peripheral functions. The following peripherals are provided: | The PIC32 microcontroller on the chipKIT board provides a number of peripheral functions. The following peripherals are provided: | ||
| Line 191: | Line 191: | ||
| ---- | ---- | ||
| - | ===== 8 Peripheral Pin Select ===== | + | ===== 8. Peripheral Pin Select ===== |
| An advanced feature of the PIC32MX1xx/ | An advanced feature of the PIC32MX1xx/ | ||
| Line 271: | Line 271: | ||
| * Indicates 5V tolerant pin on the PIC32MX150F128D | * Indicates 5V tolerant pin on the PIC32MX150F128D | ||
| - | ==== Appendix C: Pinout Table by Pmod Connector | + | ==== Appendix C: Pinout Table by Pmod Port Pin Number ==== |
| ^ Connector Pin # ^ DIP Pin # ^ chipKIT Pin # ^ PIC32 Pin # ^ PIC32 Signal ^ Notes^ | ^ Connector Pin # ^ DIP Pin # ^ chipKIT Pin # ^ PIC32 Pin # ^ PIC32 Signal ^ Notes^ | ||
| | J1-01 | | | J1-01 | | ||

