Joined: 28 Aug 2007 Posts: 99 Location: New Zealand
Scrolling ports
Posted: Wed Mar 26, 2008 1:40 pm
Is it possible to scroll through pins outputting a high using a for loop? Is it also possible to scroll through pins checking there inputs using a for loop?
I just want to condense my code and it will also make it easier to modify for different combinations.
SherpaDoug
Joined: 07 Sep 2003 Posts: 1640 Location: Cape Cod Mass USA
Posted: Wed Mar 26, 2008 2:38 pm
Map a port to a byte. How to do that in in the Common Q&A in the manual. Then use shift operations to rotate a mask which you write to the port. _________________ The search for better is endless. Instead simply find very good and get the job done.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum