Timer Flashcards

1
Q

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

A

provide a signal that can be exactly divided into 1 second

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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.

A

counter that can run down or up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

‘A’ must be ___ to make a 40% duty-cycle, if ‘B’ is 30ms. (ensure you include the units too

A

30/0.4=75ms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If ‘B’ is 333ms. What is ‘A’ to make a 40% Duty-Cycle.

666ms

667ms

555ms

832.5ms

A

832.5ms

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

Counter wraps back around to maximum after counting down to 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CPU can execute other code while the timer is running concurrently.
True
False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Counter wraps around to the maximum value after counting down to zero.
  2. 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

A

Free Running Mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

A _____ count is used to obtain a 1 second timer from a 30MHz clock?

A

30000000 (Mega is 10^6)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly