Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.COM

X  

TMC4210 Datasheet(PDF) 26 Page - TRINAMIC Motion Control GmbH & Co. KG.

Part # TMC4210
Description  MOTION CONTROLLER FOR STEPPER MOTORS
Download  48 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TRINAMIC [TRINAMIC Motion Control GmbH & Co. KG.]
Direct Link  http://www.trinamic.com
Logo TRINAMIC - TRINAMIC Motion Control GmbH & Co. KG.

TMC4210 Datasheet(HTML) 26 Page - TRINAMIC Motion Control GmbH & Co. KG.

Back Button TMC4210 Datasheet HTML 22Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 23Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 24Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 25Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 26Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 27Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 28Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 29Page - TRINAMIC Motion Control GmbH & Co. KG. TMC4210 Datasheet HTML 30Page - TRINAMIC Motion Control GmbH & Co. KG. Next Button
Zoom Inzoom in Zoom Outzoom out
 26 / 48 page
background image
TMC4210 DATASHEET (Rev. 1.03 / 2015-JUN-03)
26
www.trinamic.com
6.1.9.2.3 Calculation Example: PMUL and PDIV
/* PROGRAM EXAMPLE ‘pmulpdiv.c’ : How to Calculate p_mul & p_div for the TMC4210 */
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void CalcPMulPDiv(int a_max, int ramp_div, int pulse_div, float p_reduction,
int *p_mul, int *p_div, double *PIdeal, double *PBest, double *PRedu )
{
int
pdiv, pmul, pm, pd ;
double p_ideal, p_best, p, p_reduced;
pm=-1; pd=-1; // -1 indicates : no valid pair found
p_ideal
= a_max /
(pow(2, ramp_div-pulse_div)*128.0);
p
= a_max / ( 128.0 * pow(2, ramp_div-pulse_div) );
p_reduced = p * ( 1.0 – p_reduction );
for (pdiv=0; pdiv<=13; pdiv++)
{
pmul = (int)(p_reduced * 8.0 * pow(2, pdiv)) – 128;
if ( (0 <= pmul) && (pmul <= 127) )
{
pm = pmul + 128;
pd = pdiv;
}
}
*p_mul = pm;
*p_div = pd;
p_best = ((double)(pm)) / ((double)pow(2,pd+3));
*PIdeal = p_ideal;
*PBest
= p_best;
*PRedu
= p_reduced;
}
int main(int argc, char **argv)
{
int
a_max=0, ramp_div=0, pulse_div=0, p_mul, p_div,
a_max_lower_limit=0, a_max_upper_limit=0;
double pideal, pbest, predu;
float
p_reduction=0.0;
char **argp;
if (argc>1)
{
while (argv++, argc--)
{
argp = argv + 1;
if (*argp==NULL) break;
if (
(!strcmp(*argv,”-a”)) ) sscanf(*argp,”%d”,&a_max);
else if ( (!strcmp(*argv,”-r”)) ) sscanf(*argp,”%d”,&ramp_div);
else if ( (!strcmp(*argv,”-p”)) ) sscanf(*argp,”%d”,&pulse_div);
else if ( (!strcmp(*argv,”-pr”))) sscanf(*argp,”%f”,&p_reduction);
}
}
else
{
fprintf(stderr,”\n
USAGE : pmulpdiv –a <a_max> -r <ramp_div> -p <pulse_div> -pr <0.00 .. 0.10>\n”
EXAMPLE : pmulpdiv –a 10 –r 3 –p 3 –pr 0.05\n”);
return 1;
}
printf(“\n\n
a_max=%d\tramp_div=%d\tpulse_div=%d\tp_reduction=%f\n\n”,
a_max, ramp_div, pulse_div, p_reduction);
CalcPMulPDiv(a_max, ramp_div, pulse_div, p_reduction, &p_mul, &p_div, &pideal, &pbest, &predu );
printf(“
p_mul = %3.3d\n
p_div = %3d\n\n p_ideal = %f\n
p_best = %f\n
p_redu = %f\n\n”,
p_mul, p_div, pideal, pbest, predu);
a_max_lower_limit = (int)pow(2,(ramp_div-pulse_div-1));
printf(“\n a_max_lower_limit = %d”,a_max_lower_limit);
if (a_max < a_max_lower_limit) printf(“
[WARNING: a_max < a_max_lower_limit]”);
a_max_upper_limit = ((int)pow(2,(12+(ramp_div-pulse_div)))) -1;
printf(“\n a_max_upper_limit = %d”,a_max_upper_limit);
if (a_max > a_max_upper_limit) printf(“
[WARNING: a_max > a_max_upper_limit]”);
printf(“\n\n”);
return 0;
}
/* -------------------------------------------------------------------------- */


Similar Part No. - TMC4210

ManufacturerPart #DatasheetDescription
logo
TRINAMIC Motion Control...
TMC423 TRINAMIC-TMC423 Datasheet
290Kb / 1P
   Triple Incremental Encoder Interface and Companion IC for the TMC428
TMC423 TRINAMIC-TMC423 Datasheet
226Kb / 22P
   Serial Triple Incremental Encoder Interface
TMC423 TRINAMIC-TMC423_1 Datasheet
226Kb / 22P
   Serial Triple Incremental Encoder Interface
TMC424 TRINAMIC-TMC424 Datasheet
446Kb / 21P
   Serial Triple Incremental Encoder Interface
logo
List of Unclassifed Man...
TMC428 ETC-TMC428 Datasheet
378Kb / 50P
   Intelligent Triple Stepper Motor Controller with Serial Peripheral Interfaces
More results

Similar Description - TMC4210

ManufacturerPart #DatasheetDescription
logo
Nippon Pulse America, I...
PCD46X1A NPM-PCD46X1A Datasheet
657Kb / 2P
   Economical Motion Controllers for Stepper Motors
logo
TRINAMIC Motion Control...
TMC453 TRINAMIC-TMC453 Datasheet
143Kb / 1P
   High End Motion Controller with Encoder Interface for Stepper Motors
TMCM-1311 TRINAMIC-TMCM-1311 Datasheet
772Kb / 24P
   MODULE FOR STEPPER MOTORS
TMCM-1630 TRINAMIC-TMCM-1630 Datasheet
524Kb / 18P
   MODULE FOR STEPPER MOTORS
TMCM-1160 TRINAMIC-TMCM-1160 Datasheet
977Kb / 26P
   MODULE FOR STEPPER MOTORS
TMCM-6210 TRINAMIC-TMCM-6210 Datasheet
1Mb / 44P
   Module for Stepper Motors
TMCM-343 TRINAMIC-TMCM-343_11 Datasheet
769Kb / 27P
   MODULES FOR STEPPER MOTORS
TMCM-351 TRINAMIC-TMCM-351_12 Datasheet
991Kb / 28P
   MODULES FOR STEPPER MOTORS
TMCM-3110 TRINAMIC-TMCM-3110 Datasheet
955Kb / 32P
   MODULES FOR STEPPER MOTORS
TMCM-1110 TRINAMIC-TMCM-1110 Datasheet
870Kb / 18P
   MODULE FOR STEPPER MOTORS
More results


Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


Datasheet Download

Go To PDF Page


Link URL




Privacy Policy
ALLDATASHEET.COM
Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Datasheet Upload   |   Contact us   |   Privacy Policy   |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com