Clock or similar output from UC300ETH ?

This Section is for users to discuss hardware

Clock or similar output from UC300ETH ?

Postby GaryLa » Sun Jan 31, 2021 4:12 pm

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.
GaryLa
 
Posts: 76
Joined: Thu May 30, 2019 11:30 pm

Re: Clock or similar output from UC300ETH ?

Postby cncdrive » Sun Jan 31, 2021 5:16 pm

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.
cncdrive
Site Admin
 
Posts: 4887
Joined: Tue Aug 12, 2014 11:17 pm

Re: Clock or similar output from UC300ETH ?

Postby GaryLa » Sun Jan 31, 2021 10:55 pm

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?
GaryLa
 
Posts: 76
Joined: Thu May 30, 2019 11:30 pm


Return to Hardware

Who is online

Users browsing this forum: Bing [Bot] and 11 guests