参数资料
型号: TOOLSTICK300SPP
厂商: Silicon Laboratories Inc
文件页数: 64/178页
文件大小: 0K
描述: TOOLSTICK PROGRAMMING ADAPTER
标准包装: 1
系列: ToolStick
类型: 微控制器编程器
适用于相关产品: C8051F300
所含物品: 2 个板和 USB 连接线缆
C8051F300/1/2/3/4/5
156
Rev. 2.9
16.1. PCA Counter/Timer
The 16-bit PCA counter/timer consists of two 8-bit SFRs: PCA0L and PCA0H. PCA0H is the high byte
(MSB) of the 16-bit counter/timer and PCA0L is the low byte (LSB). Reading PCA0L automatically latches
the value of PCA0H into a “snapshot” register; the following PCA0H read accesses this “snapshot” register.
Reading the PCA0L Register first guarantees an accurate reading of the entire 16-bit PCA0 counter.
Reading PCA0H or PCA0L does not disturb the counter operation. The CPS2-CPS0 bits in the PCA0MD
register select the timebase for the counter/timer as shown in Table 16.1. Note that in ‘External oscillator
source divided by 8’ mode, the external oscillator source is synchronized with the system clock,
and must have a frequency less than or equal to the system clock.
When the counter/timer overflows from 0xFFFF to 0x0000, the Counter Overflow Flag (CF) in PCA0MD is
set to logic 1 and an interrupt request is generated if CF interrupts are enabled. Setting the ECF bit in
PCA0MD to logic 1 enables the CF flag to generate an interrupt request. The CF bit is not automatically
cleared by hardware when the CPU vectors to the interrupt service routine, and must be cleared by soft-
ware (Note: PCA0 interrupts must be globally enabled before CF interrupts are recognized. PCA0 inter-
rupts are globally enabled by setting the EA bit and the EPCA0 bit to logic 1). Clearing the CIDL bit in the
PCA0MD register allows the PCA to continue normal operation while the CPU is in Idle mode.
Table 16.1. PCA Timebase Input Options
CPS2
CPS1
CPS0
Timebase
0
System clock divided by 12
0
1
System clock divided by 4
0
1
0
Timer 0 overflow
0
1
High-to-low transitions on ECI (max rate = system clock divided by 4)
1
0
System clock
1
0
1
External oscillator source divided by 8*
*Note: External oscillator source divided by 8 is synchronized with the system clock.
PCA0CN
C
F
C
R
C
F
0
C
F
2
C
F
1
SYSCLK/12
SYSCLK/4
Timer 0 Overflow
ECI
000
001
010
011
PCA0MD
C
I
D
L
W
D
T
E
C
F
C
P
S
1
C
P
S
0
W
D
L
C
K
C
P
S
2
IDLE
0
1
100
101
SYSCLK
External Clock/8
PCA0H
PCA0L
Snapshot
Register
To SFR Bus
Overflow
To PCA Interrupt System
CF
PCA0L
read
To PCA Modules
Figure 16.2. PCA Counter/Timer Block Diagram
相关PDF资料
PDF描述
396-070-541-804 CARD EDGE 70POS DL .125X.250 BLK
TOOLSTICK588PP PLATFORM PROG TOOLSTICK F588
EEM22DRKH-S13 CONN EDGECARD 44POS .156 EXTEND
396-070-541-802 CARD EDGE 70POS DL .125X.250 BLK
T95Y476K6R3LSAL CAP TANT 47UF 6.3V 10% 2910
相关代理商/技术参数
参数描述
TOOLSTICK310PP 功能描述:插座和适配器 C8051F310/12/14 F361 F364 F366 F368 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
TOOLSTICK311DC 功能描述:子卡和OEM板 ToolStick C8051F311 Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
TOOLSTICK311PP 功能描述:插座和适配器 C8051F311/13/15 F362 F365 F367 F369 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
TOOLSTICK316PP 功能描述:插座和适配器 C8051F316/17 F338 F339 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
TOOLSTICK320PP 功能描述:插座和适配器 Dev Tool C8051F320 F342 F343 F346 F347 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x