Page 1 of 1

Data Registers in Flowcode 8

Posted: Mon Nov 26, 2018 7:53 pm
by Dave Squibb
Hi all
I've just upgraded from Flowcode 6 to 8 and am having problems with Data Registers.
In Flowcode 6 you could use a C box and put things like

Code: Select all

set_bit(intcon,2);  
clear_bit(intcon,2); 
cmcon=7;
This is not accepted in Flowcode 8, probably because of the Compiler change to XC8
How do I achieve this please?

Re: Data Registers in Flowcode 8

Posted: Mon Nov 26, 2018 8:18 pm
by medelec35
Hi Dave,
Registers in boostC (up to and including V6) are in lower case.
Registers in XC8 (V7 and above) are in upper case.
This may also help

Re: Data Registers in Flowcode 8

Posted: Mon Nov 26, 2018 9:56 pm
by Dave Squibb
Hi Martin,
Thanks for that, I'll have a look. The C simulation doesn't seem to like lower or upper case.
Dave

Re: Data Registers in Flowcode 8

Posted: Tue Nov 27, 2018 11:43 am
by Benj
Hello Dave,

The C code simulation will not simulate the microcontroller registers it is designed to simulate generic C code.

e.g. as shown here.
https://www.matrixtsl.com/flowcode/new/#idElement3

Re: Data Registers in Flowcode 8

Posted: Tue Nov 27, 2018 11:48 am
by Dave Squibb
The only time I use a C icon is to set / clear bits in microcontroller variables. The simulator always jumped over C boxes so I was delighted that Flowcode 8 could simulate C..........

Is this something that could be added in the future? I appreciate that Flowcode can't know the initial value of the variable but if it is initialised by the user?