Products > Programming

PIC ports and C

<< < (4/4)

Ian.M:
Although the short port pin names and SFR bit names work on old PICs, and are currently still there for compatibility with old code, Microchip are committed to removing them and they aren't defined on new PICs.    Get used to using the SFRbits.bitname form . . . .

PerranOak:
Oh right, cheers.

nigelwright7557:
I never use GPIO to reference a port.
I use #define LED GPIO,0
Makes the code much more readable.


Navigation

[0] Message Index

[*] Previous page

There was an error while thanking
Thanking...
Go to full version