Giter VIP home page Giter VIP logo

Comments (9)

OJthe123 avatar OJthe123 commented on June 27, 2024

I think this is already in progress, because the breakoutboards have the differential option
https://github.com/Peter-van-Tol/HUB-75-boards

from litex-cnc.

tuxcnc avatar tuxcnc commented on June 27, 2024

I think this is already in progress, because the breakoutboards have the differential option https://github.com/Peter-van-Tol/HUB-75-boards

Evidently, the author started from the end ...

from litex-cnc.

kubabuda avatar kubabuda commented on June 27, 2024

Why do you want two pins per diff line? Transceiver chip on daughter board normally handles this for you. You want to drive differential bus like RS422 straight from FPGA IO (without all protection in transceiver)?

from litex-cnc.

OJthe123 avatar OJthe123 commented on June 27, 2024

And, would an inverted Pin really be "differential" ?
really diefferential would be +5V / -5V right?
inverted Pin on FPGA side can only be +5V and 0V....

from litex-cnc.

kubabuda avatar kubabuda commented on June 27, 2024

@OJthe123 thats exactly my point

from litex-cnc.

tuxcnc avatar tuxcnc commented on June 27, 2024

And, would an inverted Pin really be "differential" ? really diefferential would be +5V / -5V right? inverted Pin on FPGA side can only be +5V and 0V....

The voltage is measured between two points, and the potential to the third (and others) does not matter.
(Did you know H bridge ?)

BTW.
This topic is about ADD inverted signals, no existing will be changed.
The differential output is only one of the possible purpose.
Note that STEP and PWM signals are NOT symmetric, someone may needs one but inverted signal...
Apart from that, as I wrote, if someone doesn't need inverted signals, he just won't use it.
The discussion about "why you need" has no sense.

from litex-cnc.

Peter-van-Tol avatar Peter-van-Tol commented on June 27, 2024

The differential stepgen is available from Litex-CNC. The way it is implemented in the JSON-configuration is:

"modules": [
    "modules": [
        ...,
        {
            "module_type": "stepgen",
            "instances": [
                {
                    "pins" : {
                        "stepgen_type": "step_dir_differential",
                        "step_pos_pin": "j9:6",
                        "step_neg_pin": "j9:5",
                        "dir_pos_pin": "j9:4",
                        "dir_neg_pin": "j9:2"
                    },
                    "soft_stop": true
                },
                ...
            ]
        }
    ]

To stand corrected: the module has been developed first and then the BOB.

The BOB outputs 0 and 5 Volt, analog to the encoder I had laying around. If this is considered to be not 'true' differential, one can also opt to use the stepgen_type step_dir and use the suggester tranceiver. But for 400 kHz pulse train this seems overkill in my opinion.

My rationale for using 2 pins for each signal of the stepper is the abundance of outputs available. My machine (EMCO5 CNC) is almost finished, and still ample outputs left over. If anybody sees an opportunity to contribute in the development of BOB's, please do so for the community. Improvements are welcome!

from litex-cnc.

OJthe123 avatar OJthe123 commented on June 27, 2024

is the module in the "standard" LiteX-CNC branch? Or in "add-external-extensions" ?

from litex-cnc.

Peter-van-Tol avatar Peter-van-Tol commented on June 27, 2024

This is in #11 . This branch is to be merged this week.

from litex-cnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.