Page 2 of 2

Re: Help with XC compiler problem

Posted: Wed Jul 02, 2025 9:13 am
by S_VE
medelec35 wrote:
Sat Jan 23, 2021 2:29 pm


for example, you can use

Code: Select all

PIE1bits.RCIE=1;
You can clear bits with cr_bit instead of st_bit.


So to enable weak pull-ups on PIC16F1825 for example, you can use

Code: Select all

cr_bit(OPTION_REG,nWPUEN);
or

Code: Select all

OPTION_REGbits.nWPUEN = 1;
Hi Martin,

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....

Re: Help with XC compiler problem

Posted: Wed Jul 02, 2025 12:15 pm
by medelec35
Hello.
You can see them within internals.c
Which can be found at the following for Flowcode10::

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV10\CAL
FlowcodeV9:

Code: Select all

%ProgramData%\MatrixTSL\FlowcodeV9\CAL
Since the directory is hidden, just copy and paste the above path in windows explorer.

Re: Help with XC compiler problem

Posted: Wed Jul 02, 2025 2:20 pm
by S_VE
Thank you Martin.

-S_V

Re: Help with XC compiler problem

Posted: Wed Jul 02, 2025 2:31 pm
by medelec35
You're welcome.
I have added the path for FC9 as well