Lecture 16 Flashcards

Timers and counter

1
Q

What is a Timer/counter

A

A register that counts up (or down) with every transition on an input signal

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

Option 1 Input signal is a Periodic signal with known frequency

A

Count register can be used for time-keeping or performing actions with controlled timing.

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

Option 2: Input signal is an external signal without known timing

A

Count register can be used to count number of pulses on input signal.

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

The 2 ways the Auto-reload value is used.

A
  1. Counter from ARV - resets back when overflows
    From Zero, resets when hits ARV
    Interrupt generated every iteration.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Set-up of timer/counter module is through memory mapped registers

A
  1. Counter/timer clock source selection
  2. up/down direction
  3. Prescale value
  4. Auto-reload value
  5. Interrupt enable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the count register latched to when an external event occurs

A

The Capture register

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

What can the input capture be used to measure

A

The leading (or trailing) edges in external signal

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

In output compare mode, the counter register value is continuously compared to what?

A

The Capture/Compare Register (CCR)

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

Timers with 32-bit timer modules (2)

A

TIM2

TIM5

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

Timers with 16-bit timer moduels (6)

A
TIM1
TIM3
TIM4
TIM9
TIM10
TIM11
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What bit timer is the SysTick timer

A

24-bit downcounter with autoreload

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

Timers - in Slave mode.

Reset

A

Register is reinitialized on trigger input

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

Timers - in Slave mode.

Gated

A

timer/counter is enabled depending on level of selected input

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

Timers - in Slave mode.

Triggered

A

Timer/counter starts in response to event on selected input

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

What is a Watchdog TImer (WDT)

A

A hardware timer that automatically generates a system reset if the main program neglects to periodically service it.

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