Hi
I am working with a program, the program need 2 funcion VRef and Delay; My program the half work in Flow4 and the another half work in Flow5;
In Flow5 work the Delay very good and VRef not work in PIC18F4620, and Flow4 VRef work fine and the Delay work fine in flowcode4 but in hardware not.
I do all program in Flow4, you can see the timer program in that is wrong, I select 1 second, but work for 8 minutes, the delay is a variable with calculation are seconds, minutes and hours; When I use variable in Delay, work fine in Flow4 but hardware not. (PIC18F4620). The number are the 2 digitos and is selected with a keypad.
Thank you
Delay with Variable
Moderator: Benj
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Delay with Variable
Hi electron67 the reason delay using variables don't work on hardware is because the variable can only have a maximum value of 255;
For a work round see:
http://www.matrixmultimedia.com/mmforum ... 624#p15633
This has been fixed on Flowcode V5 so a variable can be 0 to 65535
Martin
For a work round see:
http://www.matrixmultimedia.com/mmforum ... 624#p15633
This has been fixed on Flowcode V5 so a variable can be 0 to 65535
Martin
Martin
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
Re: Delay with Variable
Thank you, is solved the problem in Flowcode5 whit VRef in PIC18F4620.
Saludos
Electron67
Saludos
Electron67