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
Timing Issue
Re: Timing Issue
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
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
- 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
Hello Ron
The following configuration settings should work correctly for your device running at 20MHz.
The following configuration settings should work correctly for your device running at 20MHz.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel