Delay problem!
Posted: Wed Oct 07, 2009 9:09 am
I have a problem when craeting a delay, for example if i would like to have a 36KHz signal output on RB3(16F628A), When compiling to *.HEX i get this issue:
Caution: argument of 'delay_us' calls must have a value of 1 or more
Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_msDelay in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_Ms in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Building CASM file
Memory Usage Report
===================
RAM available:224 bytes, used:36 bytes (16.1%), free:188 bytes (83.9%),
Heap size:188 bytes, Heap max single alloc:94 bytes
ROM available:2048 words, used:178 words (8.7%), free:1870 words (91.3%)
success
Return code = 0
FINISHED
It simply doesnΒ΄t matter what value i put in the delay... If i make the delay in ms instead then itΒ΄s working just fine.
The strange thing about this is that if i use an older version of this testprogram(36KHz output on RB3) that i made several months ago, itΒ΄s working great.
I have also installed the latest version of Flowcode but there is still no change...
So..what to do??
*EDIT* The PIC is running at 20MHz.
Caution: argument of 'delay_us' calls must have a value of 1 or more
Warning unreferenced functions removed:
FCI_FLOAT_TO_STRING in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_NUMBER_TO_HEX in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_INT in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
FCI_STRING_TO_FLOAT in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_msDelay in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_S in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Wdt_Delay_Ms in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
isinf in: C:\Program\Matrix Multimedia\Flowcode V4\FCD\internals.h
Building CASM file
Memory Usage Report
===================
RAM available:224 bytes, used:36 bytes (16.1%), free:188 bytes (83.9%),
Heap size:188 bytes, Heap max single alloc:94 bytes
ROM available:2048 words, used:178 words (8.7%), free:1870 words (91.3%)
success
Return code = 0
FINISHED
It simply doesnΒ΄t matter what value i put in the delay... If i make the delay in ms instead then itΒ΄s working just fine.
The strange thing about this is that if i use an older version of this testprogram(36KHz output on RB3) that i made several months ago, itΒ΄s working great.
I have also installed the latest version of Flowcode but there is still no change...
So..what to do??
*EDIT* The PIC is running at 20MHz.