| Line 1... |
Line 1... |
| 1 |
// PIC32MX795F512L
|
1 |
// PIC32MX795F512L
|
| 2 |
|
2 |
|
| - |
|
3 |
// Uncomment ONE of the following:
|
| - |
|
4 |
//#define CEREBOT_32MX7
|
| - |
|
5 |
#define CEREBOT_MX7CK
|
| - |
|
6 |
|
| 3 |
// Power supply must be 5V for proper operation of the board!
|
7 |
// Power supply must be 5V for proper operation of the board!
|
| 4 |
|
8 |
|
| 5 |
#define CPU_CLOCK_HZ 80000000UL
|
9 |
#define CPU_CLOCK_HZ 80000000UL
|
| 6 |
#define PERIPHERAL_CLOCK_HZ 80000000UL
|
10 |
#define PERIPHERAL_CLOCK_HZ 80000000UL
|
| 7 |
#define CPU_CT_HZ (CPU_CLOCK_HZ/2UL)
|
11 |
#define CPU_CT_HZ (CPU_CLOCK_HZ/2UL)
|
| Line 63... |
Line 67... |
| 63 |
*
|
67 |
*
|
| 64 |
JE-01 AETXD0/SS3/U4RX/U1CTS/CN20/RD14 RD14
|
68 |
JE-01 AETXD0/SS3/U4RX/U1CTS/CN20/RD14 RD14
|
| 65 |
JE-02 SCL3/SDO3/U1TX/RF8 RF08
|
69 |
JE-02 SCL3/SDO3/U1TX/RF8 RF08
|
| 66 |
JE-03 SDA3/SDI3/U1RX/RF2 RF02
|
70 |
JE-03 SDA3/SDI3/U1RX/RF2 RF02
|
| 67 |
JE-04 AETXD1/SCK3/U4TX/U1RTS/CN21/RD15 RD15
|
71 |
JE-04 AETXD1/SCK3/U4TX/U1RTS/CN21/RD15 RD15
|
| 68 |
JE-07 TRCLK/RA6 RA06
|
72 |
JE-07 TRCLK/RA6 RA06 on 32MX7 or INT1/RF8 on MX7CK
|
| 69 |
JE-08 TRD3/RA7 RA07
|
73 |
JE-08 TRD3/RA7 RA07
|
| 70 |
JE-09 Vref-/CVref-/AERXD2/PMA7/RA9 RA09
|
74 |
JE-09 Vref-/CVref-/AERXD2/PMA7/RA9 RA09
|
| 71 |
JE-10 Vref+/CVref+/AERXD3/PMA6/RA10 RA10
|
75 |
JE-10 Vref+/CVref+/AERXD3/PMA6/RA10 RA10
|
| 72 |
*
|
76 |
*
|
| 73 |
JF-01 AC1RX/SS4/U5RX/U2CTS/RF12 RF12 shared with CAN1 Transceiver (JP-1)
|
77 |
JF-01 AC1RX/SS4/U5RX/U2CTS/RF12 RF12 shared with CAN1 Transceiver (JP-1)
|
| 74 |
JF-02 SCL5/SDO4/U2TX/PMA8/CN18/RF5 RF05
|
78 |
JF-02 SCL5/SDO4/U2TX/PMA8/CN18/RF5 RF05
|
| 75 |
JF-03 SDA5/SDI4/U2RX/PMA9/CN17/RF4 RF04
|
79 |
JF-03 SDA5/SDI4/U2RX/PMA9/CN17/RF4 RF04
|
| 76 |
JF-04 AC1TX/SCK4/U5TX/U2RTS/RF13 RF13 shared with CAN1 Transceiver (JP-2)
|
80 |
JF-04 AC1TX/SCK4/U5TX/U2RTS/RF13 RF13 shared with CAN1 Transceiver (JP-2)
|
| 77 |
JF-07 TMS/RA0 RA00
|
81 |
JF-07 TMS/RA0 RA00 on 32MX7 or INT2/RF9 on MX7CK
|
| 78 |
JF-08 TCK/RA1 RA01
|
82 |
JF-08 TCK/RA1 RA01
|
| 79 |
JF-09 TDI/RA4 RA04
|
83 |
JF-09 TDI/RA4 RA04
|
| 80 |
JF-10 TDO/RA5 RA05
|
84 |
JF-10 TDO/RA5 RA05
|
| 81 |
|
85 |
|
| 82 |
N/A SCL2/RA2 RA02 I2C bus #2, not shared with Pmod connector
|
86 |
N/A SCL2/RA2 RA02 I2C bus #2, not shared with Pmod connector
|
| Line 115... |
Line 119... |
| 115 |
*/
|
119 |
*/
|
| 116 |
// </editor-fold>
|
120 |
// </editor-fold>
|
| 117 |
|
121 |
|
| 118 |
// <editor-fold defaultstate="collapsed" desc="Connectors">
|
122 |
// <editor-fold defaultstate="collapsed" desc="Connectors">
|
| 119 |
/*
|
123 |
/*
|
| - |
|
124 |
J1 - Serial USB Misc Connections (MX7CK only)
|
| - |
|
125 |
* This header contains other FTDI UART function pins (CTS, DSR, DCD, RI)
|
| - |
|
126 |
J2 - Serial USB Connector (MX7CK only)
|
| - |
|
127 |
* This connector is connected to UART1 or PMOD JE
|
| 120 |
J7 - I2C port #2 daisy chain connector
|
128 |
J7 - I2C port daisy chain connector
|
| 121 |
* This connector provides access to the I2C signals, power and ground for I2C port #2.
|
129 |
* On the Cerebot 32MX7, this connector provides access to the I2C signals, power and ground for I2C2.
|
| - |
|
130 |
* On the Cerebot MX7CK, this connector provides access to the I2C signals, power and ground for I2C1 + INT3/4.
|
| 122 |
J8 - I2C port #1 daisy chain connector
|
131 |
J8 - I2C port daisy chain connector
|
| 123 |
* This connector provides access to the I2C signals, power and ground for I2C port #1.
|
132 |
* On the Cerebot 32MX7, this connector provides access to the I2C signals, power and ground for I2C1.
|
| - |
|
133 |
* On the Cerebot MX7CK, this connector provides access to the I2C signals, power and ground for I2C2.
|
| - |
|
134 |
EEPROM is changed to this port on the MX7CK
|
| 124 |
J9 - CAN #1 Connector
|
135 |
J9 - CAN #1 Connector
|
| 125 |
* This connector is used to access the signals for CAN #1.
|
136 |
* This connector is used to access the signals for CAN #1.
|
| 126 |
J10 - CAN #2 Connector
|
137 |
J10 - CAN #2 Connector
|
| 127 |
* This connector is used to access the signals for CAN #2.
|
138 |
* This connector is used to access the signals for CAN #2.
|
| 128 |
J11 - Ethernet Connector
|
139 |
J11 - Ethernet Connector
|
| Line 159... |
Line 170... |
| 159 |
*/
|
170 |
*/
|
| 160 |
// </editor-fold>
|
171 |
// </editor-fold>
|
| 161 |
|
172 |
|
| 162 |
// <editor-fold defaultstate="collapsed" desc="Jumpers">
|
173 |
// <editor-fold defaultstate="collapsed" desc="Jumpers">
|
| 163 |
/*
|
174 |
/*
|
| 164 |
J20 - USB Host Connector
|
- |
|
| 165 |
* This is a standard sized USB type A connector. This connector is used to
|
- |
|
| 166 |
connect USB devices to the board when using the PIC32MX795 microcontroller
|
- |
|
| 167 |
to implement an embedded USB host.
|
- |
|
| 168 |
JP1 & JP2 - CAN or Pmod Select
|
175 |
JP1 & JP2 - CAN or Pmod Select
|
| 169 |
* These jumpers select microcontroller signals RF12 and RF13 for use with CAN
|
176 |
* These jumpers select microcontroller signals RF12 and RF13 for use with CAN
|
| 170 |
#1 or Pmod connector JF. Place these jumpers in the CAN position to use CAN
|
177 |
#1 or Pmod connector JF. Place these jumpers in the CAN position to use CAN
|
| 171 |
#1. Place the jumpers in the PMOD position to use then with Pmod connector JF.
|
178 |
#1. Place the jumpers in the PMOD position to use then with Pmod connector JF.
|
| 172 |
JP3 & JP4 - Pull-up enable for I2C port #2
|
179 |
JP3 & JP4 - Pull-up enable for I2C port #2
|
| Line 189... |
Line 196... |
| 189 |
JP8 - CAN #1 5V0 Enable
|
196 |
JP8 - CAN #1 5V0 Enable
|
| 190 |
* This jumper is used to enable/disable providing 5V to the CAN #1 connector.
|
197 |
* This jumper is used to enable/disable providing 5V to the CAN #1 connector.
|
| 191 |
Insert the shorting block to connect the board 5V0 supply to pins 9 & 10 of
|
198 |
Insert the shorting block to connect the board 5V0 supply to pins 9 & 10 of
|
| 192 |
CAN #1 connector. Remove the shorting block to disconnect the 5V0 supply.
|
199 |
CAN #1 connector. Remove the shorting block to disconnect the 5V0 supply.
|
| 193 |
JP9 - Do Not Use
|
200 |
JP9 - Do Not Use
|
| 194 |
JP10 - USB host power select
|
201 |
JP10 - USB Host Power Select
|
| 195 |
* This jumper is used to select which host connector is powered when host power
|
202 |
* This jumper is used to select which host connector is powered when host power
|
| 196 |
is enabled. Place the shorting block in the ?MICRO? position to supply power
|
203 |
is enabled. Place the shorting block in the ?MICRO? position to supply power
|
| 197 |
to the USB micro-AB OTG Connector, J19. Place the shorting block in the ?A?
|
204 |
to the USB micro-AB OTG Connector, J19. Place the shorting block in the ?A?
|
| 198 |
position to supply power to the USB type A Host Connector, J20.
|
205 |
position to supply power to the USB type A Host Connector, J20.
|
| - |
|
206 |
JP11 - Programmer Serial Select (MX7CK only)
|
| - |
|
207 |
* Remove the jumper to disconnect the USB serial converter's connection to the
|
| - |
|
208 |
MCLR pin. Disconnecting this when using the built in debugger is recommended.
|
| 199 |
JP17 - Do Not Use
|
209 |
JP17 - Do Not Use
|
| 200 |
*/
|
210 |
*/
|
| 201 |
// </editor-fold>
|
211 |
// </editor-fold>
|