Oscillators

Status
Not open for further replies.

Mihindu_gajaba

New Member
Hi,

Hey guys i wanna know about Oscillators , as i know for PIC programing we're using Crystals right ?

ok the prob is,

i have read a tutorial and it says that The PIC has to be Connected with a 10MHZ Crystal to work ( because i'm using PIC16F84A - it doesn't have internal clock right ! ). as i know Crystal is doing it creates a pulse i mean it's just like this


so can i use 4MHz crystal instead of 10 MHz.. Please help me..

and hey there is another thing hows RC ( Resisters and Cap ) acting like a Crystal..

Thnak You

Mihindu
 
Mihindu_gajaba said:
so can i use 4MHz crystal instead of 10 MHz.. Please help me..

Yes, the PIC will accept a very wide range of crystals - but obviously it will only run at 40% speed, so the program needs to be written for the clock frequency you use.

and hey there is another thing hows RC ( Resisters and Cap ) acting like a Crystal..

It doesn't, it works as an RC oscillator - you should try reading the datasheet that explains all this!.
 

Thanks Thanks Thanks. so that i have to change the Code right and hey i got an Crystal printed as 10.0000M is that the correct one.
 
Mihindu_gajaba said:
Thanks Thanks Thanks. so that i have to change the Code right and hey i got an Crystal printed as 10.0000M is that the correct one.

Sounds like it!.
 
Yeah, you can use 4MHz crystal if you want. Or you can use a resistor-capacitor as you say - set the configuration fuses and the PIC will know what to do in either case. It's all pretty clearly on the datasheet.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…