clock syncronisation

hello everyone,
i am using cygnal controller i.e c8051f020.
i am running 3 motors all together
all motors clock is of different timer
each timer has its own priority
i want to know is there any possibility to sycronization of clocks of all motors.
because i want to run some cycles which is required in project and i want to start the motors together to see if they are in same phase. but i still get lead/lag problem in the mechanism
can you suggest how to minimise this problem
pls let me know if any more information is needed
thank you all
take care

Parents
  • i want to know is there any possibility to sycronization of clocks of all motors.

    first, the obvious approach is to have a timer clock at the least common denominator for the timings aned do the resolution in the ISR.
    That can easily backfire by the ISR being overloaded, but if your frequencies are in the Hz to low kHz it should work.

    If you get marginal on this, switch to the f12x/f13x.

    another issue here is how much you need to do outside the ISR, which you do not say.

    Erik

Reply
  • i want to know is there any possibility to sycronization of clocks of all motors.

    first, the obvious approach is to have a timer clock at the least common denominator for the timings aned do the resolution in the ISR.
    That can easily backfire by the ISR being overloaded, but if your frequencies are in the Hz to low kHz it should work.

    If you get marginal on this, switch to the f12x/f13x.

    another issue here is how much you need to do outside the ISR, which you do not say.

    Erik

Children
More questions in this forum