Karolina_1
Member level 3
Hi everyone
I was trying to blink led with external 8MHz oscillator but i cant succeed. I wrote the code in microC Pro and given below:
void main() {
TRISD= 0;
ANSELD=0;
do{
LATD = 0x00;
Delay_ms(300);
LATD = 0xFF;
Delay_ms(300);
}while(1);
}
Maybe i choose wrong oscillator selection. Did i connect oscillator correctly.
Configuration is given in the picture:
Here is circuit:
How can i make it work. I tried with internal 16MHz oscillator and its working fine but its too slow. i needed to increase it till 32MHz
Thank you
I was trying to blink led with external 8MHz oscillator but i cant succeed. I wrote the code in microC Pro and given below:
void main() {
TRISD= 0;
ANSELD=0;
do{
LATD = 0x00;
Delay_ms(300);
LATD = 0xFF;
Delay_ms(300);
}while(1);
}
Maybe i choose wrong oscillator selection. Did i connect oscillator correctly.
Configuration is given in the picture:
Here is circuit:
How can i make it work. I tried with internal 16MHz oscillator and its working fine but its too slow. i needed to increase it till 32MHz
Thank you