DerStrom8
Super Moderator
Yes, in C18 you use the format of PORTAbits.RA0 to control RA0, PORTBbits.RB4 to control RB4, etc.
Gobbledok, it is is important for me to point out that you can say something like PORTAbits.RA0 = 1 to set RA0 to logic 1, or PORTAbits.RA0 = 0 to clear RA0. It is not only for reading a bit.
Regards, and happy 2012!![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Der Strom
Gobbledok, it is is important for me to point out that you can say something like PORTAbits.RA0 = 1 to set RA0 to logic 1, or PORTAbits.RA0 = 0 to clear RA0. It is not only for reading a bit.
Regards, and happy 2012!
Der Strom