Shop OBEX P1 Docs P2 Docs Learn Events
High/Low or Pulsout ? — Parallax Forums

High/Low or Pulsout ?

curious1curious1 Posts: 104
edited 2007-04-09 01:06 in BASIC Stamp
··Would setting 4 pins high then low with no pause send a single pulse simultaneously out of each of·4 pins and what would the length of the pulse be ?
I need to send a single pulse to 4 different controllers at·the same time.

Would this work·without the pause·?
··· High 1,2,3,4
··· pause 1·········· If so, what is pulse width ?
··· Low 1,2,3,4

The controllers are not here yet, I'm just getting ready.
I guess if I tried it to set another pin high with code I could verify with the Debug ?
Thanks

Comments

  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2007-04-08 18:35
    Hi curious, you could use the DIRS command

    DIRA=$F

    PAUSE 1

    DIRA=$0

    for example would pulse pins 0 1 2 3. As for the legth of the pulse I would think maybe somewhere between 1 and 2 milliseconds. How critical is the pulse length?

    Jeff T.
  • curious1curious1 Posts: 104
    edited 2007-04-08 22:26
    The receiving controller is configurable to read the rising and fallling edges of fast and slow response signals. The controller can distinguish between 4 different outs from the bs2 to a common input. The delay for a slow response signal is set by parameter. The bs2 out for a slow response would need a pause greater than the delay. To see the fast response signal as such, it has to be completed before the delay set by parameter. Four different functions can be assigned to the input pin . I can adjust the delay, I just wondered if the High to low with no pause generates a positive signal with enough duration foe the controller to see it.
    Only thing critical is that the signal gets there.
  • allanlane5allanlane5 Posts: 3,815
    edited 2007-04-09 00:23
    What kind of "Controller" is this, that runs off a "programmable width" pulse?

    I only ask, because what you describe sounds very close to a servo control signal -- only it's hard to tell from your description.

    Do you have any vendors, or controller model numbers? It's SO much easier to interface to equipment when you have the vendors documentation for it.
  • curious1curious1 Posts: 104
    edited 2007-04-09 01:06
    Allan, what do you mean by a servo control signal ? Is that a standard ? Please explain.


    It's a Cool Muscle hybrid stepper/servo motor with everything built into the motor. (coolmuscle.com) Motor, amplifier/driver controller, and a 50,000 ppr encoder.
    4 IN
    2 Out
    Programmable , 16 program banks of 100 steps each.
    AMAZING little motor.
    Each input can actually be assigned 6 different functions. Four as stated above plus Target Voltage level.
    Which makes me wonder if the BS2 could be coded in a similar fasion as to distinguish fast from slow response signals, rising and falling edges.
    Each input could easily have at least 4 functions.
    Probably allready been done, what would the code look like ?

    Post Edited (curious1) : 4/9/2007 1:34:57 AM GMT
Sign In or Register to comment.