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_shield_network:refmanual [2014/10/07 21:52] – Keith Vogelchipkit_shield_network:refmanual [2022/10/04 11:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== chipKIIT™ Network Shielld™ ====== +====== chipKIT™ Network Shield™ Reference Manual======
-====== Reference Manual ====== +
 **Revision:** August 27, 2013 **Revision:** August 27, 2013
  
 **Note:** This document applies to REV D of the shield. **Note:** This document applies to REV D of the shield.
  
-===== Overview =====+ 
 +====== Overview ======
  
 The chipKIT Network Shield is an input/output The chipKIT Network Shield is an input/output
Line 38: Line 37:
 as the Max32 board. as the Max32 board.
  
-{{ :chipkit_shield_network:chipkit-networkshield-obl-2400.png?300|}}+{{:chipkit_shield_network:chipkit-networkshield-obl-600.jpg?300 |}}
  
 Features include: Features include:
Line 52: Line 51:
  
  
-=== chipKIT Network Shield Hardware Overview ===+ 
 + 
 +---- 
 + 
 +====== 1. chipKIT Network Shield Hardware Overview ======
  
 The Network Shield has the following hardware features: The Network Shield has the following hardware features:
Line 58: Line 61:
 {{ :chipkit_shield_network:chipkit-networkshield-diagram-650.jpg?500 |}} {{ :chipkit_shield_network:chipkit-networkshield-diagram-650.jpg?500 |}}
  
-=== 1. USB Connectors ===+**1. USB Connectors**
  
 The connector on top of the board is a standard USB A-type receptacle. This is used when The connector on top of the board is a standard USB A-type receptacle. This is used when
Line 65: Line 68:
 Shield is used as a USB device or when using it as a USB OTG device. Shield is used as a USB device or when using it as a USB OTG device.
  
-=== 2. Ethernet Connector with Integral Magnetics ===+**2. Ethernet Connector with Integral Magnetics**
  
 This connector is used to connect the Max32/Network Shield to an Ethernet network. This connector is used to connect the Max32/Network Shield to an Ethernet network.
  
-=== 3. JP4: USB Host Connector Selection ===+**3. JP4: USB Host Connector Selection**
  
 When the Max32/Network Shield is used as a USB host, this jumper is used to select When the Max32/Network Shield is used as a USB host, this jumper is used to select
 which USB connector is being used. which USB connector is being used.
  
-=== 4. J17: Power Pass-Through Connector ===+**4. J17: Power Pass-Through Connector**
  
 This connector passes the power connector from the Max32 through the Network Shield This connector passes the power connector from the Max32 through the Network Shield
 and powers the Network Shield from the Max32. and powers the Network Shield from the Max32.
  
-=== 5. J9 & J12: Analog Signal Pass-Through Connectors ===+**5. J9 & J12: Analog Signal Pass-Through Connectors**
  
 These connectors pass the analog input pins on the Max32 through the Network Shield. These connectors pass the analog input pins on the Max32 through the Network Shield.
  
-=== 6. CAN2 Connector === +**6. CAN2 Connector**
  
 This connector provides access to the signals for CAN2. This connector provides access to the signals for CAN2.
  
-=== 7. CAN1 Connector === +**7. CAN1 Connector**
  
 This connector provides access to the signals for CAN1. This connector provides access to the signals for CAN1.
  
-=== 8. Digital Signal Connector ===+**8. Digital Signal Connector**
  
 This connector provides most of the signals used by the Ethernet and USB interfaces from This connector provides most of the signals used by the Ethernet and USB interfaces from
Line 97: Line 100:
 Network Shield. Network Shield.
  
-=== 9. J7: I2C #1 Daisy Chain Connector ===+**9. J7: I2C #1 Daisy Chain Connector**
  
 This is a 2x4 pin header connector that provides access to the I2C signals SDA and SCL This is a 2x4 pin header connector that provides access to the I2C signals SDA and SCL
Line 104: Line 107:
 of I2C peripheral modules that can be accessed using this connector. of I2C peripheral modules that can be accessed using this connector.
  
-=== 10. J6: I2C #2 Daisy Chain Connector ===+**10. J6: I2C #2 Daisy Chain Connector**
  
 This is a 2x4 pin header connector that provides access to the I2C signals SDA and SCL This is a 2x4 pin header connector that provides access to the I2C signals SDA and SCL
Line 111: Line 114:
 pull-ups are adjacent to this connector. pull-ups are adjacent to this connector.
  
-=== 11. Digital Signal Connectors ===+**11. Digital Signal Connectors**
  
 Some of the signals used by the Network Shield are provided on these connectors. The Some of the signals used by the Network Shield are provided on these connectors. The
Line 117: Line 120:
  
  
 +----
  
-===== chipKIT Network Shield Hardware Description ===== 
  
 +====== 2. chipKIT Network Shield Hardware Description ======
  
-==== Introduction ==== 
  
 The following describes the hardware on the The following describes the hardware on the
Line 136: Line 139:
  
  
-==== Ethernet Interface ====+===== 2.1. Ethernet Interface =====
  
 The Network Shield can interface with 10Mbps The Network Shield can interface with 10Mbps
Line 173: Line 176:
 a packet. An Ethernet MAC uses a 48-bit a packet. An Ethernet MAC uses a 48-bit
 address value, commonly called the ‘MAC address value, commonly called the ‘MAC
-Address’. These address values are globally+Address'. These address values are globally
 unique to ensure that no two devices on a unique to ensure that no two devices on a
 network can have conflicting addresses. MAC network can have conflicting addresses. MAC
Line 231: Line 234:
 main program module: main program module:
  
-#pragma config FETHIO=ON+<code>#pragma config FETHIO=ON</code>
  
-#pragma config FMIIEN=OFF+<code>#pragma config FMIIEN=OFF</code>
  
  
Line 264: Line 267:
  
  
-==== USB Interface ====+===== 2.2. USB Interface =====
  
  
Line 423: Line 426:
  
  
-==== CAN Interfaces ====+===== 2.3. CAN Interfaces =====
  
  
Line 460: Line 463:
 module: module:
  
-#pragma config FCANIO=OFF+<code>#pragma config FCANIO=OFF</code>
  
  
Line 514: Line 517:
 the termination resistors and jumpers to the termination resistors and jumpers to
 enable/disable them depending on the location enable/disable them depending on the location
-of the board in the network. Jumper JP6 is+of the board in the network. Jumper JP2 is
 used to enable/disable the termination resistor used to enable/disable the termination resistor
-for the CAN1 network, and JP8 is used to+for the CAN1 network, and JP7 is used to
 enable/disable the termination resistor for enable/disable the termination resistor for
 CAN2. Install a shorting block on the jumper CAN2. Install a shorting block on the jumper
Line 524: Line 527:
  
  
-==== I2C Busses and Connectors ====+===== 2.4. I2C Busses and Connectors =====
  
  
Line 629: Line 632:
  
  
-==== EEPROM ====+==== 2.4.1. EEPROM ====
  
  
Line 650: Line 653:
  
  
-==== 32.768Khz Oscillator ====+===== 2.5. 32.768KHz Oscillator =====
  
  
-A 32.768Khz oscillator is provided for use as a+A 32.768KHz oscillator is provided for use as a
 clock source for the real-time clock/calendar clock source for the real-time clock/calendar
 (RTCC) peripheral in the PIC32MX796 (RTCC) peripheral in the PIC32MX796
Line 668: Line 671:
  
  
- +----
- +
-==== Appendix A: chipKIT Network Shield Pinout Tables ==== +
- +
- +
  
  
  
  
 +====== Appendix A: chipKIT Network Shield Pinout Tables ======
 +===== Pins Used by the Ethernet Interface =====
 +^ chipKIT Pin #  ^ PIC32 Pin #  ^ Pin     ^ Signal                                                           ^ Notes    ^
 +| 46             | 88           | J10-8   | C1TX/ETXD0/PMD10/RF1                                             | ETXD0    |
 +| 45             | 87           | J10-9   | C1RX/ETXD1/PMD11/RF0                                             | ETXD1    |
 +| 47             | 83           | J10-7   | ETXEN/PMD14/CN15/RD6                                             | ETXEN    |
 +| 48             | 68           | J10-6   | RTCC/EMDIO/AEMDIO/IC1/RD8                                        | EMDIO    |
 +| 49             | 71           | J10-5   | EMDC/AEMDC/IC4/PMCS1/PMA14/RD11                                  | EMDC     |
 +| 53             | 14           | J10-1   | ERXCLK/AERXCLK/EREFCLK/AEREFCLK/SS2A/U2BRX/U2ACTS/PMA2/CN11/RG9  | EREFCLK  |
 +| 43             | 12           | J10-11  | ERXDV/AERXDV/ECRSDV/AECRSDV/SCL2A/SDO2A/UATX/PMA3/CN10/RG8       | ECRSDV   |
 +| 40             | 35           | J10-14  | AN11/ERXERR/AETXERR/PMA12/RB11                                   | ERXERR   |
 +| 42             | 41           | J10-12  | AN12/ERXD0/AECRS/PMA11/RB12                                      | ERXD0    |
 +| 41             | 42           | J10-13  | AN13/ERXD1/AECOL/PMA10/RB13                                      | ERXD1    |
 +| 7              | 19           | J11-15  | AERXD0/INT2/RE9                                                  | NRST     |
  
  
 +===== Pins Used by the USB Interface =====
  
 +^ chipKIT Pin #  ^ PIC32 Pin #  ^ Pin     ^ Signal                    ^ Notes  ^
 +| 27             | 57           | J13-11  | USBD+/RG2                 |        |
 +| 26             | 56           | J13-12  | USBD-/RG3                 |        |
 +| 25             | 51           | J13-13  | USBID/RF3                 |        |
 +| A5/59          | 20           | J9-6    | AN5/C1IN+/VBUSON/CN7/RB5  |        |
 +| 2              | 18           | J11-5   | AERXD0/INT1/RE8           |        |
  
  
 +===== Pins Used by CAN Interfaces =====
  
 +^ chipKIT Pin #  ^ PIC32 Pin #  ^ Pin     ^ Signal                         ^ Notes  ^
 +| 14             | 39           | J16-8   | AC1TX/SCK3A/U3BTX/U3ARTS/RF13  | CAN1   |
 +| 15             | 40           | J16-7   | AC1RX/SS3A/U3BRX/U3ACTS/RF12   | CAN1   |
 +| 22             | 7            | J10-16  | T3CK/AC2TX/RC2                 | CAN2   |
 +| 23             | 8            | J10-15  | T4CK/AC2RX/RC3                 | CAN2   |
  
  
 +===== Pins Used by I2C Interfaces =====
  
 +^ chipKIT Pin #  ^ PIC32 Pin #  ^ Pin                       ^ Signal                  ^ Notes                              ^
 +| 21             | 66           | J16-1, J19-2, J7-1, J7-2  | AETXCLK/SCL1/INT3/RA14  | I2C1 – also attached to EXT INT 3  |
 +| 20             | 67           | J16-2, J19-1, J7-3, J7-4  | AETXEN/SDA1/INT4/RA15   | I2C1 – also attached to EXT INT 4  |
 +| 12             | 58           | J8-9, J6-1, J6-2          | SCL2/RA2                | I2C2                               |
 +| 13             | 59           | J8-11, J6-3 J6-4          | SDA2/RA3                | I2C2                               |