Prusa MINI Firmware overview
pins_AZSMZ_MINI.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 /**
25  * AZSMZ MINI pin assignments
26  */
27 
28 #ifndef TARGET_LPC1768
29  #error "Oops! Make sure you have the LPC1768 environment selected in your IDE."
30 #endif
31 
32 #define BOARD_INFO_NAME "AZSMZ MINI"
33 
34 //
35 // Servos
36 //
37 #define SERVO0_PIN P1_23
38 
39 //
40 // Limit Switches
41 //
42 #define X_MIN_PIN P1_24
43 #define Y_MIN_PIN P1_26
44 #define Z_MIN_PIN P1_28
45 #define Z_MAX_PIN P1_29
46 
47 //
48 // Steppers
49 //
50 #define X_STEP_PIN P2_00
51 #define X_DIR_PIN P0_05
52 #define X_ENABLE_PIN P0_04
53 
54 #define Y_STEP_PIN P2_01
55 #define Y_DIR_PIN P0_11
56 #define Y_ENABLE_PIN P0_10
57 
58 #define Z_STEP_PIN P2_02
59 #define Z_DIR_PIN P0_20
60 #define Z_ENABLE_PIN P0_19
61 
62 #define E0_STEP_PIN P2_03
63 #define E0_DIR_PIN P0_22
64 #define E0_ENABLE_PIN P0_21
65 
66 #define E1_STEP_PIN P2_08
67 #define E1_DIR_PIN P2_13
68 #define E1_ENABLE_PIN P4_29
69 
70 //
71 // Temperature Sensors
72 // 3.3V max when defined as an analog input
73 //
74 #define TEMP_0_PIN 0 // A0 (TH1)
75 #define TEMP_BED_PIN 1 // A1 (TH2)
76 #define TEMP_1_PIN 2 // A2 (TH3)
77 
78 //
79 // Heaters / Fans
80 //
81 // EFB
82 #define HEATER_0_PIN P2_04
83 #define HEATER_BED_PIN P2_05
84 #ifndef FAN_PIN
85  #define FAN_PIN P2_07
86 #endif
87 #define FAN1_PIN P0_26
88 
89 #define LCD_SDSS P0_16 // LCD SD chip select
90 #define ONBOARD_SD_CS_PIN P0_06 // Chip select for "System" SD card
91 
92 #if ENABLED(AZSMZ_12864)
93  #define BEEPER_PIN P1_30
94  #define DOGLCD_A0 P2_06
95  #define DOGLCD_CS P1_22
96  #define BTN_EN1 P4_28
97  #define BTN_EN2 P1_27
98  #define BTN_ENC P3_26
99  #ifndef SDCARD_CONNECTION
100  #define SDCARD_CONNECTION LCD
101  #endif
102 #endif
103 
104 #if SD_CONNECTION_IS(LCD)
105  #define SCK_PIN P0_15
106  #define MISO_PIN P0_17
107  #define MOSI_PIN P0_18
108  #define SS_PIN LCD_SDSS
109  #define SD_DETECT_PIN P3_25
110 #elif SD_CONNECTION_IS(ONBOARD)
111  #define SCK_PIN P0_07
112  #define MISO_PIN P0_08
113  #define MOSI_PIN P0_09
114  #define SS_PIN ONBOARD_SD_CS_PIN
115 #elif SD_CONNECTION_IS(CUSTOM_CABLE)
116  #error "No custom SD drive cable defined for this board."
117 #endif
118 
119 //
120 // Ethernet pins
121 //
122 #define ENET_MDIO P1_17
123 #define ENET_RX_ER P1_14
124 #define ENET_RXD1 P1_10
125 #define ENET_MOC P1_16
126 #define REF_CLK P1_15
127 #define ENET_RXD0 P1_09
128 #define ENET_CRS P1_08
129 #define ENET_TX_EN P1_04
130 #define ENET_TXD0 P1_00
131 #define ENET_TXD1 P1_01
132 
133 /**
134  * PWMs
135  *
136  * There are 6 PWMs. Each PWM can be assigned to one of two pins.
137  *
138  * SERVO2 does NOT have a PWM assigned to it.
139  *
140  * PWM1.1 DIO4 SERVO3_PIN FIL_RUNOUT_PIN 5V output, PWM
141  * PWM1.1 DIO26 E0_STEP_PIN
142  * PWM1.2 DIO11 SERVO0_PIN
143  * PWM1.2 DIO54 X_STEP_PIN
144  * PWM1.3 DIO6 SERVO1_PIN J5-1
145  * PWM1.3 DIO60 Y_STEP_PIN
146  * PWM1.4 DIO53 SDSS(SSEL0) J3-5 AUX-3
147  * PWM1.4 DIO46 Z_STEP_PIN
148  * PWM1.5 DIO3 X_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
149  * PWM1.5 DIO9 RAMPS_D9_PIN
150  * PWM1.6 DIO14 Y_MIN_PIN 10K PULLUP TO 3.3v, 1K SERIES
151  * PWM1.6 DIO10 RAMPS_D10_PIN
152  */
153 
154  /**
155  * Special pins
156  * D37 - not 5V tolerant
157  * D49 - not 5V tolerant
158  * D57 - open collector
159  * D58 - open collector
160  */