Re: Help with XC compiler problem
Posted: Wed Jul 02, 2025 9:13 am
Hi Martin,medelec35 wrote: ↑Sat Jan 23, 2021 2:29 pm
for example, you can useYou can clear bits with cr_bit instead of st_bit.Code: Select all
PIE1bits.RCIE=1;
So to enable weak pull-ups on PIC16F1825 for example, you can useorCode: Select all
cr_bit(OPTION_REG,nWPUEN);
Code: Select all
OPTION_REGbits.nWPUEN = 1;
thank you for the useful info
Where can we get the details about these commands like cr_bit( ) { for clear bit } , st_bit( ) {for set bit}, etc....