New project, litehm2: a hostmot2 port to linsn rv901t
22 Dec 2022 17:21 #260084
by sensille
New project, litehm2: a hostmot2 port to linsn rv901t was created by sensille
While another thread explores the possibility to build an FPGA firmware + host driver from scratch, I went down a different road. I took the original Mesa code and ported it to the LiteX environment, starting with the linsn rv901t LED receiver board. This gives me the opportunity to have all modules from hostmot2 immediately available and access to the full ecosystem that already exists. Only minimal patches to LinuxCNC are needed.
The project is fully working and stable (so far) on my 6040. The Documentation is not finished yet, especially the part about customizing your configuration.
I included a bitstream that is ready to flash.
Any feedback is more than welcome.
github.com/sensille/litehm2
The project is fully working and stable (so far) on my 6040. The Documentation is not finished yet, especially the part about customizing your configuration.
I included a bitstream that is ready to flash.
Any feedback is more than welcome.
github.com/sensille/litehm2
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 18787
- Thank you received: 6311
26 Dec 2022 11:43 #260314
by tommylight
Replied by tommylight on topic New project, litehm2: a hostmot2 port to linsn rv901t
Thank you.
Did you check what step rates can it output?
Not that i am using it, but from what i read on this forum, that is the often asked question.
Did you check what step rates can it output?
Not that i am using it, but from what i read on this forum, that is the often asked question.
The following user(s) said Thank You: Pro_El
Please Log in or Create an account to join the conversation.
26 Dec 2022 18:27 #260335
by sensille
Replied by sensille on topic New project, litehm2: a hostmot2 port to linsn rv901t
To be honest I don't know that part of the hostmot2-stack that well, it's basically the same as for the mesa cards. The core runs with 100MHz, so I assume several MHz are easily possible. The limit could be dictated by the 74hc245 output drivers.
The stepper drivers i have require a minium pulse width and spacing of 1usec each, so the max rate they can handle is 500kHz, and the card very easily delivers that.
The stepper drivers i have require a minium pulse width and spacing of 1usec each, so the max rate they can handle is 500kHz, and the card very easily delivers that.
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: 18787
- Thank you received: 6311
26 Dec 2022 19:24 #260341
by tommylight
Replied by tommylight on topic New project, litehm2: a hostmot2 port to linsn rv901t
That is way more than what they are getting, i think.
Please Log in or Create an account to join the conversation.
26 Dec 2022 22:05 #260352
by PCW
Replied by PCW on topic New project, litehm2: a hostmot2 port to linsn rv901t
The Hostmot2 stepgen is limited by various pipeline delays to about 1/8 of its clock frequency. (so about 12.5 MHz at the normal 100 MHz clocklow)
The following user(s) said Thank You: tommylight, sensille
Please Log in or Create an account to join the conversation.
25 Apr 2023 08:43 #269828
by kubabuda
Replied by kubabuda on topic New project, litehm2: a hostmot2 port to linsn rv901t
Hi, I see you rewrote Smartserial (SSLBP) master in C.
If I would translate it further into HAL comp, reading/writing from linux serial port (skipping FPGA), do you think this could work?
It would be way to use one or two remote Mesa cards over USB with UART adapter (+ RS 422 transceiver + RJ45 jack).
Obviously it would be limited by serial drivers and USB, so not real time. For human interfacing I/O like pendant, buttons this could be good enough.
Maybe has anyone did it already?
If I would translate it further into HAL comp, reading/writing from linux serial port (skipping FPGA), do you think this could work?
It would be way to use one or two remote Mesa cards over USB with UART adapter (+ RS 422 transceiver + RJ45 jack).
Obviously it would be limited by serial drivers and USB, so not real time. For human interfacing I/O like pendant, buttons this could be good enough.
Maybe has anyone did it already?
Please Log in or Create an account to join the conversation.
27 Apr 2023 07:51 #270042
by sensille
Replied by sensille on topic New project, litehm2: a hostmot2 port to linsn rv901t
I do not know much about Smartserial. I rewrote the LPB-code that runs on the mesa ethernet cards in C. Isn't there already code in the hostmod driver that talks LPB over serial?
Please Log in or Create an account to join the conversation.
- gulang123333
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 1
01 May 2023 02:42 #270372
by gulang123333
Replied by gulang123333 on topic New project, litehm2: a hostmot2 port to linsn rv901t
Hi,sensille,I am not an electrical engineer.
I saw the link github.com/sensille/litehm2 & github.com/q3k/chubby75/issues/85.
If I without any modifications to the RV901T, I will 24 output& 64 input ?
(Buffers
All I/O Buffers are powered by the 3.3V to 5.5V power supply.
Buffers U600 to U607 have a direction pin at F13. )
Can any one tell me where is F13?
I saw the link github.com/sensille/litehm2 & github.com/q3k/chubby75/issues/85.
If I without any modifications to the RV901T, I will 24 output& 64 input ?
(Buffers
All I/O Buffers are powered by the 3.3V to 5.5V power supply.
Buffers U600 to U607 have a direction pin at F13. )
Can any one tell me where is F13?
The following user(s) said Thank You: Pro_El
Please Log in or Create an account to join the conversation.
02 May 2023 05:51 #270448
by sensille
Replied by sensille on topic New project, litehm2: a hostmot2 port to linsn rv901t
Regarding issue 85: To be honest I haven't thought about if it might be a problem to run the ports as inputs. I just assumed it works because the board is designed that way. It still works without problems.
24 Input/ 64 Output: Yes, although I'm not sure that really all I/O is available on the 2 large headers.
F13 is an FPGA pin. My firmware currently switches it to input, but that is easily changed.
24 Input/ 64 Output: Yes, although I'm not sure that really all I/O is available on the 2 large headers.
F13 is an FPGA pin. My firmware currently switches it to input, but that is easily changed.
The following user(s) said Thank You: Pro_El
Please Log in or Create an account to join the conversation.
- gulang123333
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 1
02 May 2023 15:46 #270488
by gulang123333
Replied by gulang123333 on topic New project, litehm2: a hostmot2 port to linsn rv901t
Thanks for your help,sensille。
About one and half moons ago, I got a emddebed board(rockchip rk3399)& make preempt_rt kernel (debian/ ubuntu),latency tset about 40-80 us。And then, I found your about rv901t github link .I found your plan better than collorlight.So, I bought a rv901t. I want to use your plan .Can you write in more detail about readme.txt? It's best to step by step.because now it's to hard for anyone except electrical engineer.
About one and half moons ago, I got a emddebed board(rockchip rk3399)& make preempt_rt kernel (debian/ ubuntu),latency tset about 40-80 us。And then, I found your about rv901t github link .I found your plan better than collorlight.So, I bought a rv901t. I want to use your plan .Can you write in more detail about readme.txt? It's best to step by step.because now it's to hard for anyone except electrical engineer.
Please Log in or Create an account to join the conversation.
Time to create page: 0.140 seconds