Update BIQU SKR V1.1 pins, add TMC2130 settings (#13166)
* Remove untested displays add TMC2130 configs. * Remove references to the ReARM, delete untested displays. Add TMC2130 settings. Cleanup spacing, etc.
This commit is contained in:
parent
ab2816c870
commit
84fc400aba
@ -65,9 +65,9 @@
|
|||||||
// Temperature Sensors
|
// Temperature Sensors
|
||||||
// 3.3V max when defined as an analog input
|
// 3.3V max when defined as an analog input
|
||||||
//
|
//
|
||||||
#define TEMP_BED_PIN 0 // A0 (T0) - (67) - TEMP_BED_PIN
|
#define TEMP_BED_PIN 0 // Analog Input
|
||||||
#define TEMP_0_PIN 1 // A1 (T1) - (68) - TEMP_0_PIN
|
#define TEMP_0_PIN 1 // Analog Input
|
||||||
#define TEMP_1_PIN 2 // A2 (T2) - (69) - TEMP_1_PIN
|
#define TEMP_1_PIN 2 // Analog Input
|
||||||
|
|
||||||
//
|
//
|
||||||
// Heaters / Fans
|
// Heaters / Fans
|
||||||
@ -81,123 +81,34 @@
|
|||||||
#define FAN_PIN P2_03
|
#define FAN_PIN P2_03
|
||||||
#define HEATER_BED_PIN P2_05
|
#define HEATER_BED_PIN P2_05
|
||||||
|
|
||||||
//
|
|
||||||
// Misc. Functions
|
|
||||||
//
|
|
||||||
#define SDSS P1_23 // (53)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LCD / Controller
|
* LCD / Controller
|
||||||
*
|
*
|
||||||
* All controllers can use J3 and J5 on the Re-ARM board. Custom cabling will be required.
|
* As of 20 JAN 2019 only the REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER display has
|
||||||
*/
|
* been tested with these settings. It can be connected to the SKR using standard cables
|
||||||
|
* via the EXP1 and EXP2 ports. Other displays may need a custom cable and/or changes to
|
||||||
/**
|
* the pins defined below.
|
||||||
* Smart LCD adapter
|
|
||||||
*
|
*
|
||||||
* The Smart LCD adapter can be used for the two 10 pin LCD controllers such as
|
* The SD card on the LCD controller uses the same SPI signals as the LCD, resulting in
|
||||||
* REPRAP_DISCOUNT_SMART_CONTROLLER. It can't be used for controllers that use
|
* garbage/lines on the LCD display during SD card access. The LCD code mitigates this
|
||||||
* DOGLCD_A0, DOGLCD_CS, LCD_PINS_D5, LCD_PINS_D6 or LCD_PINS_D7. A custom cable
|
* by redrawing the screen after SD card accesses.
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if ENABLED(ULTRA_LCD)
|
#if ENABLED(ULTRA_LCD)
|
||||||
|
#define BEEPER_PIN P1_30
|
||||||
|
#define BTN_EN1 P3_26
|
||||||
|
#define BTN_EN2 P3_25
|
||||||
|
#define BTN_ENC P2_11
|
||||||
|
|
||||||
#if ENABLED(CR10_STOCKDISPLAY)
|
#define SD_DETECT_PIN P1_31
|
||||||
|
#define LCD_SDSS P1_23
|
||||||
// Re-Arm can support Creality stock display without SD card reader and single cable on EXP3.
|
#define LCD_PINS_RS P0_16
|
||||||
// Re-Arm J3 pins 1 (p1.31) & 2 (P3.26) are not used. Stock cable will need to have one
|
#define LCD_PINS_ENABLE P0_18
|
||||||
// 10-pin IDC connector trimmed or replaced with a 12-pin IDC connector to fit J3.
|
#define LCD_PINS_D4 P0_15
|
||||||
// Requires REVERSE_ENCODER_DIRECTION in Configuration.h
|
#endif
|
||||||
|
|
||||||
#define BEEPER_PIN P2_11 // J3-3 & AUX-4
|
|
||||||
|
|
||||||
#define BTN_EN1 P0_16 // J3-7 & AUX-4
|
|
||||||
#define BTN_EN2 P1_23 // J3-5 & AUX-4
|
|
||||||
#define BTN_ENC P3_25 // J3-4 & AUX-4
|
|
||||||
|
|
||||||
#define LCD_PINS_RS P0_15 // J3-9 & AUX-4 (CS)
|
|
||||||
#define LCD_PINS_ENABLE P0_18 // J3-10 & AUX-3 (SID, MOSI)
|
|
||||||
#define LCD_PINS_D4 P2_06 // J3-8 & AUX-3 (SCK, CLK)
|
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
#define BEEPER_PIN P1_30 // (37) not 5V tolerant
|
|
||||||
|
|
||||||
#define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
||||||
#define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
||||||
#define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
||||||
|
|
||||||
#define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
||||||
#define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
||||||
#define LCD_PINS_RS P0_16 // (16) J3-7 & AUX-4
|
|
||||||
#define LCD_SDSS P0_16 // (16) J3-7 & AUX-4
|
|
||||||
|
|
||||||
#if ENABLED(REPRAPWORLD_KEYPAD)
|
|
||||||
#define SHIFT_OUT P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
||||||
#define SHIFT_CLK P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
||||||
#define SHIFT_LD P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
||||||
#elif DISABLED(NEWPANEL)
|
|
||||||
//#define SHIFT_CLK P3_26 // (31) J3-2 & AUX-4
|
|
||||||
//#define SHIFT_LD P3_25 // (33) J3-4 & AUX-4
|
|
||||||
//#define SHIFT_OUT P2_11 // (35) J3-3 & AUX-4
|
|
||||||
//#define SHIFT_EN P1_22 // (41) J5-4 & AUX-4
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if ENABLED(VIKI2) || ENABLED(miniVIKI)
|
|
||||||
// #define LCD_SCREEN_ROT_180
|
|
||||||
|
|
||||||
#define BTN_EN1 P3_26 // (31) J3-2 & AUX-4
|
|
||||||
#define BTN_EN2 P3_25 // (33) J3-4 & AUX-4
|
|
||||||
#define BTN_ENC P2_11 // (35) J3-3 & AUX-4
|
|
||||||
|
|
||||||
#define SD_DETECT_PIN P1_31 // (49) not 5V tolerant J3-1 & AUX-3
|
|
||||||
#define KILL_PIN P1_22 // (41) J5-4 & AUX-4
|
|
||||||
|
|
||||||
#define DOGLCD_CS P0_16 // (16)
|
|
||||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
||||||
#define DOGLCD_SCK SCK_PIN
|
|
||||||
#define DOGLCD_MOSI MOSI_PIN
|
|
||||||
|
|
||||||
#define STAT_LED_BLUE_PIN P0_26 // (63) may change if cable changes
|
|
||||||
#define STAT_LED_RED_PIN P1_21 // ( 6) may change if cable changes
|
|
||||||
#else
|
|
||||||
#define DOGLCD_CS P0_26 // (63) J5-3 & AUX-2
|
|
||||||
#define DOGLCD_A0 P2_06 // (59) J3-8 & AUX-2
|
|
||||||
#define LCD_BACKLIGHT_PIN P0_16 // (16) J3-7 & AUX-4 - only used on DOGLCD controllers
|
|
||||||
#define LCD_PINS_ENABLE P0_18 // (51) (MOSI) J3-10 & AUX-3
|
|
||||||
#define LCD_PINS_D4 P0_15 // (52) (SCK) J3-9 & AUX-3
|
|
||||||
#if ENABLED(ULTIPANEL)
|
|
||||||
#define LCD_PINS_D5 P1_17 // (71) ENET_MDIO
|
|
||||||
#define LCD_PINS_D6 P1_14 // (73) ENET_RX_ER
|
|
||||||
#define LCD_PINS_D7 P1_10 // (75) ENET_RXD1
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//#define MISO_PIN P0_17 // (50) system defined J3-10 & AUX-3
|
|
||||||
//#define MOSI_PIN P0_18 // (51) system defined J3-10 & AUX-3
|
|
||||||
//#define SCK_PIN P0_15 // (52) system defined J3-9 & AUX-3
|
|
||||||
//#define SS_PIN P1_23 // (53) system defined J3-5 & AUX-3 - sometimes called SDSS
|
|
||||||
|
|
||||||
#if ENABLED(MINIPANEL)
|
|
||||||
// GLCD features
|
|
||||||
//#define LCD_CONTRAST 190
|
|
||||||
// Uncomment screen orientation
|
|
||||||
//#define LCD_SCREEN_ROT_90
|
|
||||||
//#define LCD_SCREEN_ROT_180
|
|
||||||
//#define LCD_SCREEN_ROT_270
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif // ULTRA_LCD
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// SD Support (as with the AZTEEG_X5_MINI_WIFI)
|
// SD Support
|
||||||
//
|
//
|
||||||
//#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
|
//#define USB_SD_DISABLED // Disable host access to SD card as mass storage device through USB
|
||||||
#define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
|
#define USB_SD_ONBOARD // Enable host access to SD card as mass storage device through USB
|
||||||
@ -230,3 +141,131 @@
|
|||||||
#define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
#define ONBOARD_SD_CS P0_06 // Chip select for "System" SD card
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Trinamic driver support
|
||||||
|
|
||||||
|
#if HAS_TRINAMIC
|
||||||
|
// Using TMC devices in intelligent mode requires extra connections to each device. Unfortunately
|
||||||
|
// the SKR does not have many free pins (especially if a display is in use). The SPI-based devices
|
||||||
|
// will require 3 connections (clock, mosi, miso), plus a chip select line (CS) for each driver.
|
||||||
|
// The UART-based devices require 2 pis per deriver (one of which must be interrupt capable).
|
||||||
|
// The same SPI pins can be shared with the display/SD card reader, meaning SPI-based devices are
|
||||||
|
// probably a good choice for this board.
|
||||||
|
//
|
||||||
|
// SOFTWARE_DRIVER_ENABLE is a good option. It uses SPI to control the driver enable and allows the
|
||||||
|
// hardware ENABLE pins for each driver to be repurposed as SPI chip select. To use this mode the
|
||||||
|
// driver modules will probably need to be modified, removing the pin used for the enable line from
|
||||||
|
// the module and wiring this connection directly to GND (as is the case for TMC2130).
|
||||||
|
// Using this option and sharing all of the SPI pins allows 5 TMC2130 drivers to be used along with
|
||||||
|
// a REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER without requiring the use of any extra pins.
|
||||||
|
//
|
||||||
|
// Other options will probably require the use of any free pins and the TFT serial port or a
|
||||||
|
// different type of display (like the TFT), using the pins normally used for the display and encoder.
|
||||||
|
// Unfortunately, tests show it's not possible to use endstop and thermistor pins for chip-select.
|
||||||
|
// Sample settings are provided below, but only some have been tested.
|
||||||
|
//
|
||||||
|
// Another option is to share the enable and chip-select pins when using SPI. Several users have
|
||||||
|
// reported that this works. However, it's unlikely that this configuration will allow SPI communi-
|
||||||
|
// cation with the device when the drivers are active, meaning that some of the more advanced TMC
|
||||||
|
// options may not be available.
|
||||||
|
|
||||||
|
// When using any TMC SPI-based drivers, software SPI is used
|
||||||
|
// because pins may be shared with the display or SD card.
|
||||||
|
#define TMC_USE_SW_SPI
|
||||||
|
#define TMC_SW_MOSI P0_18
|
||||||
|
#define TMC_SW_MISO P0_17
|
||||||
|
// To minimize pin usage use the same clock pin as the display/SD card reader. (May generate LCD noise.)
|
||||||
|
#define TMC_SW_SCK P0_15
|
||||||
|
// If pin 2_06 is unused, it can be used for the clock to avoid the LCD noise.
|
||||||
|
//#define TMC_SW_SCK P2_06
|
||||||
|
|
||||||
|
#if ENABLED(SOFTWARE_DRIVER_ENABLE)
|
||||||
|
|
||||||
|
// Software enable allows the enable pins to be repurposed as chip-select pins.
|
||||||
|
// Note: Requires the driver modules to be modified to always be enabled with the enable pin removed.
|
||||||
|
#if AXIS_DRIVER_TYPE_X(TMC2130)
|
||||||
|
#define X_CS_PIN P4_28
|
||||||
|
#undef X_ENABLE_PIN
|
||||||
|
#define X_ENABLE_PIN -1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if AXIS_DRIVER_TYPE_Y(TMC2130)
|
||||||
|
#define Y_CS_PIN P2_00
|
||||||
|
#undef Y_ENABLE_PIN
|
||||||
|
#define Y_ENABLE_PIN -1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if AXIS_DRIVER_TYPE_Z(TMC2130)
|
||||||
|
#define Z_CS_PIN P0_19
|
||||||
|
#undef Z_ENABLE_PIN
|
||||||
|
#define Z_ENABLE_PIN -1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if AXIS_DRIVER_TYPE_E0(TMC2130)
|
||||||
|
#define E0_CS_PIN P2_12
|
||||||
|
#undef E0_ENABLE_PIN
|
||||||
|
#define E0_ENABLE_PIN -1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if AXIS_DRIVER_TYPE_E1(TMC2130)
|
||||||
|
#define E1_CS_PIN P0_10
|
||||||
|
#undef E1_ENABLE_PIN
|
||||||
|
#define E1_ENABLE_PIN -1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else // !SOFTWARE_DRIVER_ENABLE
|
||||||
|
|
||||||
|
// A chip-select pin is needed for each driver.
|
||||||
|
|
||||||
|
// EXAMPLES
|
||||||
|
|
||||||
|
// Example 1: No LCD attached or a TFT style display using the AUX header RX/TX pins.
|
||||||
|
// LPC_SD_LCD must not be enabled. Nothing should be connected to EXP1/EXP2.
|
||||||
|
//#define SKR_USE_LCD_PINS_FOR_CS
|
||||||
|
#if ENABLED(SKR_USE_LCD_PINS_FOR_CS)
|
||||||
|
#if ENABLED(LPC_SD_LCD)
|
||||||
|
#error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_PINS_FOR_CS."
|
||||||
|
#endif
|
||||||
|
#define X_CS_PIN P1_23
|
||||||
|
#define Y_CS_PIN P3_26
|
||||||
|
#define Z_CS_PIN P2_11
|
||||||
|
#define E0_CS_PIN P3_25
|
||||||
|
#define E1_CS_PIN P1_31
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Example 2: A REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
|
||||||
|
// The SD card reader attached to the LCD (if present) can't be used because
|
||||||
|
// the pins will be in use. So LPC_SD_LCD must not be defined.
|
||||||
|
//#define SKR_USE_LCD_SD_CARD_PINS_FOR_CS
|
||||||
|
#if ENABLED(SKR_USE_LCD_SD_CARD_PINS_FOR_CS)
|
||||||
|
#if ENABLED(LPC_SD_LCD)
|
||||||
|
#error "LPC_SD_LCD must not be enabled with SKR_USE_LCD_SD_CARD_PINS_FOR_CS."
|
||||||
|
#endif
|
||||||
|
#define X_CS_PIN P0_02
|
||||||
|
#define Y_CS_PIN P0_03
|
||||||
|
#define Z_CS_PIN P2_06
|
||||||
|
// We use SD_DETECT_PIN for E0
|
||||||
|
#undef SD_DETECT_PIN
|
||||||
|
#define E0_CS_PIN P1_31
|
||||||
|
// We use LCD_SDSS pin for E1
|
||||||
|
#undef LCD_SDSS
|
||||||
|
#define LCD_SDSS -1
|
||||||
|
#define E1_CS_PIN P1_23
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Example 3: Use the driver enable pins for chip-select.
|
||||||
|
// Commands must not be sent to the drivers when enabled. So certain
|
||||||
|
// advanced features (like driver monitoring) will not be available.
|
||||||
|
//#define SKR_USE_ENABLE_CS
|
||||||
|
#if ENABLED(SKR_USE_ENABLE_FOR_CS)
|
||||||
|
#define X_CS_PIN X_ENABLE_PIN
|
||||||
|
#define Y_CS_PIN Y_ENABLE_PIN
|
||||||
|
#define Z_CS_PIN Z_ENABLE_PIN
|
||||||
|
#define E0_CS_PIN E0_ENABLE_PIN
|
||||||
|
#define E1_CS_PIN E1_ENABLE_PIN
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // SOFTWARE_DRIVER_ENABLE
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user