What's the syntax to set or clear a particular bit of a register?
I've got the line CCP1CON.5 = 1; to set bit 5 of that register (CCP1CON is already defined as #byte CCP1CON = 0x17), but the compiler doesn't like it (keeps saying I need a ; on that line).
Ttelmah Guest
Posted: Sat Apr 07, 2007 10:18 am
#bit DC1B1=CCP1CON.5
You can then just set this to 1' or '0' when required.
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