Create a FPGA board for raspberry

More
4 years 8 months ago - 4 years 8 months ago #235081 by PCW
If you take the pinout file that D.L. provided and edit it to:

1. Add your additional encoders, sserial ports and PWMgens
2. Remove the inmux (actually not sure here if your hardware include the muxes or not)

Either D.L or I can take that new pinout and make a bitfile that
matches your hardware.
Last edit: 4 years 8 months ago by PCW.

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

More
4 years 8 months ago #235115 by D.L.

1. Add your additional encoders, sserial ports and PWMgens
2. Remove the inmux (actually not sure here if your hardware include the muxes or not)
 
1. Additional encoders, sserial ports and PWMgens not needed, the pinout was created for the current scheme .
2. InMux module needed, in the current scheme used multiplexing(ICs: U1-U4) input signals IN0-IN23.

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

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 or Create an account to join the conversation.

More
4 years 8 months ago - 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
Last edit: 4 years 8 months ago by D.L..

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

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

Please Log in or Create an account 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 or Create an account to join the conversation.

Moderators: PCW, jmelson
Time to create page: 0.457 seconds
Powered by Kunena Forum