SSI absolute encoders and analog servos

More
26 Oct 2016 13:45 #82083 by PCW
Did you set the frequency in the hal file?

Do the errors only come once?

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 15:09 #82086 by terkaa
Did you not see halscope pics I posted? Photobucket has been slow today. Yes I did with setp hm2_5i25.0.dpll.base-frequency-khz 1.007 I was able to get phase.error quite close to zero. Yes this warning comes only once. See pics above pls.

Tero

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 15:41 #82087 by PCW
Yes i saw the pictures and assumed you use setp to set the base rate
my question was whether this was done in the hal file at startup or via
a halcmd later

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 16:28 #82091 by terkaa
In HAL file almost at the top. Before setting timers for SSI.

Tero

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 16:53 #82100 by PCW
Do you get an error if you don't set the SSI timer channels?

If not, its probably possible to set the timer channels after the DPLL has stabilized

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 18:08 #82109 by terkaa
I will check this tomorrow. If I do not get any, how do I set timers on after DPLL has stabilized?

Tero

Please Log in or Create an account to join the conversation.

More
26 Oct 2016 19:22 #82112 by PCW
For a test you can do it with a halcmd
it may be that it could be done in the postgui hal file

In the mean time I will look for a solution for DPLL configs where
the base clock is off by a significant amount

( This is not an issue with PCIE or Ethernet, only some PCI cards + some Motherboards )

Please Log in or Create an account to join the conversation.

More
27 Oct 2016 09:29 #82136 by terkaa
Ok I did comment out lines setp hm2_5i25.0.ssi.0n.timer-number 4 from HAL. Then I started control. Waited for at least 5 mins. But right after using halcmd setp hm2_5i25.0.ssi.01.timer-number 4. I get same warning....


Tero

Please Log in or Create an account to join the conversation.

More
27 Oct 2016 13:49 #82142 by PCW
There may be more going on here than just the wrong base frequency

What kind of latency do you get on that system?

I ask because your DPLL error plot even when adjusted, looks quite bad for a PCI system

For example here is a Ethernet system which should typically have worse latency but is much much better
than your system:



If i get a chance i will try and duplicate your issue here later today and see if I can come up with a workaround
Attachments:

Please Log in or Create an account to join the conversation.

More
28 Oct 2016 01:50 #82162 by PCW
I did some testing and the standard DPLL has a lock-in range of about +-0.75% at 1 KHz
normally this is OK but the PCI clock is just about that far off on your Motherboard

I made a quick test with variant DPLL tuning that allows about a 3% lock in range
so if you remind me what bitfile name you have, i can make a wide lock-in range version
for you to test. The variant also incorporates a integral term in the DPLL so small timebase offsets
are zeroed

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.100 seconds
Powered by Kunena Forum