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

pin to var assign

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







pin to var assign
PostPosted: Mon Jan 16, 2006 4:32 am     Reply with quote

HOW CAN ASSIGN PINS TO VARIABLE LIKE (PIN_C0, PIN_D3, PIN_B2 .....) VAR(INT16 VARNAME).
CAN I CHANGE THE VALUE OF VARIABLE TO HAVE DIRECT CHANGE ON PINS ?
PICoHolic



Joined: 04 Jan 2005
Posts: 224

View user's profile Send private message

PostPosted: Mon Jan 16, 2006 4:52 am     Reply with quote

You could use structures. A good example is in 'lcd.c' (in 'drivers' folder)
Wink
Guest








PINS ASSIGN
PostPosted: Mon Jan 16, 2006 5:05 pm     Reply with quote

Thank's but how can assign pins from diferent ports in a structure?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jan 16, 2006 6:12 pm     Reply with quote

You should tell us what your overall goal is.

I'm not exactly sure what you want. So it's possible that
my post near the end of the following thread may help.
http://www.ccsinfo.com/forum/viewtopic.php?t=18949
It shows how to create a function which can set various
port bits, when you pass a byte parameter to the function.
LSIS
Guest







PostPosted: Mon Jan 16, 2006 6:36 pm     Reply with quote

Thank's.
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