... | @@ -128,7 +128,8 @@ For each `N` in the range [1, 25] |
... | @@ -128,7 +128,8 @@ For each `N` in the range [1, 25] |
|
```math
|
|
```math
|
|
Nt_q = \overline{t_{bit}}\\
|
|
Nt_q = \overline{t_{bit}}\\
|
|
N\frac{BRP+1}{f_{APB}} = \overline{t_{bit}}\\
|
|
N\frac{BRP+1}{f_{APB}} = \overline{t_{bit}}\\
|
|
BRP = \overline{t_{bit}}\frac{f_{APB}}{N}-1
|
|
BRP_{temp} = \overline{t_{bit}}\frac{f_{APB}}{N}-1\\
|
|
|
|
BRP = max\left(min\left(round(BRP_{temp}), 1024\right), 1\right}
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
... | @@ -138,7 +139,7 @@ TS1_{temp} = \overline{SP_\%} N - 1\\ |
... | @@ -138,7 +139,7 @@ TS1_{temp} = \overline{SP_\%} N - 1\\ |
|
TS1 = max\left(min(round(TS1_{temp}), min(16, N-2)), 1\right)\\
|
|
TS1 = max\left(min(round(TS1_{temp}), min(16, N-2)), 1\right)\\
|
|
TS2 = N - TS1 - 1
|
|
TS2 = N - TS1 - 1
|
|
```
|
|
```
|
|
|
|
Note: the max/min/round functions in the previous equation are required in order to assure that `TS1` is an integer number in the range [1, 16] or [1, N-2] if N < 18.
|
|
The actual sample point is then given by
|
|
The actual sample point is then given by
|
|
```math
|
|
```math
|
|
SP_\% = \frac{1 + TS1}{1 + TS1 + TS2}
|
|
SP_\% = \frac{1 + TS1}{1 + TS1 + TS2}
|
... | | ... | |