CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Clean way to write to non-contiguous outputs

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
FISH6942



Joined: 03 Feb 2006
Posts: 13
Location: Minnesota

View user's profile Send private message

Clean way to write to non-contiguous outputs
PostPosted: Mon Jul 31, 2006 2:00 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Jul 31, 2006 2:13 pm     Reply with quote

See the last post in this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=18949
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group