Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to use pic16f676 internal oscillator

Status
Not open for further replies.

nudrat

Junior Member level 1
Joined
Dec 9, 2010
Messages
19
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Activity points
1,396
Hello every one!!

I am using pic16f676. i want to use internal 4mhz oscillator, can any one tell me how can i configure internal oscillator settings. I mean which value i have to store in oscall register?

I am using mikroc and programing in c.
 

Thanks raco, for replying me.

I put the value in osccal= 0xfc(11111100), but still it won't work.

Here is my code: It just blink an led using 16f676 with internal oscillator


void main(){
PORTC = 0x00;
TRISC = 0x00;
OSCCAL = 0xfc;
while(1)
{

PORTC = ~ PORTC;
Delay_ms(100);
}

}

witing for your help.
 

try with setting up the CONFIG register as well.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top