Create a FPGA board for raspberry

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

More
4 years 8 months ago #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

Please Log in to join the conversation.

More
4 years 8 months ago #235166 by D.L.
Boaschti, may be you want pwmgen with dual pwm outputs(up-down mode)?

Please Log in to join the conversation.

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

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

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

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

Time to create page: 0.055 seconds
Powered by Kunena Forum