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
Posted: Mon Jan 16, 2006 4:52 am
You could use structures. A good example is in 'lcd.c' (in 'drivers' folder)
Guest
PINS ASSIGN
Posted: Mon Jan 16, 2006 5:05 pm
Thank's but how can assign pins from diferent ports in a structure?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Jan 16, 2006 6:12 pm
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.
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