- Posts: 23
- Thank you received: 0
Create a FPGA board for raspberry
4 years 8 months ago #235156
by Boaschti
Replied by Boaschti on topic Create a FPGA board for raspberry
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?
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.
4 years 8 months ago #235163
by D.L.
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
Replied by D.L. on topic Create a FPGA board for raspberry
hm2_7c80.0.pwmgen.00: first pwmgen, outputs 18(PWM), 19(/Enable)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.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.
4 years 8 months ago #235166
by D.L.
Replied by D.L. on topic Create a FPGA board for raspberry
Boaschti, may be you want pwmgen with dual pwm outputs(up-down mode)?
Please Log in to join the conversation.
4 years 8 months ago #235239
by Boaschti
Replied by Boaschti on topic Create a FPGA board for raspberry
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.
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.
4 years 8 months ago #235245
by D.L.
I do not know why it is not work, maybe this is some kind of bug hostmot2 driver.
Replied by D.L. on topic Create a FPGA board for raspberry
Default(if not defined in config string) num_encoders and num_pwmgens = -1, it enables all pwmgens and encoders.The solution was to edit config string: num_encoders and num_pwmgen.
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.
4 years 8 months ago #235246
by PCW
Replied by PCW on topic Create a FPGA board for raspberry
This does work, if the num_xxx=n is not specified, then
all xxx modules that are present are enabled.
all xxx modules that are present are enabled.
Please Log in to join the conversation.
4 years 8 months ago #235255
by Boaschti
Replied by Boaschti on topic Create a FPGA board for raspberry
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.
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
