欢迎访问ic37.com |
会员登录 免费注册
发布采购

C8051F021 参数 Datasheet PDF下载

C8051F021图片预览
型号: C8051F021
PDF下载: 下载PDF文件 查看货源
内容描述: 8K ISP功能的Flash MCU系列 [8K ISP FLASH MCU Family]
分类和应用: 微控制器和处理器
文件页数/大小: 272 页 / 3832 K
品牌: SILABS [ SILICON LABORATORIES ]
 浏览型号C8051F021的Datasheet PDF文件第252页浏览型号C8051F021的Datasheet PDF文件第253页浏览型号C8051F021的Datasheet PDF文件第254页浏览型号C8051F021的Datasheet PDF文件第255页浏览型号C8051F021的Datasheet PDF文件第257页浏览型号C8051F021的Datasheet PDF文件第258页浏览型号C8051F021的Datasheet PDF文件第259页浏览型号C8051F021的Datasheet PDF文件第260页  
C8051F020/1/2/3
23.2.4. Frequency Output Mode
Frequency Output Mode produces a programmable-frequency square wave on the module’s associated CEXn pin.
The capture/compare module high byte holds the number of PCA clocks to count before the output is toggled. The
frequency of the square wave is then defined by Equation 23.1.
Equation 23.1. Square Wave Frequency Output
F
PCA
F
CEXn
= ----------------------------------------
-
2
×
PCA0CPHn
Note: A value of 0x00 in the PCA0CPHn register is equal to 256 for this equation.
Where
F
PCA
is the frequency of the clock selected by the CPS2-0 bits in the PCA mode register, PCA0MD. The
lower byte of the capture/compare module is compared to the PCA0 counter low byte; on a match, CEXn is toggled
and the offset held in the high byte is added to the matched value in PCA0CPLn. Frequency Output Mode is enabled
by setting the ECOMn, TOGn, and PWMn bits in the PCA0CPMn register.
Figure 23.7. PCA Frequency Output Mode
Write to
PCA0CPLn
Reset
Write to
PCA0CPHn
0
ENB
PCA0CPMn
ENB
1
P
ECCMT
P
E
W
C A A AO
W
C
M
OPP TG
M
C
1
MP N n n
n
F
6
nnn
n
n
x
0 0 0
x
Enable
PCA0CPLn
8-bit Adder
Adder
Enable
PCA0CPHn
Toggle
8-bit
Comparator
match
TOGn
0
CEXn
1
Crossbar
Port I/O
PCA Timebase
PCA0L
256
Rev. 1.4