Shop OBEX P1 Docs P2 Docs Learn Events
outputs toggling — Parallax Forums

outputs toggling

ArchiverArchiver Posts: 46,084
edited 2004-03-11 01:22 in General Discussion
Will using the command dirs%00000001 make P0 of a basic stamp 2 to
become an output all the time and not toggle when the progam is not
doing anything?

The reason that i am asking this is b/c i am using two ADC's
connected to lines P0-P7 while using the inl command and selecting
between the two ADC's by using other output lines from the basic
stamp 2. But sometimes i have problems with reading the value from
the ADC's. I think the outputs are toggling but have no way of
measuring this.

All info is greatly appriciated.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-03-11 01:22
    At 11:59 PM 3/10/04 +0000, lanceallenr wrote:
    >Will using the command dirs%00000001 make P0 of a basic stamp 2 to
    >become an output all the time and not toggle when the progam is not
    >doing anything?

    No, not all the time as you seem to need.


    >The reason that i am asking this is b/c i am using two ADC's
    >connected to lines P0-P7 while using the inl command and selecting
    >between the two ADC's by using other output lines from the basic
    >stamp 2. But sometimes i have problems with reading the value from
    >the ADC's. I think the outputs are toggling but have no way of
    >measuring this.
    >
    >All info is greatly appriciated.

    My guess is that you map be using NAP or SLEEP in your program. Change that to a
    PAUSE and the problem may disappear.

    Regards,

    Bruce Bates
Sign In or Register to comment.