2017-10-14 16:44:18 +02:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2020-02-03 15:00:57 +01:00
|
|
|
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2017-10-14 16:44:18 +02:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2017-10-14 16:44:18 +02:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2020-07-23 05:20:14 +02:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-10-14 16:44:18 +02:00
|
|
|
*
|
|
|
|
*/
|
2019-07-05 05:44:12 +02:00
|
|
|
#pragma once
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* MKS SBASE pin assignments
|
|
|
|
*/
|
|
|
|
|
2020-09-23 22:06:36 +02:00
|
|
|
#if defined(MKS_HAS_LPC1769) && NOT_TARGET(MCU_LPC1769)
|
2020-01-08 04:47:45 +01:00
|
|
|
#error "Oops! Make sure you have the LPC1769 environment selected in your IDE."
|
2020-09-23 22:06:36 +02:00
|
|
|
#elif NOT_TARGET(MKS_HAS_LPC1769, MCU_LPC1768)
|
2018-11-09 04:57:15 +01:00
|
|
|
#error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
|
2017-10-14 16:44:18 +02:00
|
|
|
#endif
|
|
|
|
|
2019-08-21 02:08:58 +02:00
|
|
|
#ifndef BOARD_INFO_NAME
|
|
|
|
#define BOARD_INFO_NAME "MKS SBASE"
|
2019-04-16 00:03:10 +02:00
|
|
|
#endif
|
|
|
|
#ifndef BOARD_WEBSITE_URL
|
2019-08-23 01:17:13 +02:00
|
|
|
#define BOARD_WEBSITE_URL "github.com/makerbase-mks/MKS-SBASE"
|
2019-04-16 00:03:10 +02:00
|
|
|
#endif
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define LED_PIN P1_18 // Used as a status indicator
|
|
|
|
#define LED2_PIN P1_19
|
|
|
|
#define LED3_PIN P1_20
|
|
|
|
#define LED4_PIN P1_21
|
2018-06-17 03:59:22 +02:00
|
|
|
|
2017-11-26 14:47:06 +01:00
|
|
|
//
|
2019-08-14 02:38:54 +02:00
|
|
|
// Servos
|
2017-11-26 14:47:06 +01:00
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SERVO0_PIN P1_23 // J8-3 (low jitter)
|
|
|
|
#define SERVO1_PIN P2_12 // J8-4
|
|
|
|
#define SERVO2_PIN P2_11 // J8-5
|
|
|
|
#define SERVO3_PIN P4_28 // J8-6
|
2017-11-26 14:47:06 +01:00
|
|
|
|
2017-10-14 16:44:18 +02:00
|
|
|
//
|
2018-07-26 02:19:09 +02:00
|
|
|
// Limit Switches - Not Interrupt Capable
|
2017-10-14 16:44:18 +02:00
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_MIN_PIN P1_24 // 10k pullup to 3.3V, 1K series
|
|
|
|
#define X_MAX_PIN P1_25 // 10k pullup to 3.3V, 1K series
|
|
|
|
#define Y_MIN_PIN P1_26 // 10k pullup to 3.3V, 1K series
|
|
|
|
#define Y_MAX_PIN P1_27 // 10k pullup to 3.3V, 1K series
|
|
|
|
#define Z_MIN_PIN P1_28 // The original Mks Sbase DIO19 has a 10k pullup to 3.3V or 5V, 1K series, so when using a Zprobe we must use DIO41 (J8 P1.22)
|
|
|
|
#define Z_MAX_PIN P1_29 // 10k pullup to 3.3V, 1K series
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2018-11-07 08:34:53 +01:00
|
|
|
#ifndef Z_MIN_PROBE_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_MIN_PROBE_PIN P4_28 // Connector J8
|
2018-11-07 08:34:53 +01:00
|
|
|
#endif
|
|
|
|
|
2017-10-14 16:44:18 +02:00
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_STEP_PIN P2_00
|
|
|
|
#define X_DIR_PIN P0_05
|
|
|
|
#define X_ENABLE_PIN P0_04
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Y_STEP_PIN P2_01
|
|
|
|
#define Y_DIR_PIN P0_11
|
|
|
|
#define Y_ENABLE_PIN P0_10
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define Z_STEP_PIN P2_02
|
|
|
|
#define Z_DIR_PIN P0_20
|
|
|
|
#define Z_ENABLE_PIN P0_19
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E0_STEP_PIN P2_03
|
|
|
|
#define E0_DIR_PIN P0_22
|
|
|
|
#define E0_ENABLE_PIN P0_21
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E1_STEP_PIN P2_08
|
|
|
|
#define E1_DIR_PIN P2_13
|
|
|
|
#define E1_ENABLE_PIN P4_29
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Temperature Sensors
|
2017-10-25 00:55:23 +02:00
|
|
|
// 3.3V max when defined as an analog input
|
2017-10-14 16:44:18 +02:00
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define TEMP_BED_PIN P0_23_A0 // A0 (TH1)
|
|
|
|
#define TEMP_0_PIN P0_24_A1 // A1 (TH2)
|
|
|
|
#define TEMP_1_PIN P0_25_A2 // A2 (TH3)
|
|
|
|
#define TEMP_2_PIN P0_26_A3 // A3 (TH4)
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Heaters / Fans
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define HEATER_BED_PIN P2_05
|
|
|
|
#define HEATER_0_PIN P2_07
|
|
|
|
#define HEATER_1_PIN P2_06
|
2018-06-07 23:46:13 +02:00
|
|
|
#ifndef FAN_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define FAN_PIN P2_04
|
2018-06-07 23:46:13 +02:00
|
|
|
#endif
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Connector J7
|
2018-07-26 02:19:09 +02:00
|
|
|
// Note: These pins are all digitally shared with the EXP1/EXP2 Connector.
|
|
|
|
// Using them with an LCD connected or configured will lead to hangs & crashes.
|
2017-10-14 16:44:18 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
// 5V
|
|
|
|
// NC
|
|
|
|
// GND
|
2020-03-22 03:13:19 +01:00
|
|
|
#define PIN_P0_17 P0_17
|
|
|
|
#define PIN_P0_16 P0_16
|
|
|
|
#define PIN_P0_15 P0_15
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Connector J8
|
|
|
|
//
|
|
|
|
|
|
|
|
// GND
|
2020-03-22 03:13:19 +01:00
|
|
|
#define PIN_P1_22 P1_22
|
|
|
|
#define PIN_P1_23 P1_23 // PWM Capable
|
|
|
|
#define PIN_P2_12 P2_12 // Interrupt Capable
|
|
|
|
#define PIN_P2_11 P2_11 // Interrupt Capable
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
//
|
2019-01-24 03:17:21 +01:00
|
|
|
// Průša i3 MK2 Multi Material Multiplexer Support
|
2017-10-14 16:44:18 +02:00
|
|
|
//
|
2017-10-26 20:37:26 +02:00
|
|
|
#if ENABLED(MK2_MULTIPLEXER)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define E_MUX0_PIN P1_23 // J8-3
|
|
|
|
#define E_MUX1_PIN P2_12 // J8-4
|
|
|
|
#define E_MUX2_PIN P2_11 // J8-5
|
2017-10-26 20:37:26 +02:00
|
|
|
#endif
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2018-06-07 23:46:13 +02:00
|
|
|
//
|
|
|
|
// Misc. Functions
|
|
|
|
//
|
2020-03-22 03:13:19 +01:00
|
|
|
#define PS_ON_PIN P0_25 // TH3 Connector
|
2017-10-14 16:44:18 +02:00
|
|
|
|
|
|
|
//
|
|
|
|
// Ethernet pins
|
|
|
|
//
|
2020-10-15 10:00:27 +02:00
|
|
|
#if !IS_ULTIPANEL
|
2020-03-22 03:13:19 +01:00
|
|
|
#define ENET_MDIO P1_17 // J12-4
|
|
|
|
#define ENET_RX_ER P1_14 // J12-6
|
|
|
|
#define ENET_RXD1 P1_10 // J12-8
|
2017-10-14 16:44:18 +02:00
|
|
|
#endif
|
2018-07-26 02:19:09 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define ENET_MOC P1_16 // J12-3
|
|
|
|
#define REF_CLK P1_15 // J12-5
|
|
|
|
#define ENET_RXD0 P1_09 // J12-7
|
|
|
|
#define ENET_CRS P1_08 // J12-9
|
|
|
|
#define ENET_TX_EN P1_04 // J12-10
|
|
|
|
#define ENET_TXD0 P1_00 // J12-11
|
|
|
|
#define ENET_TXD1 P1_01 // J12-12
|
2017-10-14 16:44:18 +02:00
|
|
|
|
2019-06-28 05:30:13 +02:00
|
|
|
#ifndef SDCARD_CONNECTION
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SDCARD_CONNECTION ONBOARD
|
2019-04-16 05:55:33 +02:00
|
|
|
#endif
|
2018-09-19 19:33:20 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
|
2019-06-26 10:55:57 +02:00
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(CUSTOM_CABLE)
|
2018-10-26 22:23:02 +02:00
|
|
|
|
2018-09-19 19:33:20 +02:00
|
|
|
/**
|
|
|
|
* A custom cable is needed. See the README file in the
|
|
|
|
* Marlin\src\config\examples\Mks\Sbase directory
|
|
|
|
* P0.27 is on EXP2 and the on-board SD card's socket. That means it can't be
|
|
|
|
* used as the SD_DETECT for the LCD's SD card.
|
|
|
|
*
|
|
|
|
* The best solution is to use the custom cable to connect the LCD's SD_DETECT
|
|
|
|
* to a pin NOT on EXP2.
|
|
|
|
*
|
|
|
|
* If you can't find a pin to use for the LCD's SD_DETECT then comment out
|
|
|
|
* SD_DETECT_PIN entirely and remove that wire from the the custom cable.
|
|
|
|
*/
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SD_DETECT_PIN P2_11 // J8-5 (moved from EXP2 P0.27)
|
|
|
|
#define SCK_PIN P1_22 // J8-2 (moved from EXP2 P0.7)
|
|
|
|
#define MISO_PIN P1_23 // J8-3 (moved from EXP2 P0.8)
|
|
|
|
#define MOSI_PIN P2_12 // J8-4 (moved from EXP2 P0.9)
|
|
|
|
#define SS_PIN P0_28
|
|
|
|
#define LPC_SOFTWARE_SPI // With a custom cable we need software SPI because the
|
|
|
|
// selected pins are not on a hardware SPI controller
|
2019-06-26 10:55:57 +02:00
|
|
|
#elif SD_CONNECTION_IS(LCD)
|
2018-09-19 19:33:20 +02:00
|
|
|
// use standard cable and header, SPI and SD detect sre shared with on-board SD card
|
|
|
|
// hardware SPI is used for both SD cards. The detect pin is shred between the
|
|
|
|
// LCD and onboard SD readers so we disable it.
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SCK_PIN P0_07
|
|
|
|
#define MISO_PIN P0_08
|
|
|
|
#define MOSI_PIN P0_09
|
|
|
|
#define SS_PIN P0_28
|
2019-06-26 10:55:57 +02:00
|
|
|
#elif SD_CONNECTION_IS(ONBOARD)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define SD_DETECT_PIN P0_27
|
|
|
|
#define SCK_PIN P0_07
|
|
|
|
#define MISO_PIN P0_08
|
|
|
|
#define MOSI_PIN P0_09
|
|
|
|
#define SS_PIN ONBOARD_SD_CS_PIN
|
2018-09-19 19:33:20 +02:00
|
|
|
#endif
|
2017-12-14 17:54:57 +01:00
|
|
|
|
2018-11-04 23:20:22 +01:00
|
|
|
/**
|
|
|
|
* Smart LCD adapter
|
|
|
|
*
|
|
|
|
* The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
|
|
|
|
* REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
|
|
|
* DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
|
|
|
|
* is needed to pick up 5V for the EXP1 connection.
|
|
|
|
*
|
|
|
|
* SD card on the LCD uses the same SPI signals as the LCD. This results in garbage/lines
|
|
|
|
* on the LCD display during accesses of the SD card. The menus/code has been arranged so
|
|
|
|
* that the garbage/lines are erased immediately after the SD card accesses are completed.
|
|
|
|
*/
|
|
|
|
|
2020-09-28 08:52:38 +02:00
|
|
|
#if IS_TFTGLCD_PANEL
|
|
|
|
|
|
|
|
#if ENABLED(TFTGLCD_PANEL_SPI)
|
2020-10-12 23:38:07 +02:00
|
|
|
#define TFTGLCD_CS P3_25 // EXP2.3
|
2020-09-28 08:52:38 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if SD_CONNECTION_IS(LCD)
|
|
|
|
#define SD_DETECT_PIN P0_28 // EXP2.4
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif HAS_WIRED_LCD
|
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
#define BEEPER_PIN P1_31 // EXP1.1
|
|
|
|
#define BTN_ENC P1_30 // EXP1.2
|
|
|
|
#define BTN_EN1 P3_26 // EXP2.5
|
|
|
|
#define BTN_EN2 P3_25 // EXP2.3
|
|
|
|
#define LCD_PINS_RS P0_16 // EXP1.4
|
|
|
|
#define LCD_SDSS P0_28 // EXP2.4
|
|
|
|
#define LCD_PINS_ENABLE P0_18 // EXP1.3
|
|
|
|
#define LCD_PINS_D4 P0_15 // EXP1.5
|
2019-03-17 05:43:06 +01:00
|
|
|
#if ANY(VIKI2, miniVIKI)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define DOGLCD_SCK SCK_PIN
|
|
|
|
#define DOGLCD_MOSI MOSI_PIN
|
2018-11-04 23:20:22 +01:00
|
|
|
#endif
|
2019-04-16 05:54:11 +02:00
|
|
|
|
|
|
|
#if ENABLED(FYSETC_MINI_12864)
|
|
|
|
/**
|
2019-07-18 11:36:08 +02:00
|
|
|
* The FYSETC display can NOT use the SCK and MOSI pins on EXP2, so a
|
2019-04-16 05:54:11 +02:00
|
|
|
* special cable is needed to go between EXP2 on the FYSETC and the
|
|
|
|
* controller board's EXP2 and J8. It also means that a software SPI
|
|
|
|
* is needed to drive those pins.
|
|
|
|
*
|
2019-07-18 11:36:08 +02:00
|
|
|
* The FYSETC requires mode 3 SPI interface.
|
2019-04-16 05:54:11 +02:00
|
|
|
*
|
|
|
|
* Pins 6, 7 & 8 on EXP2 are no connects. That means a second special
|
|
|
|
* cable will be needed if the RGB LEDs are to be active.
|
|
|
|
*/
|
2020-03-22 03:13:19 +01:00
|
|
|
#define DOGLCD_CS LCD_PINS_ENABLE // EXP1.3 (LCD_EN on FYSETC schematic)
|
|
|
|
#define DOGLCD_A0 LCD_PINS_RS // EXP1.4 (LCD_A0 on FYSETC schematic)
|
|
|
|
#define DOGLCD_SCK P2_11 // J8-5 (SCK on FYSETC schematic)
|
|
|
|
#define DOGLCD_MOSI P4_28 // J8-6 (MOSI on FYSETC schematic)
|
2019-04-16 05:54:11 +02:00
|
|
|
|
2020-03-22 03:13:19 +01:00
|
|
|
//#define FORCE_SOFT_SPI // Use this if default of hardware SPI causes display problems
|
|
|
|
// results in LCD soft SPI mode 3, SD soft SPI mode 0
|
2019-05-05 00:59:36 +02:00
|
|
|
|
2019-05-02 03:05:29 +02:00
|
|
|
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0)
|
|
|
|
#ifndef RGB_LED_R_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define RGB_LED_R_PIN P2_12 // J8-4 (LCD_D6 on FYSETC schematic)
|
2019-05-02 03:05:29 +02:00
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_G_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define RGB_LED_G_PIN P1_23 // J8-3 (LCD_D5 on FYSETC schematic)
|
2019-05-02 03:05:29 +02:00
|
|
|
#endif
|
|
|
|
#ifndef RGB_LED_B_PIN
|
2020-03-22 03:13:19 +01:00
|
|
|
#define RGB_LED_B_PIN P1_22 // J8-2 (LCD_D7 on FYSETC schematic)
|
2019-05-02 03:05:29 +02:00
|
|
|
#endif
|
|
|
|
#elif ENABLED(FYSETC_MINI_12864_2_1)
|
2020-03-22 03:13:19 +01:00
|
|
|
#define NEOPIXEL_PIN P2_12
|
2019-04-16 05:54:11 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#elif ENABLED(MINIPANEL)
|
|
|
|
// GLCD features
|
|
|
|
// Uncomment screen orientation
|
|
|
|
//#define LCD_SCREEN_ROT_90
|
|
|
|
//#define LCD_SCREEN_ROT_180
|
|
|
|
//#define LCD_SCREEN_ROT_270
|
|
|
|
#endif
|
|
|
|
|
2020-09-28 08:52:38 +02:00
|
|
|
#endif // HAS_WIRED_LCD
|
2018-11-04 23:20:22 +01:00
|
|
|
|
2018-07-31 05:48:58 +02:00
|
|
|
/**
|
|
|
|
* Example for trinamic drivers using the J8 connector on MKs Sbase.
|
2019-06-20 22:47:50 +02:00
|
|
|
* 2130s need 1 pin for each driver. 2208/2209s need 2 pins for serial control.
|
2018-07-31 05:48:58 +02:00
|
|
|
* This board does not have enough pins to use hardware serial.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if HAS_DRIVER(TMC2130)
|
|
|
|
// J8
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_CS_PIN P1_22
|
|
|
|
#define Y_CS_PIN P1_23
|
|
|
|
#define Z_CS_PIN P2_12
|
|
|
|
#define E0_CS_PIN P2_11
|
|
|
|
#define E1_CS_PIN P4_28
|
2018-07-31 05:48:58 +02:00
|
|
|
|
2020-09-07 04:40:58 +02:00
|
|
|
// Hardware SPI is on EXP2. See if you can make it work:
|
|
|
|
// https://github.com/makerbase-mks/MKS-SBASE/issues/25
|
|
|
|
#define TMC_USE_SW_SPI
|
|
|
|
#if ENABLED(TMC_USE_SW_SPI)
|
|
|
|
#ifndef TMC_SW_MOSI
|
|
|
|
#define TMC_SW_MOSI P0_03 // AUX1
|
|
|
|
#endif
|
|
|
|
#ifndef TMC_SW_MISO
|
|
|
|
#define TMC_SW_MISO P0_02 // AUX1
|
|
|
|
#endif
|
|
|
|
#ifndef TMC_SW_SCK
|
|
|
|
#define TMC_SW_SCK P0_26 // TH4
|
|
|
|
#endif
|
2018-07-31 05:48:58 +02:00
|
|
|
#endif
|
2020-09-07 04:40:58 +02:00
|
|
|
|
2018-07-31 05:48:58 +02:00
|
|
|
#endif
|
2018-10-26 22:23:02 +02:00
|
|
|
|
2020-03-17 21:05:33 +01:00
|
|
|
#if MB(MKS_SBASE) && HAS_TMC_UART
|
2019-07-17 05:42:36 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* TMC2208/TMC2209 stepper drivers
|
|
|
|
*
|
|
|
|
* The shortage of pins becomes apparent.
|
|
|
|
* Worst case you may have to give up the LCD
|
|
|
|
* RX pins need to be interrupt capable
|
|
|
|
*/
|
2020-03-22 03:13:19 +01:00
|
|
|
#define X_SERIAL_TX_PIN P1_22 // J8-2
|
|
|
|
#define X_SERIAL_RX_PIN P2_12 // J8-4 Interrupt Capable
|
|
|
|
#define Y_SERIAL_TX_PIN P1_23 // J8-3
|
|
|
|
#define Y_SERIAL_RX_PIN P2_11 // J8-5 Interrupt Capable
|
|
|
|
#define Z_SERIAL_TX_PIN P2_12 // J8-4
|
|
|
|
#define Z_SERIAL_RX_PIN P0_25 // TH3
|
|
|
|
#define E0_SERIAL_TX_PIN P4_28 // J8-6
|
|
|
|
#define E0_SERIAL_RX_PIN P0_26 // TH4
|
2019-11-07 00:08:12 +01:00
|
|
|
|
|
|
|
// Reduce baud rate to improve software serial reliability
|
2020-08-22 08:22:14 +02:00
|
|
|
#define TMC_BAUD_RATE 19200
|
2018-07-31 05:48:58 +02:00
|
|
|
#endif
|
|
|
|
|
2018-11-14 07:23:18 +01:00
|
|
|
// UNUSED
|
2020-03-22 03:13:19 +01:00
|
|
|
#define PIN_P0_27 P0_27 // EXP2/Onboard SD
|
|
|
|
#define PIN_P0_28 P0_28 // EXP2
|
|
|
|
#define PIN_P0_02 P0_02 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
|
|
|
#define PIN_P0_03 P0_03 // AUX1 (Interrupt Capable/ADC/Serial Port 0)
|
2018-11-14 07:23:18 +01:00
|
|
|
|
2017-10-14 16:44:18 +02:00
|
|
|
/**
|
2017-10-25 00:55:23 +02:00
|
|
|
* PWMs
|
2017-10-14 16:44:18 +02:00
|
|
|
*
|
2017-10-25 00:55:23 +02:00
|
|
|
* There are 6 PWMs. Each PWM can be assigned to one of two pins.
|
2017-10-14 16:44:18 +02:00
|
|
|
*
|
|
|
|
* SERVO2 does NOT have a PWM assigned to it.
|
|
|
|
*
|
2017-10-26 20:37:26 +02:00
|
|
|
* PWM1.1 P1_18 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
|
2017-11-18 19:57:32 +01:00
|
|
|
* PWM1.1 P2_00 E0_STEP_PIN
|
2017-10-26 20:37:26 +02:00
|
|
|
* PWM1.2 P1_20 SERVO0_PIN
|
2017-11-18 19:57:32 +01:00
|
|
|
* PWM1.2 P2_01 X_STEP_PIN
|
2017-10-26 20:37:26 +02:00
|
|
|
* PWM1.3 P1_21 SERVO1_PIN J5-1
|
2017-11-18 19:57:32 +01:00
|
|
|
* PWM1.3 P2_02 Y_STEP_PIN
|
2017-10-26 20:37:26 +02:00
|
|
|
* PWM1.4 P1_23 SDSS(SSEL0) J3-5 AUX-3
|
2017-11-18 19:57:32 +01:00
|
|
|
* PWM1.4 P2_03 Z_STEP_PIN
|
2017-10-26 20:37:26 +02:00
|
|
|
* PWM1.5 P1_24 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
2017-11-18 19:57:32 +01:00
|
|
|
* PWM1.5 P2_04 RAMPS_D9_PIN
|
2017-10-26 20:37:26 +02:00
|
|
|
* PWM1.6 P1_26 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
|
2017-11-18 19:57:32 +01:00
|
|
|
* PWM1.6 P2_05 RAMPS_D10_PIN
|
2017-10-14 16:44:18 +02:00
|
|
|
*/
|
|
|
|
|
2019-07-17 05:42:36 +02:00
|
|
|
/**
|
|
|
|
* Special pins
|
|
|
|
* P1_30 - not 5V tolerant - EXP1
|
|
|
|
* P1_31 - not 5V tolerant - EXP1
|
|
|
|
* P0_27 - open collector - EXP2
|
|
|
|
* P0_28 - open collector - EXP2
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serial Ports
|
|
|
|
* P0_00 - Port 3
|
|
|
|
* P0_01 - SD Card (Onboard)
|
|
|
|
* P0_10 - Port 2
|
|
|
|
* P0_11 - Y_EN/Y_DIR
|
|
|
|
* P0_15 - Port 1
|
|
|
|
* P0_16 - EXP1
|
|
|
|
* P0_02 - Port 0
|
|
|
|
* P0_03 - AUX1
|
|
|
|
* P0_29 - Port -1
|
|
|
|
* P0_30 - USB
|
|
|
|
*/
|