Page 1 of 1

Clock or similar output from UC300ETH ?

PostPosted: Sun Jan 31, 2021 4:12 pm
by GaryLa
I wish to sample the Step signals from the UC300 in order to use them within another processor.

Currently, I just over-sample them. I take a snapshot of them at a rate of 1MHz.

However, it would be better to have an indicator of the frequency at which the UC300ETH has been set in UCCNC (100KHz, 200KHz, 400KHz).

Is there any way to configure a pin on the UC300ETH to produce a clock which would indicate the maximum step frequency?

Or is it safe to say all step pulses rise based on one internal clock? If that's true, I can use the rising edge of any step pulse to reign-in my sampler.

Re: Clock or similar output from UC300ETH ?

PostPosted: Sun Jan 31, 2021 5:16 pm
by cncdrive
Hi,

No there is no such function yet, we did not even think about it yet. :)
But why don't you using an interrupt service routine to count/monitor the steps, usually that takes less CPU time than any other methods.

Re: Clock or similar output from UC300ETH ?

PostPosted: Sun Jan 31, 2021 10:55 pm
by GaryLa
Currently, I'm over-sampling by 2.5X just to be sure to get the changes (if 400KHz is in effect).

I don't interrupt on all step signals because I'm sampling all of them (XYZABC) and fear I'd spend too much time servicing IRQs.

I will connect my logic analyzer and study it, but I thought I'd ask in case it was something that was available at a pin.

Do you know if all step signals rise at the same time?