Help with XC compiler problem

For general Flowcode discussion that does not belong in the other sections.
S_VE
Posts: 28
http://meble-kuchenne.info.pl
Joined: Tue Jan 26, 2021 6:10 am
Has thanked: 42 times
Been thanked: 1 time

Flowcode v9 Re: Help with XC compiler problem

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

medelec35
Matrix Staff
Posts: 1993
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 665 times

Re: Help with XC compiler problem

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

S_VE
Posts: 28
Joined: Tue Jan 26, 2021 6:10 am
Has thanked: 42 times
Been thanked: 1 time

Re: Help with XC compiler problem

Post by S_VE »

Thank you Martin.

-S_V
S_V

medelec35
Matrix Staff
Posts: 1993
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 630 times
Been thanked: 665 times

Re: Help with XC compiler problem

Post by medelec35 »

You're welcome.
I have added the path for FC9 as well
Martin

Post Reply