outputs toggling
Archiver
Posts: 46,084
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.
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
>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