Flow Code V5 Binary Adder tutorial Not working
Posted: Fri Jul 06, 2012 4:42 pm
Hi Matrix
Many thanks for writing a superb on-line course for using Flowcode. I have followed the online course without a problem until I came to the Binary Adder program. I'm sure I have set up the three variables input1, input2, and sum correctly, and correctly set the two inputs to Port B and Port C, and the output to Port D.
Set the two SWITCHbanks to Port B and C and the LEDarray to Port D. The Calculation box is correctly set to sum = input1 + input2, and the program saved and set to use the PIC 16F1937, and I have tried the program targetted to the PIC 16F877.
But when I run the simulation I am not getting the result e.g. sum to produce anything.
I have used the Run Step Into (F8) option to step through the program, but the online tutorial indicates the Variable window which opens when the program is running should indicate the result of the variables e.g. number 11 and 15 if the turorial set up is used. I am not seeing this happen
In fact the only result that appears to be getting transferred to the LEDarray is the value set up on the C Port SWITCHbank, the program appears to be ignoring the B Port SWITCHbank setting completely. (and Yes the Port B SWITCHbank Connection option is set to Port B)
I feel sure I most not be the only person who has hit this problem any advice would be welcome
Many thanks for writing a superb on-line course for using Flowcode. I have followed the online course without a problem until I came to the Binary Adder program. I'm sure I have set up the three variables input1, input2, and sum correctly, and correctly set the two inputs to Port B and Port C, and the output to Port D.
Set the two SWITCHbanks to Port B and C and the LEDarray to Port D. The Calculation box is correctly set to sum = input1 + input2, and the program saved and set to use the PIC 16F1937, and I have tried the program targetted to the PIC 16F877.
But when I run the simulation I am not getting the result e.g. sum to produce anything.
I have used the Run Step Into (F8) option to step through the program, but the online tutorial indicates the Variable window which opens when the program is running should indicate the result of the variables e.g. number 11 and 15 if the turorial set up is used. I am not seeing this happen
In fact the only result that appears to be getting transferred to the LEDarray is the value set up on the C Port SWITCHbank, the program appears to be ignoring the B Port SWITCHbank setting completely. (and Yes the Port B SWITCHbank Connection option is set to Port B)
I feel sure I most not be the only person who has hit this problem any advice would be welcome