In Boost C lower case is used for register and uppercase for bits.
In XC8 Upper case is used for both.
Examples
Code: Select all
BoostC (Up to FC6) XC (FC7)
osccon = 0x70; OSCCON = 0x70;
st_bit(iocap,IOCAP3); st_bit(IOCAP,IOCAP3); or set_bit(IOCAP,IOCAP3);
for example to enable weak pull-ups on 16F1825 you will need to use:
Code: Select all
clear_bit(OPTION_REG,nWPUEN); or cr_bit(OPTION_REG,nWPUEN);