bbgil
Full Member level 2
device clock cannot be zero
Hi. I an newbie in c and mikroC and i always got this error when compiling. "device clock cannot be zero". this is the code:
#include <P16F877.h>
#include <delays.h>
void main ()
{
INTCON = 0;
PORTB = 0;
PORTA = 0;
TRISA = 0xFF;
TRISB = 0;
while (1)
{
while (250);
PORTB=PORTB^1;
};
}
What does the error mean? Any help is appreciated thank you
Hi. I an newbie in c and mikroC and i always got this error when compiling. "device clock cannot be zero". this is the code:
#include <P16F877.h>
#include <delays.h>
void main ()
{
INTCON = 0;
PORTB = 0;
PORTA = 0;
TRISA = 0xFF;
TRISB = 0;
while (1)
{
while (250);
PORTB=PORTB^1;
};
}
What does the error mean? Any help is appreciated thank you