russellperry
- 2nd February 2014, 09:32
I'm trying to figure out how to put an address in pic by Dip Switch. What I mean is I'm trying to teach pic to determine network address 485 by changing the state of dip Switchs.
sample request:
for address 001 - dip switch will be off off off on
for address 002 - dip switch will be off off on on
and so on.
what i am missing is the true table and how to code it in picbasic.
I sure like a snip of code to understand this issue.
Does anyone have an idea?
sample request:
for address 001 - dip switch will be off off off on
for address 002 - dip switch will be off off on on
and so on.
what i am missing is the true table and how to code it in picbasic.
I sure like a snip of code to understand this issue.
Does anyone have an idea?