- Posts: 33
- Thank you received: 6
ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
- ALittleOffTheRails
- Visitor
-
4 years 8 months ago #236094
by ALittleOffTheRails
Replied by ALittleOffTheRails on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
The i5 & i9 look good, but by the time you've got hold of the ethernet module & daughter board it's getting close to 7i92 money.
Anyways the gateware built ok, once you have a driver sorted I can start testing.
I did a write up of installing Litex and oss-cad-suite here forum.linuxcnc.org/27-driver-boards/4442...rcnc?start=60#235932
Anyways the gateware built ok, once you have a driver sorted I can start testing.
I did a write up of installing Litex and oss-cad-suite here forum.linuxcnc.org/27-driver-boards/4442...rcnc?start=60#235932
Please Log in or Create an account to join the conversation.
- cncwhacko
- Offline
- Junior Member
-
Less
More
4 years 7 months ago #236117
by cncwhacko
Replied by cncwhacko on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I'd be happy to help test things as well. I have a 5a-75E V8 (which has same mapping as V6).
It seems your current version of the driver has nothing to do with step generation, is that correct?
It seems your current version of the driver has nothing to do with step generation, is that correct?
Please Log in or Create an account to join the conversation.
- TOLP2
- Offline
- Elite Member
-
Less
More
- Posts: 225
- Thank you received: 178
4 years 7 months ago #236137
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
I created a dedicated debug driver and removed the debug code from the etherbone driver. This means that the driver should work for a 5a-75a or 5a-75e.
At this moment only GPIO out is supported by the firmware. The next step is to add more functions to the board, which include PWM (coming tomorrow) and stepgen. My goal is to mimic the existing functions of LinuxCNC as close as possible (thus exporting the same input pins and parameters), so:
It seems your current version of the driver has nothing to do with step generation, is that correct?
At this moment only GPIO out is supported by the firmware. The next step is to add more functions to the board, which include PWM (coming tomorrow) and stepgen. My goal is to mimic the existing functions of LinuxCNC as close as possible (thus exporting the same input pins and parameters), so:
- PWM will be based on pwmgen and will export the same pins and parameters for a single output PWM. At start only type 0 will be supported, with dithering;
- stepgen will be based on stepgen . At start I would like to support type 0 (step/dir) as well as type 1 (up/down).
- encoder will be based on encoder .
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
- TOLP2
- Offline
- Elite Member
-
Less
More
- Posts: 225
- Thank you received: 178
4 years 7 months ago - 4 years 7 months ago #236176
by TOLP2
Replied by TOLP2 on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
PWM is done (without dithering though), using the same interface af the pwmgen component from LinuxCNC, see repository for the changes:
github.com/Peter-van-Tol/LiteX-CNC
Did not have the time to add the PWM the documenation / README yet, but I think the pins are self-explanatory at this moment.
github.com/Peter-van-Tol/LiteX-CNC
Did not have the time to add the PWM the documenation / README yet, but I think the pins are self-explanatory at this moment.
Last edit: 4 years 7 months ago by TOLP2.
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
4 years 7 months ago #236227
by andypugh
Replied by andypugh on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Late to the party 
PDM is probably worth considering. I think that suits digital systems with a fixed clock rate rather better than PWM. It's a little easier to implement, and has a (I think) a lower phase lag with changing command inputs.
PDM is probably worth considering. I think that suits digital systems with a fixed clock rate rather better than PWM. It's a little easier to implement, and has a (I think) a lower phase lag with changing command inputs.
Please Log in or Create an account to join the conversation.
- ALittleOffTheRails
- Visitor
-
4 years 7 months ago #236237
by ALittleOffTheRails
A wizard is never late, nor is he early. He arrives precisely when he means to.
Replied by ALittleOffTheRails on topic ColorCNC Colorlight 5A-75E/5A-75B as FPGA controller board
Late to the party
PDM is probably worth considering. I think that suits digital systems with a fixed clock rate rather better than PWM. It's a little easier to implement, and has a (I think) a lower phase lag with changing command inputs.
A wizard is never late, nor is he early. He arrives precisely when he means to.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.807 seconds