trennonix
New Member
Hello,
I'm trynig the __delay_ms() function in hi-tech c lite edition
but i always get a warning about "implicit signed to unsigned conversion"
so the program runs as if the delay function was never written
this is the code:
#include <htc.h>
int _XTAL_FREQ=4000000;
unsigned long time=200;
void
main(void)
{
TRISB=0;
while (1){
RB0=1;
__delay_ms(time);
RB0=0;
__delay_ms(time);
}
}
tried to add the numbers directly into the function without declaring a variable, but i still got the same error
tried "(unsigned long)value" same thing :S
Any ideas? thanks a lot
btw i'm using the latest compiler (downloaded 3 days ago) for 10\12\16 family lite edition
running in Hi-Tide IDE also latest version
I'm trynig the __delay_ms() function in hi-tech c lite edition
but i always get a warning about "implicit signed to unsigned conversion"
so the program runs as if the delay function was never written
this is the code:
#include <htc.h>
int _XTAL_FREQ=4000000;
unsigned long time=200;
void
main(void)
{
TRISB=0;
while (1){
RB0=1;
__delay_ms(time);
RB0=0;
__delay_ms(time);
}
}
tried to add the numbers directly into the function without declaring a variable, but i still got the same error
tried "(unsigned long)value" same thing :S
Any ideas? thanks a lot
btw i'm using the latest compiler (downloaded 3 days ago) for 10\12\16 family lite edition
running in Hi-Tide IDE also latest version