Assigning Flowcode variables to registers

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

Post Reply
Kenrix2
Flowcode v5 User
Posts: 211
Joined: Tue Feb 19, 2013 9:51 pm
Has thanked: 72 times
Been thanked: 177 times
Contact:

Assigning Flowcode variables to registers

Post 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.
Attachments
Register _Variables.fcf
(7.5 KiB) Downloaded 462 times

Post Reply