Determine the values of PSC, CCR, and ARR registers to generate the signal below if timer clock is 80 MHz:

T = 100 us
w = 70 us

Given:

Timer clock = 80 MHz
T = 100 us
w = 70 us

Calculate the values of PSC, CCR, and ARR registers:

1. Calculate the timer period (ARR register):
T_clk = 1 / Timer clock = 1 / 80e6 = 12.5 ns

ARR = T / T_clk = (100 us) / (12.5 ns) = 8000

2. Calculate the active time (CCR register):
w_clk = w / T_clk = (70 us) / (12.5 ns) = 5600

3. Calculate the timer prescaler (PSC register):
PSC = (ARR + 1) / (w_clk + 1) = (8000 + 1) / (5600 + 1) = 1.429

So, the values of PSC, CCR, and ARR registers are:
- PSC = 1
- CCR = 5600
- ARR = 8000