CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Why is an oscillator used in the microcontroller?


Open in App
Solution

Oscillator: It is a non-mechanical instrument for producing oscillating electric currents or voltages.

Microcontroller: In an embedded device, a microcontroller is a tiny integrated circuit that governs a certain task. On a single chip, a microcontroller contains a CPU, memory, and input/output (I/O) peripherals.

  1. We need an oscillator in the microcontroller as any microcontroller needs a machine cycle.
  2. Time signals are generated by the oscillator. In successive clock signals, all commands in any microcontroller are now extracted.
  3. To generate these temporal pulses, an oscillator is used.
  4. Assume we need to use the microcontroller to light an LED for 1 second. For this, the microcontroller needs to know that the 1-second limit has been passed.
  5. The microcontroller uses the oscillator in this scenario as well, counting the number of pulses it generates in a second (specific in each case). As a result, you can keep track of how much time has passed.

flag
Suggest Corrections
thumbs-up
1
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Electromagnetic Induction and Electric Generators
PHYSICS
Watch in App
Join BYJU'S Learning Program
CrossIcon