Delay error pic 18f8722

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

Moderators: Benj, Mods

Post Reply
saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Delay error pic 18f8722

Post by saschech@gmx.de »

Hallo Benj

By praxis delay 100ms is ca. 1sec.
1sec is ca. 10sec.

C:\Programme\Matrix Multimedia\Flowcode V3\BoostC\boostlink.pic.exe -ld "C:\Programme\Matrix Multimedia\Flowcode V3\BoostC\lib" libc.pic18.lib flowcode.pic18.lib "sapimu_18f8722.obj" -t PIC18F8722 -d "D:\sapimu_18f8722" -p "sapimu_18f8722"

BoostLink Optimizing Linker Version 6.85
http://www.sourceboost.com
Copyright(C) 2004-2008 Pavel Baranov
Copyright(C) 2004-2008 David Hobday


Caution: Delay inaccurrate: 'delay_ms', Delay overhead:0ms, Unit delay:1.00006ms, Delay resolution:1 units
Building CASM file

Memory Usage Report
===================
RAM available:3936 bytes, used:6 bytes (0.2%), free:3930 bytes (99.8%),
Heap size:3930 bytes, Heap max single alloc:127 bytes
ROM available:131072 bytes, used:226 bytes (0.2%), free:130846 bytes (99.8%)


success

Return code = 0

FINISHED

Regards wolfgang

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: Delay error pic 18f8722

Post by Benj »

Hello Wolfgang

Is the clock in Flowcode set correctly. Also are you using the Crystal Oscillator or the RC oscillator.

The speed in Flowcode must match your hardware crystal speed or the RC speed. Flowcode does not control the speed it merely conforms to it.

saschech@gmx.de
Posts: 714
Joined: Wed Jan 31, 2007 12:41 pm
Has thanked: 1 time
Been thanked: 26 times
Contact:

Re: Delay error pic 18f8722

Post by saschech@gmx.de »

Hallo Benj

The Oscillator config bit was wrong; thankyou.

Question more:

If i build the *.asm in flowcode and program with MPlab icd2, where are the place
to adjust the config bits correct?

Regards wolfgang

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: Delay error pic 18f8722

Post by Benj »

Hello

Flowcode embedds the config bits into the hex file so if you are sending the hex file via MPLAB then you should be OK. However if you are compiling the Assembler code with MPLAB then you will need to set the config bits in the Configure Menu.

Post Reply