Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
chipkit_cmod:refmanual [2016/01/20 21:22] – [2. Programming Tools] Marthachipkit_cmod:refmanual [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 13: Line 13:
 ===== Overview ===== ===== Overview =====
  
-The chipKIT Cmod is a chipKIT/MPIDE compatible board from Digilent. It combines a Microchip® PIC32MX150F128D microcontroller with a convenient 600-mil, 40-pin DIP package and two Digilent Pmod connectors. Digilent’s Cmod boards are ideally suited for breadboards or other prototype circuit designs where the use of small surface mount packages is impractical.+The chipKIT Cmod is a chipKIT/MPIDE compatible board from Digilent. It combines a Microchip® PIC32MX150F128D microcontroller with a convenient 600-mil, 40-pin DIP package and two Digilent Pmod ports. Digilent’s Cmod boards are ideally suited for breadboards or other prototype circuit designs where the use of small surface mount packages is impractical.
  
 The chipKIT Cmod takes advantage of the powerful [[http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en557415| PIC32MX150F128D]] microcontroller. This microcontroller features a 32-bit MIPS processor core running at 40Mhz, 128K of flash memory, and 32K of SRAM data memory. The chipKIT Cmod takes advantage of the powerful [[http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en557415| PIC32MX150F128D]] microcontroller. This microcontroller features a 32-bit MIPS processor core running at 40Mhz, 128K of flash memory, and 32K of SRAM data memory.
Line 24: Line 24:
 {{ :chipkit_cmod:screen_shot_2015-01-29_at_11.13.45_pm.png?direct&300 |http://chipkit.net/started/learn-basics/mpide-quick-start-guide/}} {{ :chipkit_cmod:screen_shot_2015-01-29_at_11.13.45_pm.png?direct&300 |http://chipkit.net/started/learn-basics/mpide-quick-start-guide/}}
  
-The chipKIT Cmod is also fully compatible with the advanced Microchip MPLAB® IDE. To develop embedded applications using MPLAB®, a separate device programmer/debugger, such as the [[http://store.digilentinc.com/chipkit-pgm-programmer-debugger-for-use-with-digilent-chipkit-platforms/|Digilent chipKIT PGM]] or the Microchip PICkit™3 is required.+The chipKIT Cmod is also fully compatible with the advanced Microchip MPLAB® IDE. To develop embedded applications using MPLAB®, a separate device programmer/debugger, such as the Digilent chipKIT PGM or the Microchip PICkit™3 is required.
  
 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 for Digilent peripheral module boards +  * Two Pmod ports for Digilent peripheral module boards 
  
 ---- ----
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 (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 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).
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 69: Line 69:
 ---- ----
 ===== 2. Programming Tools ===== ===== 2. Programming Tools =====
-The chipKIT Cmod can be used with either MPIDE or the Microchip MPLAB® development environment. When used with the MPLAB IDE, in-system programming and debugging of firmware running on the PIC32MX150 microcontroller is supported using an external programming/debugging circuit licensed from Microchip, such as the [[http://store.digilentinc.com/chipkit-pgm-programmer-debugger-for-use-with-digilent-chipkit-platforms/|chipKIT PGM]] or the [[http://store.digilentinc.com/pickit-3-in-circuit-debugger/|PICkit 2/3]].+The chipKIT Cmod can be used with either MPIDE or the Microchip MPLAB® development environment. When used with the MPLAB IDE, in-system programming and debugging of firmware running on the PIC32MX150 microcontroller is supported using an external programming/debugging circuit licensed from Microchip, such as the chipKIT PGM or the PICkit 2/3.
  
 The chipKIT Cmod is immediately usable with either the MPLAB IDE or the MPIDE. The chipKIT Cmod is immediately usable with either the MPLAB IDE or the MPIDE.
Line 97: Line 97:
 {{ :chipkit_cmod:jp2_1.png?nolink|}}Unloaded connector JP2 on the right side of the Reset button is used to connect to a Microchip development tool, such as the chipKIT PGM or the PICkit™3. The holes for JP2 are staggered so that a standard 100-mil spaced 6-pin header can press fit to the board without the need to solder it in place. Any Microchip development tool that supports the PIC32 microcontroller family can be used. {{ :chipkit_cmod:jp2_1.png?nolink|}}Unloaded connector JP2 on the right side of the Reset button is used to connect to a Microchip development tool, such as the chipKIT PGM or the PICkit™3. The holes for JP2 are staggered so that a standard 100-mil spaced 6-pin header can press fit to the board without the need to solder it in place. Any Microchip development tool that supports the PIC32 microcontroller family can be used.
  
-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 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, it may be necessary to use a 6-wire cable to connect a programmer to the chpKIT Cmod board.+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, it may be necessary to use a 6-wire cable to connect a programmer to the chpKIT Cmod board.
  
 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.
Line 135: Line 135:
  
 ---- ----
-===== 5. Pmod™ Connectors =====+===== 5. Pmod Ports =====
  
-The chipKIT Cmod has two connectors for connecting Digilent Pmod peripheral modules. The Pmod connectors, labeled J1 and J2, are 2x6, female pin header connectors.+The chipKIT Cmod has two ports for connecting Digilent Pmods. The Pmod ports, labeled J1 and J2, are 2x6, female pin header connectors.
  
-The Pmod connectors on the chipKIT Cmod are both twelve-pin connectors. The connectors use standard pin headers with 100-mil spaced pins. The twelve-pin connectors have the pins in a 2x6 configuration.+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 ports have the pins in a 2x6 configuration.
  
-The twelve-pin connectors provide eight I/O signals, two 3.3V power pins, and two ground pins. The twelve-pin connectors have the signals arranged so that one twelve-pin connector is equivalent to two of the six-pin connectors. Pins 1–4 and 7–10 are the signal pins, pins 5 and 11 are the ground pins, and pins 6 and 12 are the power supply pins.  +The twelve-pin ports provide eight I/O signals, two 3.3V power pins, and two ground pins. The twelve-pin ports have the signals arranged so that one twelve-pin port is equivalent to two of the six-pin ports. Pins 1–4 and 7–10 are the signal pins, pins 5 and 11 are the ground pins, and pins 6 and 12 are the power supply pins.  
  
-The pin numbering that Digilent uses on the twelve-pin Pmod connectors is non-standard.+The pin numbering that Digilent uses on the twelve-pin Pmod ports is non-standard.
  
 {{ :chipkit_cmod:pmod_pins.png?nolink |}} {{ :chipkit_cmod:pmod_pins.png?nolink |}}
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 on the chipKIT Cmod are rotated 180 degrees in relation to each other. Pin 1 of each Pmod connector is marked on the board. When viewing the top of the board, pin 1 of Pmod connector J2 is the upper right pin, and pin 7 is immediately below it. For Pmod connector 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. \\ +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. \\ 
  
 {{ :chipkit_cmod:pmod_headers.png?nolink |}} {{ :chipkit_cmod:pmod_headers.png?nolink |}}
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 Pin Number ====+==== 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      |     24    |      24/A6    |      25     | AN6/RPC0/RC0             | SS1 |      | J1-01      |     24    |      24/A6    |      25     | AN6/RPC0/RC0             | SS1 |