SSI absolute encoders and analog servos

More
10 years 5 days ago #82083 by PCW
Did you set the frequency in the hal file?

Do the errors only come once?

Please Log in to join the conversation.

More
10 years 4 days ago #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 to join the conversation.

More
10 years 4 days ago #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 to join the conversation.

More
10 years 4 days ago #82091 by terkaa
In HAL file almost at the top. Before setting timers for SSI.

Tero

Please Log in to join the conversation.

More
10 years 4 days ago #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 to join the conversation.

More
10 years 4 days ago #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 to join the conversation.

More
10 years 4 days ago #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 to join the conversation.

More
10 years 4 days ago #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 to join the conversation.

More
10 years 4 days ago #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:

Attachment not found



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

Please Log in to join the conversation.

More
10 years 3 days ago #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 to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum