problems with variables

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Andi
Posts: 19
Joined: Thu Nov 29, 2007 12:08 pm
Contact:

problems with variables

Post by Andi »

Hi all!
Here is my problem:

Image
as you can see in the picture, i first set the variable "test=0"
Then i check if an interruptflag is enabled (IRVST)
If the interruptflag is enabled, i whould like to set "test" to 1
i tryed this with:
MOVLW 0x01
MOVWF gbl_FCV_TEST

if the flag is not enabled, i whould like to set "test" to 0
MOVLW 0x00
MOVWF gbl_FCV_TEST

then i leave the assembly label and i check with an if request if "test" is 1 or 0
if "test" is 1 i whould like to put out 1 on port A0
else do nothing

but this isnt working... how can i manage it to get it working?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: problems with variables

Post by Benj »

Hello

Try using this code instead.

MOVWF _FCV_TEST

This should solve the problem.

Post Reply