TMCM-1141 Hardware Manual (Rev. 1.06 / 2015-JAN-09)
12
common switch for all
three digital inputs
+5V
1k
+3.3V
IN_1
IN_2
IN_3
10k
22k
microcontroller (all)
and TMC429 (IN_0, IN_1)
1nf
GND
GND
GND
Figure 3.6 General purpose inputs (simplified input circuit)
The three digital inputs have alternate functionality depending on configuration in software. The
following functions are available:
Label
(pin)
Default function
Alternate function 1
STOP_L - left stop switch input
IN_1 (6)
General purpose digital input
connected to processor and TMC429 REF input
TMCL: GIO 1, 0 // get digital (supporting left stop functionality in hardware)
value of input IN_1
TMCL: GAP 11, 0 // get digital value of STOP_L input
IN_2 (7)
IN_3 (8)
General purpose digital input
STOP_R - right stop switch input
connected to processor and TMC429 REF input
TMCL: GIO 2, 0 // get digital (supporting right stop switch functionality in hardware)
value of input IN_2
TMCL: GAP 10, 0 // get digital value of STOP_R input
HOME - home switch input
(connected to processor)
General purpose digital input
TMCL: GIO 3, 0 // get digital
value of input IN_3
TMCL: GAP 9, 0 // get digital value of HOME input
Table 3.5 Multipurpose inputs / alternate functions
-
-
All three digital inputs are connected to the on-board processor and can be used as general
purpose digital inputs.
In order to use IN_1 and IN_2 as STOP_L and STOP_R inputs, this function has to be enabled
explicitly in software (factory default: switched off). With TMCL firmware the stop switch
functionality can be enabled using SAP 12, 0, 0 (STOP_R / right limit switch) and SAP 13,
0, 0 (STOP_L / left limit switch). As the names already indicate: the status of the left limit
switch (STOP_L) will be significant during motor left turns and the status of the right limit switch
during motor right turns (positive direction), only. Reading out input values using the GAP
commands as listed in the table above is possible at any time. Please see separate TMCL
firmware manual for additional information.
www.trinamic.com