Timer Flashcards
An RTC crystal or oscillator allows a CPU to
improve the timing of its ISRs
directly drive its main system clock
provide a signal that can be exactly divided into 1 second
connect to peripherals that also have an RTC
provide a signal that can be exactly divided into 1 second
Inside a microcontroller, a “timer” is a/an …
counter that can run down or up.
ISR that is triggered by the RTC
software that implements a stopwatch function.
built-in clock unit.
counter that can run down or up
‘A’ must be ___ to make a 40% duty-cycle, if ‘B’ is 30ms. (ensure you include the units too
30/0.4=75ms
If ‘B’ is 333ms. What is ‘A’ to make a 40% Duty-Cycle.
666ms
667ms
555ms
832.5ms
832.5ms
The count-down timer free-running mode means
Counter counts down to 0 then begins counting up
Counter counts down from maximum to 0 and then stops automatically
Counter wraps back around to maximum after counting down to 0
Counter wraps back around to 0 after hitting a maximum value
Counter wraps back around to maximum after counting down to 0
CPU can execute other code while the timer is running concurrently.
True
False
True
- Counter wraps around to the maximum value after counting down to zero.
- Flag/Interrupt set when the counter wraps around 1st clock edge after zero.
Timer_32 is configured to which mode?
Periodic Timer Mode
Free Running Mode
Continuous Mode
One-shot Mode
Free Running Mode
A 1Hz clock is
generated using a counter that counts till 215
used by the Real Time Clock
generated using a crystal that emits a signal at 32.768kHz
directly used as the main clock
generated using a counter that counts till 215
used by the Real Time Clock
generated using a crystal that emits a signal at 32.768kHz
A _____ count is used to obtain a 1 second timer from a 30MHz clock?
30000000 (Mega is 10^6)