Hello,
Im using a PIC16887 (Pickit2 debug express board) with HITECH PICC Compiler (lite mode) and Im trying to use __delay_ms(unsigned float) function.
Im just trying a "blink led" test, and I want it ON for 1sec and OFF for another second. However, when using 1000 as argument, I get this error:
Any suggestions?
Thanks!
Im using a PIC16887 (Pickit2 debug express board) with HITECH PICC Compiler (lite mode) and Im trying to use __delay_ms(unsigned float) function.
Im just trying a "blink led" test, and I want it ON for 1sec and OFF for another second. However, when using 1000 as argument, I get this error:
I also tried 250 in the argument but it fails. It seems the maximum value I can use is 197. With that value it succeeds and with 198 it fails. Weird?HI-TECH C PRO for the PIC10/12/16 MCU family (Lite) V9.65PL1
Copyright (C) 1984-2009 HI-TECH SOFTWARE
(1273) Omniscient Code Generation not available in Lite mode (warning)
Warning [1355] C:\Users\mribeiro\Documents\PIC_Projects\TESTING_C\test.c; 30. inline delay argument too large
Error [800] C:\Users\mribeiro\AppData\Local\Temp\s520.; 116. undefined symbol "?__delay"
Error [800] C:\Users\mribeiro\AppData\Local\Temp\s520.; 124. undefined symbol "__delay"
Any suggestions?
Thanks!