Hi,
i am using mikroC as compiler and i want to program pic18f4550 .whenever i try to use delay functions of mikroC it produces wrong delays.For example i wrote
Delay_ms(10);
it produces 1 seconed delay
can anyone help me?
my whole program is:
void main()
{
TRISB=0;
for(;; ){
PORTB=0x4F;
Delay_us(10000);
PORTB=0x00;
Delay_us(10000);
}
}
i am using mikroC as compiler and i want to program pic18f4550 .whenever i try to use delay functions of mikroC it produces wrong delays.For example i wrote
Delay_ms(10);
it produces 1 seconed delay
can anyone help me?
my whole program is:
void main()
{
TRISB=0;
for(;; ){
PORTB=0x4F;
Delay_us(10000);
PORTB=0x00;
Delay_us(10000);
}
}