Page 1 of 1

1 sec delay is 4 sec

Posted: Thu Mar 02, 2017 1:36 pm
by go233
very strange: I wrote a very very simple code to have a 4 relays turning on and off every second and the delay is 4 sec instead between two clicks?
do you know why?

flowcode 6 v 6.1.2.0

EB-006-00-9
EB-038-00

micro PIC18F2455

Giovanni

Re: 1 sec delay is 4 sec

Posted: Thu Mar 02, 2017 1:45 pm
by Benj
Hello Giovanni,

We use delays to confirm if everything is setup correctly.

http://www.matrixtsl.com/wiki/index.php ... ED_flasher

It sounds like something may be off in your software. Looking now...

Re: 1 sec delay is 4 sec

Posted: Thu Mar 02, 2017 1:47 pm
by Benj
Problem is your configuration settings.

You have the CPU Sys CLK Select option set to OSC/4, I suggest changing this to OSC/1 and things should then work as expected.

Re: 1 sec delay is 4 sec

Posted: Sun Mar 05, 2017 11:00 am
by go233
oh! silly mistake!
Thanks
Giovanni