View previous topic :: View next topic |
Author |
Message |
FISH6942
Joined: 03 Feb 2006 Posts: 13 Location: Minnesota
|
Clean way to write to non-contiguous outputs |
Posted: Mon Jul 31, 2006 2:00 pm |
|
|
Using a PIC18F6310 with two large banks of LEDs. Each LED is connected to it's own output. The order that the LEDs are displayed doesn't correspond with the output ports. In other words, LEDs 0-7 aren't connected to portX 0-7.
I've been trying to come up with a way to map the output bit addresses to something that will code up a little cleaner (array of bits; union of bits/array of bits; ????) as opposed to writing each output individually.
So far nothing appears to even come close. Any pointers would be appreciated!! |
|
 |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
 |
|