Use the CCS pin numbers. These numbers encode the port address
and the bit position of the pin in one number. Use the constants that
are listed in the .H file for your PIC, such as PIN_B1, etc.
The pin numbers consists of the bit position in the lower 3 bits, and
the port address in the upper bits (shifted left by 3 bits).
Franck26
Joined: 29 Dec 2007 Posts: 122 Location: Ireland
Posted: Wed Mar 05, 2008 2:32 pm
Thanks,
It's exactly what I need.
I knew that CCS is encoding the pin with just one integer, but I was not able to understand the code .
Thanks a lot,
Franck.
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