In this tutorial, I will show you how to design dual speed RC oscillator for pic micrcontroller. If you are designing a pic microcontroller based project where high frequency is not a requirement, there is no need to use external crystal oscillator. you can use internal oscillator of microcontroller. you can check this article to know how to select internal oscillator of pic microcontroller. if your required microcontroller do not have internal oscillator, you can use external oscillator as dual speed oscillator.
What does I mean by dual speed RC oscillator? Its mean you can either use RC oscillator as a lower speed or high speed oscillator just by changing the current flow through dual speed RC oscillator. In this tutorial, I will show you how to do it. To design a RC oscillator we need one resistor and one capacitor. But to design a dual speed RC oscillator, we need two resistors and one capacitor. One resistor will be used to change the frequency from low to high and high to low by changing the current flow through the other resistor as shown below. Usually we use only one resistor and one capacitor to design RC oscillator for pic microcontroller as shown below:
In dual speed RC oscillator, we have used to two resistors. To use RC oscillator as a dual speed oscillator , you need use one GPIO ( general purpose input and output pin of pic microcontroller) . Follow these steps to configure this RC oscillator as dual frequency mode:
So this how we can use dual speed RC oscillator with pic microcontroller. when frequency is low, power consumption will also be low. so when your requirement is high speed processing you can use GP0 pin as a output high and when your requirement is low power consumption, you can use GP0 pin as a input to operate microcontroller at low frequency.
I have been providing project services to students and industry from last 4 years . Contact me if you want to hire me for your projects and engineering problems. Send me your project details at my email address: firstname.lastname@example.org
MQ-2 gas sensor interfacing with pic microcontroller22 May, 2018
rain detector circuit using pic microcontroller – raindrop sensor21 May, 2018
Soil Moisture Sensor YL-69 or HL-69 interfacing with pic microcontroller19 May, 2018
flame sensor interfacing with pic microcontroller03 May, 2018
RGB LED interfacing with pic microcontroller – Multi color LED02 May, 2018
DHT11 sensor interfacing with pic microcontroller