Lesson 6 Flashcards
Implementing time measurement in embedded systems requires the use of a _____________________ to measure
the time.
Timer or Counter
a digital waveform characterized by alternating between two voltage
levels, typically high (logic 1) and low (logic 0).
Square Wave
timers that are of low resolution
These are mainly used to generate time in a readable format for humans.
It functions as a digital watch, used to tell the time to the user.
Real-Time Clock (RTC)
is an indication that a device needs attention. As long as it needs
attention, the line is asserted.
Level triggered interrupt
This kind of timer is a programmable one. It provides an output signal when it starts and ends in a programmable count. The output signal might cause an interrupt to occur.
It is programmed with intervals that are fixed. This interval helps in finding the amount of
time it will take to provide the necessary signal.
Interval Timer
the microcontroller completes the execution of the current instruction and
starts the execution of an __________________
ISR (Interrupt Service Routine)
a technique used to generate analog-like signals using digital output pins. It involves rapidly switching a signal on and off at a fixed frequency.
is commonly used to control the speed of motors and the brightness of
LEDs by varying the duty cycle of a square wave signal.
Pulse-Width Modulation (PWM)
are low level programming concept, extremely important, and irreplaceable.
Interrupts
plays the role of time elapsed measurement. It starts it counting from zero and goes
upward in a gradual manner.
Stopwatch
caused either by an exceptional condition or a special instruction in the instruction set which causes an interrupt when it is executed by the processor.
Software Interrupts
These interrupts are more reliable and accurate, as they are not affected by execution time.
Hardware Interrupts
After every clock period, the timer is incremented by 1 (or reset to 0 in case it is at maximum value). Before incrementing, the value of the timer is compared to OCR. This interrupt is called _____________
Compare Match Interrupt
Simple method of obtaining analog output of any value between 0 and 5V.
PWM (Pulse Width Modulation) Mode
Timer starts at 0 as usual, but instead of resetting after maximum value, it resets after reaching value specified in OCR register.
CTC Mode
These can only be used for operating in a single mode (periodic and decrementing).These are then used in multitasking and context switching. It can easily provide time delays.
Systick Timer