Timers and PWM Flashcards

1
Q

What 8 aspects of the timer peripheral can be set up using registers

A
  1. Which signal source it counts
  2. When it starts and stops running
  3. Whether it counts rising or falling edges
  4. Which direction it counts
  5. What happens when it overflows
  6. If and how it is reloaded
  7. Whether its value is captured by another register
  8. Whether it generates a signal or interrupt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a watchdog timer and how does it work?

A

A hardware peripheral used to reset out-of-control programs.
It counts elapsed time. If it is not serviced (signaled) by the program before a defined time then it resets the CPU.

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

Define PWM

A

A method of encoding information onto a single digital signal based on duty cycle.
Some devices can be driven by a PWM signal such as a motor or LED.

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

SysTick Timer.
Does the SysTick Timer count up or down?

A

Down

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

SysTick Timer.
What register does the timer store its current value in?

A

VAL or SYST_CVR
(Current value register)

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

SysTick Timer.
What register does the timer load/relaod from?

A

LOAD or SYST_RVR
(Reload Value Register)

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

SysTick Timer.
What register is used to display the timers status aswell as change its behaviour?

A

CTRL or SYST_CSR
(Control Status Register)

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

SysTick Timer.
How is the timer frequency determined?

A

input frequency/LOAD+1

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