microcontroller vs parallel port
11 Mar 2024 13:00 #295628
by cornholio
Replied by cornholio on topic microcontroller vs parallel port
I don’t think bit banging SPI over the Parallel Port is going to have the required speed.
If you want to use the Parallel Port to talk to a motion controller board EPP is the way to do it.
This has a couple of options.
Easiest is to grab a Mesa 7i90 72 io pins and 3.3v to 5v logic translation is built in.
Next easiest, grab a Spartan 6 dev board and modify the 7i90 firmware, this the way I’ve gone, in actual fact not a lot needs to be done. I also designed and built some boards to do the 3.3 to 5v translation. One of the Popular colorlight boards, RV901T, can also be used, but this requires replacing some SMD chips and running the board from 4.2v. Experimented this with SPI, EPP would be doable but with reduced io. I’ve used this board as a Smart Serial board.
Third option would be EPP to micro controller, this would be the most different as the driver on the linuxcnc side would have to written from scratch and the firmware from the micro controller would have to be written from scratch as well.
SPI is best suited to the RPi 4, until something can be done with the RPI5.
Although one of the PCIe to parallel\serial port chips does have SPI capability, but as far as I am aware the only boards available are from the chip vendor. And yes this does appear to be implemented via hardware on the chip.
Now let’s talk the economic side.
Given the choice of buying a 7i90 from Mesa or rolling my own Mesa would have been the choice. The cost of developing isn’t cheap compared to buying a ready to go product. PCBs need to be designed and manufactured, parts need to be bought. Another big kick is the postage to Down Under.
If you can get onto a project that is mature, the costs can be a little less. But a lot of the time the electrical interface from 3.3 or 5v logic to 12 or 24v for inputs from and to your machine are left up to yourself.
It’s a lot more than choosing a particular board and writing software, there’s a few more hats you have to wear to get a project going. Those that do my hat is off to you.
Regarding USB, user wez is working on this and does seem to be having success.
One thing I have been grateful for is the help Pete from Mesa has given to get the Mesa firmware running on non Mesa hardware. He’s really a generous bloke.
If you want to use the Parallel Port to talk to a motion controller board EPP is the way to do it.
This has a couple of options.
Easiest is to grab a Mesa 7i90 72 io pins and 3.3v to 5v logic translation is built in.
Next easiest, grab a Spartan 6 dev board and modify the 7i90 firmware, this the way I’ve gone, in actual fact not a lot needs to be done. I also designed and built some boards to do the 3.3 to 5v translation. One of the Popular colorlight boards, RV901T, can also be used, but this requires replacing some SMD chips and running the board from 4.2v. Experimented this with SPI, EPP would be doable but with reduced io. I’ve used this board as a Smart Serial board.
Third option would be EPP to micro controller, this would be the most different as the driver on the linuxcnc side would have to written from scratch and the firmware from the micro controller would have to be written from scratch as well.
SPI is best suited to the RPi 4, until something can be done with the RPI5.
Although one of the PCIe to parallel\serial port chips does have SPI capability, but as far as I am aware the only boards available are from the chip vendor. And yes this does appear to be implemented via hardware on the chip.
Now let’s talk the economic side.
Given the choice of buying a 7i90 from Mesa or rolling my own Mesa would have been the choice. The cost of developing isn’t cheap compared to buying a ready to go product. PCBs need to be designed and manufactured, parts need to be bought. Another big kick is the postage to Down Under.
If you can get onto a project that is mature, the costs can be a little less. But a lot of the time the electrical interface from 3.3 or 5v logic to 12 or 24v for inputs from and to your machine are left up to yourself.
It’s a lot more than choosing a particular board and writing software, there’s a few more hats you have to wear to get a project going. Those that do my hat is off to you.
Regarding USB, user wez is working on this and does seem to be having success.
One thing I have been grateful for is the help Pete from Mesa has given to get the Mesa firmware running on non Mesa hardware. He’s really a generous bloke.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
11 Mar 2024 15:34 #295642
by tommylight
Replied by tommylight on topic microcontroller vs parallel port
Tldr, but parallel port can do PWM on it's own on all output pins, so no need for SPI or AVR or STM
Please Log in or Create an account to join the conversation.
11 Mar 2024 16:21 #295648
by andrei
Replied by andrei on topic microcontroller vs parallel port
Will "AVR over SPI" remove paraport limitations e.g. speed (encoders sampling etc.)? Or paraport itself is the bottleneck no matter how fast sampling device attached to it?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6432
11 Mar 2024 17:24 #295659
by tommylight
Replied by tommylight on topic microcontroller vs parallel port
Parallel port is very usable for almost all hobby machines and even some industrial ones, there are plenty of old machines using it, very big machines at that.
Parallel port can usually do 10000 to 50000 pulses or encoder counts on all pins at the same time, this is something that is often neglected all over the internet.
To summ it up, it is cheap, it is usable and very reliable, old PC's with parallel port are dirt cheap, buy one, do some tests, ignore "internet experts with 256000 microstepping", you will be very happy with it ... till you go into "performance" mode, by then you will know why you are getting a Mesa FPGA and be even happier with it.
Parallel port can usually do 10000 to 50000 pulses or encoder counts on all pins at the same time, this is something that is often neglected all over the internet.
To summ it up, it is cheap, it is usable and very reliable, old PC's with parallel port are dirt cheap, buy one, do some tests, ignore "internet experts with 256000 microstepping", you will be very happy with it ... till you go into "performance" mode, by then you will know why you are getting a Mesa FPGA and be even happier with it.
The following user(s) said Thank You: andrei
Please Log in or Create an account to join the conversation.
12 Mar 2024 01:16 #295705
by cornholio
Replied by cornholio on topic microcontroller vs parallel port
If you do want to try bit banging SPI
www.n5dux.com/ham/files/pdf/SPI%20And%20...20Printer%20Port.pdf
www.wallacecompany.com/machine_shop/EMC2/serial_adc/
www.wallacecompany.com/machine_shop/EMC2/serial_dac/
Aforementioned PCIe card
www.asix.com.tw/en/product/Interface/PCIe_Bridge/AX99100
www.n5dux.com/ham/files/pdf/SPI%20And%20...20Printer%20Port.pdf
www.wallacecompany.com/machine_shop/EMC2/serial_adc/
www.wallacecompany.com/machine_shop/EMC2/serial_dac/
Aforementioned PCIe card
www.asix.com.tw/en/product/Interface/PCIe_Bridge/AX99100
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds