Create a FPGA board for raspberry

More
17 Feb 2022 18:58 #235156 by Boaschti
Much Thanks!!!
That looks nice. Outpus are working. I tested with  7c80v2.zip
Inmux is present you are right.

The second PWM isn't listed in hm2_7c80-0-pwmgen. Is it ok?
If I see a value like 0.65 at hm2_7c80.0.pwmgen.00.value I should measure a PWM Signal on IO18? Am I right?
Where can i find the encoders in HAL Configuration?
 

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

More
17 Feb 2022 20:51 - 17 Feb 2022 20:53 #235163 by D.L.

The second PWM isn't listed in hm2_7c80-0-pwmgen. Is it ok?
If I see a value like 0.65 at hm2_7c80.0.pwmgen.00.value I should measure a PWM Signal on IO18? Am I right?
Where can i find the encoders in HAL Configuration?
 

hm2_7c80.0.pwmgen.00: first pwmgen, outputs 18(PWM), 19(/Enable)
hm2_7c80.0.pwmgen.01: second pwmgen, output 37(PWM)
For enable PWMgen need set hm2_7c80.0.pwmgen.00.value and hm2_7c80.0.pwmgen.00.enable=true

hm2_7c80.0.encoder.00: 15(A), 16(B ), 17(IDX)
hm2_7c80.0.encoder.01: 38(A), 39(B ), 40(IDX)
hm2_7c80.0.encoder.02: 48(A), 49(B ), 50(IDX)
hm2_7c80.0.encoder.03: 51(A), 52(B ), 53(IDX)

Hosmot2 manual, may be useful: linuxcnc.org/docs/html/man/man9/hostmot2.9.html
Last edit: 17 Feb 2022 20:53 by D.L..

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

More
17 Feb 2022 21:05 - 17 Feb 2022 21:06 #235166 by D.L.
Boaschti, may be you want pwmgen with dual pwm outputs(up-down mode)?
Last edit: 17 Feb 2022 21:06 by D.L..

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

More
18 Feb 2022 15:46 #235239 by Boaschti
The solution was to edit config string: num_encoders and num_pwmgen.

Much thanks for helping! And much thanks for that incredible project!

At this time i have to wait for some components (out of stock :-( )
Then i can test the board, fix some bugs, and publish on gihub.

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

More
18 Feb 2022 16:22 #235245 by D.L.

The solution was to edit config string: num_encoders and num_pwmgen.
 

Default(if not defined in config string) num_encoders and num_pwmgens = -1, it enables all pwmgens and encoders.
I do not know why it is not work, maybe this is some kind of bug hostmot2 driver.

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

More
18 Feb 2022 16:33 #235246 by PCW
This does work, if the num_xxx=n is not specified, then
all xxx modules that are present are enabled.

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

More
18 Feb 2022 17:58 #235255 by Boaschti
Everything is fine.
You missunderstand me or I wrote too inexact.
There was defined num_pwmgens=1 and num_encoders=0 and I edit it to num_pwmgens=2 and num_encoders=4.

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

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