Flowcode and real delay calculation

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
kovacs.peter
Posts: 8
Joined: Mon Jul 16, 2007 9:07 pm
Location: Hungary

Flowcode and real delay calculation

Post 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:
Dolo pugnandum est, dum quis par non est armis

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:

Post 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.

Post Reply