Page 1 of 1

Assigning Flowcode variables to registers

Posted: Sat Dec 07, 2013 3:30 am
by Kenrix2
You can assign Flowcode variables to the PIC Micro registers or to the individual bits in these registers and perform calculations on them using the Flowcode icons in your program. These "register variables" can be added to the "Variable Watch" window when simulating your program. In addition, the "register variables" do not use any General Purpose Ram locations since they are the actual registers. To assign a Flowcode variable to a register, a define is added to the Project Options/Supplementary Code/Definitions and Function Declarations. Then, in your program add the variable in Globals just like you would add any other variable. An example program that uses the default compiler is attached.