datasheet for TMC454 by Trinamic


Add to my manuals
62 Pages

advertisement

datasheet for TMC454 by Trinamic | Manualzz

TMC454 DATASHEET (v. 1.02 / October 5, 2009) 48

9.4 Administration of the different modes of operation and output control

The TMC454 supports all kinds off stepper motors and thus has a number of different modes of operation. The outputs have to be configured differently depending on the mode. Some operation modes need both the digital and the analog outputs. Unused outputs can be used as general purpose output.

The analog outputs are controlled via the module analog motor control.

The registers pmap_dac0, pmap_dac1 and pmap_dac2 allow direct control of the output voltages for all three

DACs.

pmap_dac0: 8 bit rw

(address: 0x90)

Bit Term

0-7 DAC0_REG_DIRECT

Description

Controls the output value for DAC0OUT in direct mode.

pmap_dac1: 8 bit rw

(address: 0x91)

Bit Term

0-7 DAC1_REG_DIRECT

pmap_dac2: 8 bit rw

(address: 0x92)

Bit Term

0-7 DAC2_REG_DIRECT

Description

Controls the output value for DAC1OUT in direct mode.

Description

Controls the output value for DAC2OUT in direct mode.

pmap_mc: 2 bit rw

(address: 0x93)

Bit Term

0,1 MC_REG_DIRECT

Description

Controls the outputs MC0 and MC1 in direct mode.

The register pmap_conf controls, which unit operates the analog outputs (DAC0OUT, DAC1OUT, DAC2OUT).

Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG

TMC454 DATASHEET (v. 1.02 / October 5, 2009) 49

pmap_conf: 6 bit rw

(address: 0x94)

Bit Term Description

0 ENABLE_DAC0_REG_DIRECT Controls the analog output DAC0OUT.

When sinestep operation is active, (s.register seq_config ) the cosine wave is output.

In microstep mode, the value of the microstep RAM addressed by

mstep_phase0_cnt (s.Register seq_config ) is output.

If neither mode is active this flag selects:

1: The output is controlled by the value in pmap_dac0.

0: The output gives the microstep table contents.

1 ENABLE_DAC1_REG_DIRECT Controls the analog output DAC1OUT.

When sinestep operation is active, (s.register seq_config ) the sine wave is output.

In microstep mode, the value of the microstep RAM addressed by

mstep_phase1_cnt (s.Register seq_config ) is output.

If neither mode is active this flag selects:

1: The output is controlled by the value in pmap_dac1.

0: The output gives the microstep table contents.

2 ENABLE_DAC2_REG_DIRECT Controls the analog output DAC2OUT.

When the ENABLE_STO_VOUT_DIRECT is set, the actual velocity value is output via DAC3. It is output as absolute value (MSB-bound: bits 12-5).

In microstep mode, the value of the microstep RAM addressed by

mstep_phase2_cnt (s.Register seq_config ) is output, when a 3-phase motor is selected.

If neither mode is active this flag selects:

1: The output is controlled by the value in pmap_dac2.

0: The output is controlled by the automatic motor current control unit (described in the chapter on the FIFO).

3 ENABLE_MC0/MC1_REG_DIRE

CT

0: The digital outputs MC0 and MC1 are controlled by the current control unit.

1: The digital outputs MC0 and MC1 are controlled by the register

pmap_mc.

4 ENABLE_DAC2_VOUT_DIRECT 0: DAC2OUT is controlled by the standard functions.

1: The actual absolute velocity value is output via DAC2OUT

This function is useful for servo motor control!

5 ENABLE_STO_VOUT_DIRECT

0: STO0-STO9 is controlled by the standard functions.

1: The actual velocity value is output via STO0-STO9 (MSB-bound: bits 12-

3).

This function is useful for servo motor control!

The digital outputs STO0-STO9 are controlled according to the chosen function:

They are influenced by the following registers:

- seq_sot_output_ select selects the microstep RAM or the sequencer as source.

- ENABLE_STO_VOUT_DIRECT in register

pmap_conf switches the velocity value to the outputs.

The different combinations are shown in the following table:

seq_sto_output_select: 2 bit rw

(address: 0x2D)

Bit Term

0-1 STO_OUTPUT_SELECT

Description

Configures the digital outputs STO0-STO9

With ENABLE_STO_VOUT_DIRECT = 0:

01: 10 bit value from the microstep RAM (bits 9-0)

10: 10 bit value from the microstep RAM (bits 17-8)

11: 10 bit value from the microstep RAM (bits 23-14)

00: Control via sequencer

When ENABLE_STO_VOUT_DIRECT = 1, the actual velocity is output as 10 bit signed integer.

The selection of bit patterns from the microstep RAM is done by the RAM pointers (mstep_phase0_cnt, mstep_phase1_cnt, mstep_phase2_cnt). Each pointer addresses an 8 bit value from the RAM. The

Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG

TMC454 DATASHEET (v. 1.02 / October 5, 2009) 50 combination of all three values result in a 24 bit wide value. This value can be output at the digital outputs

(STO0-STO9) as chosen via the register seq_sto_output_select.

0

8 Bit 8 Bit

Phase Pattern

Sinuswave

SO_PHASE_OR_SIN

8 Bit

23

[9..0]

[17..8]

[23..14]

Sequencer Output

01

10

11

00 seq_sot_output_select

ENABLE_STO_VOUT_DIRECT

0

STO0-STO9

V_act(13..4)

1

Figure 9.12: Control of the digital outputs STO0-STO9

Copyright © 2009, TRINAMIC Motion Control GmbH & Co. KG

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents