Hi,
A problem has arose with my PIC18F452. Its is not working on a working circuit. I give the following code:
the code is not working on both the pics i have. its was working a few days ago but now it isn't. What could be the reason, please help.
Im using MikroC for PIC 4.6, 8Mhz clock.
The PortA does give a high output but then it just stops there, no blinking LED.
Awaiting your reply, thanks in advance.
A problem has arose with my PIC18F452. Its is not working on a working circuit. I give the following code:
Rich (BB code):
void PIC_setting(void){
ADRESH = 0x00;
ADRESL = 0x00;
TRISA = 0x00;
TRISB = 0x00;
TRISD = 0x00;
TRISE = 0x00;
PORTA = 0;
}
void main() {
PIC_setting();
while (1){
PORTA = ~PORTA;
delay_ms(1000);
PORTA = ~PORTA;
}
}
Im using MikroC for PIC 4.6, 8Mhz clock.
The PortA does give a high output but then it just stops there, no blinking LED.
Awaiting your reply, thanks in advance.