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.

[Moved] Oscillator Frequency of Microcontroller

Status
Not open for further replies.

spider7

Newbie level 4
Newbie level 4
Joined
Feb 5, 2011
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,373
Dear All,

I have three jobs to be done by a microcontroller. All these three jobs has to done at different frequency of microcontroller(OSC).

Can anyone tell me how to change the oscillator frequency of microcontroller within the software routine.

Example : I was using PIC16F886 which has internal frequency max of up to 8 MHz. I want the three different jobs to be done at three different internal frequency. How can I do that ?

Thank you all
 

Re: Oscillator Frequency of Microcontroller

Before suggesting a solution, you will need to elaborate on the three specific tasks required.

Describe each task in detail, along with the required frequency of execution.

Although there are situation which require it, typically most tasks do not require the change of the system clock frequency (Fosc).

By the way, this thread is more appropriately posted in the Microcontrollers section, as such I've moved it.

BigDog
 

yes it could be done by using frequency switchover which is provided in pic controller. and also u can genrate frequency with this controller. but u have to be specific that which are task you wanna do.
 
if you have tasks to be carried out at sepcifed time intervals use several timers interrupting at the required rates and priorities
 

A little elaboration is required, what is it that's required at-least the frequencies that you need to carry out that task.

horace1 suggested the right thing to do which is helpful most of the times. Use any CCP interrupt to get that done. You could use 3 different timers with different prescalers and end-count having IRQ at different time intervals. So you just need to write 3 different ISR, one for each event and program the corresponding timer accordingly
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top