C8051F340/1/2/3/4/5/6/7
22.2.4. Frequency Output Mode
Frequency Output Mode produces a
FPCA
F =
CEXn 2 ⋅ PCA0CPHn
Note: A value of 0x00 in the PCA0CPHn register is equal to 256 for this equation.
Equation 22.1. Square Wave Frequency Output
Where FPCA is the frequency of the clock selected by the
Write to
PCA0CPLn 0
ENB
Reset
Write to
PCA0CPHn ENB
1
PCA0CPMn
P E C C M T P E W C A A A O W C M O P P T G M C 1 M P N n n n F
6 n n n n n
x | 0 0 0 | x |
Enable
PCA Timebase
PCA0CPLn
Comparator
PCA0L
Adder
Enable
Toggle
match
PCA0CPHn
TOGn |
|
|
|
0 | CEXn | Crossbar | Port I/O |
1 |
| ||
|
|
|
Figure 22.7. PCA Frequency Output Mode
Rev. 0.5 | 269 |