- No category
advertisement
TMC454 DATASHEET (v. 1.02 / October 5, 2009) 17
4.5 Using TRINAMIC Driver (TMC236, TMC239, TMC246, TMC249) via SPI
Hint:
TMCDRV_SDI is an output and has to be connected with the pin named SDI of the
TRINAMIC driver (TMC236, TMC239, TMC246, TMC249). TMCDRV_SDO is an input and has to be connected with the output pin named SDO of the TRINAMIC driver.
Please refer the TRINAMIC stepper motor driver datasheets for a detailed description of the control signals resp. control bits.
4.5.1 Control Signals
There are two control signals for the TRINAMIC drivers.
4.5.1.1 TMCDRV_MD_EN
The signal named TMCDRV_MD_EN controls the Mixed Decay Feature of the TRINAMIC stepper motor drivers TMC236, TMC239, TMC246, TMC249.
4.5.1.2 TMCDRV_SHAFT
The shaft signal is intended to be used for changing the direction of revolution of a stepper motor. The shaft signal is not intended to be used as a direction signal. It is intended to be used for compatibility with existing applications based on the TMC453 with an other driver configuration.
4.5.2 Diagnosis Signals
There are three diagnosis signals directly available.
4.5.2.1 TMCDRV_OTPW
The TMCDRV_OTPW is the “over Temperature Pre-Warning” signal sent back from the TRINAMIC driver via
SPI.
4.5.2.2 TMCDRV_ERROR
The TMCDRV_ERROR is the logical of error condition signals (short, open load, over temperature)
4.5.3 Using StallGuard
TM with TMC246 or TMC249
The TMC454 is equipped with a low active StallGuard
TM
output named TMCDRV_nSTALL. The output is low active to used it to drive directly TMC454 reference switch inputs. The StallGuard
TM
threshold is set by the three LSB of the DAC2. These three LSB are mapped internally to the TRINAMIC stepper motor SPI interface.
With this, the DAC2 can still be used for analog current scaling.
4.5.4 PWM DAC for Current Scaling
Analog current scaling can be done by using DAC2 without an additional external DAC. A simple resistor voltage divider with a capacitor driven by the PWM_DAC2 output of the TMC454. The internal resistance of the both INA and INB analog control inputs of the TRINAMIC stepper motor drivers have to be taken into account.
Please refer to the TMC236 / TMC239 / TMC246 / TMC249 data sheets for details.
The PWM clock frequency fPWM is fCLKIN / 256. So, for a clock frequency fCLKIN = 16 MHz one gets a
PWM frequency fPWM = 16 MHz / 256 = 62.5 kHz for the PWM_DAC2 output.
Max Units Parameter Description fUPDT_TMC
number of TMC454 clock cycles for TRINAMIC stepper motor driver data update, the drivers data are updated with a frequency of fCLKIN[Hz] / 52
fUPDT_TMC_8
update frequency at 8 MHz clock frequency of TMC454
fUPDT_TMC_16 update frequency at 16 MHz clock frequency of TMC454
52
154
308 clock cycles kHz kHz
Table 4.5 : Update Frequency of TRINAMIC Drivers
Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 1 Features
- 6 Functional Overview
- 7 Introduction
- 7 Control of Stepper Motors
- 7 Microstepping
- 7 More precision using motor current control
- 7 Conclusion
- 9 Block diagram
- 10 Pinning, Package, and Electrical data of the TMC
- 10 Pinning of TMC
- 13 Pull-Up / Pull-Down Resistances
- 13 Blocking Capacitors
- 15 Package Outlines and Dimensions
- 15 Fine Pitch BGA Package with 144 Balls (FBGA144) of TMC454-BC
- 16 Absolute Maximum Ratings
- 16 Analog Functions - External Low Cost DACs
- 17 Using TRINAMIC Driver (TMC236, TMC239, TMC246, TMC249) via SPI
- 17 Control Signals
- 17 Diagnosis Signals
- 17 with TMC246 or TMC
- 17 PWM DAC for Current Scaling
- 18 External DACs - LTC
- 19 Digital part
- 19 The Bus interface
- 19 Parallel Interface
- 22 Serial Interface
- 23 Description of the COMMAND FIFO
- 23 Accessing the TMC
- 24 General functionality
- 24 Description of the registers of the COMMAND FIFO
- 24 FIFO Commands
- 26 Description of the status bits
- 27 STOP and SLOWDOWN-functions
- 27 Finding the Reference Position
- 28 Programming example for the FIFO
- 29 The Ramp Generator
- 29 General Description
- 29 Principle of Operation
- 32 Programming the Ramp generator
- 32 Automatic Ramp generation
- 33 Programmed / Interactive Ramp generation
- 33 Synchronization of multiple TMC454s
- 34 Ramp adaptive motor current control
- 35 The Incremental Encoder Interface
- 35 General Description
- 35 Registers of the Incremental Encoder Interface
- 37 The Sequencer
- 37 Registers for Sinestep operation
- 38 Programming the Sine Generator
- 41 Full Step and Half Step Operation
- 41 Automatic Phase Pattern Setup
- 42 Manual Phase Pattern Setup
- 45 Registers for Microstep Operation
- 48 Administration of the different modes of operation and output control
- 51 The PID Controller
- 51 General introduction
- 51 Increasing stepping accuracy and stabilizing the position
- 52 Description of the registers of the PID controller
- 56 Interrupt control and Interrupt Sources
- 58 TMC454 Register Overview
- 61 Literature & Links
- 61 Revision History