Timing Issue

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

Timing Issue

Post by Ron »

Hello,

I had a working program and then could not locate the latest source code, somehow must have deleted it. I went to older back up that should work and RS232 would not connect.

So I went back to basics with 2 versions of the same program. 18F4620, 20000000 EXT

Program 1

1 -> RA0 LED comes on when power is applied, instantly.

Program 2

Delay 2 seconds
1-> RA0 LED comes on 40 seconds later. Confirmed several times, always 40 seconds.



Using PICKIT2 programmer with the latest software

Config bits set as follows in config area of Flowcode

0x300002,0x1e
0x300003,0x1e
0x300005,0x81
0x300006,0x80
0x300008,0xf
0x300009,0xc0
0x30000a,0xf
0x30000b,0xe0
0x30000c,0xf
0x30000d,0x40

Any ideas why a 2 second delay in flowcode would become a real world 40 second delay?

Again everything was working fine this morning with code burned on PIC from source I lost somehow, so went with backup from a week ago and now nothing works.

Thank you,

Ron

Ron
Posts: 225
Joined: Wed Apr 11, 2007 6:15 pm
Has thanked: 2 times

Re: Timing Issue

Post by Ron »

Hi,

I changed the program for a 16F887 and it works properly.

So my guess is it is the config bits, any ideas????

Thank you,

Ron

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:

Re: Timing Issue

Post by Benj »

Hello Ron

The following configuration settings should work correctly for your device running at 20MHz.
Config.JPG
(147.58 KiB) Downloaded 946 times

Post Reply