Page 1 of 1

Flowcode and real delay calculation

Posted: Wed Aug 29, 2007 7:16 pm
by kovacs.peter
Helo!

Can somebody suggest me a clear solution, to calculate the flowcode and the real delay?
Becouse if I insert a 1s delay to blink a led in flowcode, when I send the code to the PIC (16F877A with 4000000Hz,XTRAL osc, WDT off, S2 set to XTRAL, S4 set to FAST), it occures less then a half second to wait, not 1s...

I think/hope is there a simple calculation formula to get if I want to see 1s delays in the real circuit, how many sec I must to adjust in the flowchart.

Sorry If I ask too mutch... :oops:

Posted: Thu Aug 30, 2007 9:24 am
by Benj
Hello

The delays in Flowcode are based on the clock speed. If this value is configured correctly then the delays produced should be very accurate.

Goto the menu Chip -> Clock speed inside Flowcode and make sure that the speed is configured correctly.