Bläddra i källkod

Update MKS sBase pins (#11357)

forkoz 7 år sedan
förälder
incheckning
d1c6687ecd
1 ändrade filer med 37 tillägg och 18 borttagningar
  1. 37
    18
      Marlin/src/pins/pins_MKS_SBASE.h

+ 37
- 18
Marlin/src/pins/pins_MKS_SBASE.h Visa fil

@@ -36,11 +36,13 @@
36 36
 
37 37
 // unused
38 38
 /*
39
-#define PIN_P0_27          P0_27
40
-#define PIN_P0_28          P0_28
39
+#define PIN_P0_27          P0_27   // EXP2/Onboard SD
40
+#define PIN_P0_28          P0_28   // EXP2
41
+#define PIN_P0_02          P0_02   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
42
+#define PIN_P0_03          P0_03   // AUX1 (Interrupt Capable/ADC/Serial Port 0)
41 43
 */
42 44
 
43
-#define LED_PIN           P1_18 // LED2 P1_19, LED3 P1_20, LED4 P1_21
45
+#define LED_PIN            P1_18   // LED2 P1_19, LED3 P1_20, LED4 P1_21
44 46
 
45 47
 //
46 48
 // Servo pin
@@ -51,7 +53,7 @@
51 53
 #define SERVO3_PIN         P4_28   // J8-6
52 54
 
53 55
 //
54
-// Limit Switches
56
+// Limit Switches - Not Interrupt Capable
55 57
 //
56 58
 #define X_MIN_PIN          P1_24   // 10k pullup to 3.3V, 1K series
57 59
 #define X_MAX_PIN          P1_25   // 10k pullup to 3.3V, 1K series
@@ -104,6 +106,8 @@
104 106
 
105 107
 //
106 108
 // Connector J7
109
+// Note: These pins are all digitally shared with the EXP1/EXP2 Connector.
110
+// Using them with an LCD connected or configured will lead to hangs & crashes.
107 111
 //
108 112
 
109 113
 // 5V
@@ -111,7 +115,7 @@
111 115
 // GND
112 116
 #define PIN_P0_17          P0_17
113 117
 #define PIN_P0_16          P0_16
114
-#define PIN_P0_14          P0_14
118
+#define PIN_P0_15          P0_15
115 119
 
116 120
 
117 121
 //
@@ -120,24 +124,24 @@
120 124
 
121 125
 // GND
122 126
 #define PIN_P1_22          P1_22
123
-#define PIN_P1_23          P1_23
124
-#define PIN_P2_12          P2_12
125
-#define PIN_P2_11          P2_11
127
+#define PIN_P1_23          P1_23   // PWM Capable
128
+#define PIN_P2_12          P2_12   // Interrupt Capable
129
+#define PIN_P2_11          P2_11   // Interrupt Capable
126 130
 #define PIN_P4_28          P4_28
127 131
 
128 132
 //
129 133
 // Prusa i3 MK2 Multi Material Multiplexer Support
130 134
 //
131 135
 #if ENABLED(MK2_MULTIPLEXER)
132
-  #define E_MUX0_PIN         P1_23   // J8-3
133
-  #define E_MUX1_PIN         P2_12   // J8-4
134
-  #define E_MUX2_PIN         P2_11   // J8-5
136
+  #define E_MUX0_PIN       P1_23   // J8-3
137
+  #define E_MUX1_PIN       P2_12   // J8-4
138
+  #define E_MUX2_PIN       P2_11   // J8-5
135 139
 #endif
136 140
 
137 141
 //
138 142
 // Misc. Functions
139 143
 //
140
-#define PS_ON_PIN          P0_25
144
+#define PS_ON_PIN          P0_25 //TH3 Connector
141 145
 #define LPC_SOFTWARE_SPI  // MKS_SBASE needs a software SPI because the
142 146
                           // selected pins are not on a hardware SPI controller
143 147
 
@@ -163,7 +167,7 @@
163 167
   #define LCD_SDSS         P0_28   // EXP2.4
164 168
   #define LCD_PINS_ENABLE  P0_18   // EXP1.3
165 169
   #define LCD_PINS_D4      P0_15   // EXP1.5
166
-#endif // ULTRA_LCD
170
+#endif
167 171
 
168 172
 //
169 173
 // Ethernet pins
@@ -173,6 +177,7 @@
173 177
   #define ENET_RX_ER       P1_14   // J12-6
174 178
   #define ENET_RXD1        P1_10   // J12-8
175 179
 #endif
180
+
176 181
 #define ENET_MOC           P1_16   // J12-3
177 182
 #define REF_CLK            P1_15   // J12-5
178 183
 #define ENET_RXD0          P1_09   // J12-7
@@ -202,7 +207,6 @@
202 207
  */
203 208
 #define SD_DETECT_PIN      P2_11   // J8-5 (moved from EXP2 P0.27)
204 209
 
205
-
206 210
 /**
207 211
  *  PWMs
208 212
  *
@@ -226,9 +230,24 @@
226 230
 
227 231
  /**
228 232
   * Special pins
229
-  *   P1_30 - not 5V tolerant
230
-  *   P1_31 - not 5V tolerant
231
-  *   P0_27 - open collector
232
-  *   P0_28 - open collector
233
+  *   P1_30 - not 5V tolerant - EXP1
234
+  *   P1_31 - not 5V tolerant - EXP1
235
+  *   P0_27 - open collector  - EXP2
236
+  *   P0_28 - open collector  - EXP2
237
+  *
238
+  */
239
+
240
+ /**
241
+  * Serial Ports
242
+  *   P0_00 - Port  3
243
+  *   P0_01
244
+  *   P0_10 - Port  2
245
+  *   P0_11
246
+  *   P0_15 - Port  1
247
+  *   P0_16
248
+  *   P0_02 - Port  0
249
+  *   P0_03 - AUX1
250
+  *   P0_29 - Port -1
251
+  *   P0_30 - USB
233 252
   *
234 253
   */

Laddar…
Avbryt
Spara