Triple Timer Module
9.4.4 Timer Control/Status Register (TCSR)
The TCSR is a read/write register controlling the timer and reflecting its status.
23
22
21
20
19
18
17
16
15
14
13
12
TCF
TOF
PCE
DO
DI
11
DIR
10
9
TRM
8
INV
7
TC3
6
TC2
5
TC1
4
TC0
3
2
TCIE
1
TOIE
0
TE
Reserved. Read as 0. Write to 0 for future compatibility
Figure 9-23. Timer Control/Status Register (TCSR)
Table 9-3. Timer Control/Status Register (TCSR) Bit Definitions
Bit Number
23–22
21
Bit Name
TCF
Reset Value
0
0
Description
Reserved. Write to zero for future compatibility.
Timer Compare Flag
Indicate that the event count is complete. In timer, PWM, and watchdog
modes, the TCF bit is set after (M – N + 1) events are counted. (M is the
value in the compare register and N is the TLR value.) In measurement
modes, the TCF bit is set when the measurement completes. Writing a one to
the TCF bit clears it. A zero written to the TCF bit has no effect. The bit is also
cleared when the timer compare interrupt is serviced. The TCF bit is cleared
by a hardware RESET signal, a software RESET instruction, the STOP
instruction, or by clearing the TCSR[TE] bit to disable the timer.
Note:
The TOF and TCF bits are cleared by a 1 written to the specific bit.
To ensure that only the target bit is cleared, do not use the BSET
command. The proper way to clear these bits is to write 1, using a
MOVEP instruction, to the flag to be cleared and 0 to the other flag.
20
TOF
0
Timer Overflow Flag
Indicates that a counter overflow has occurred. This bit is cleared by writing a
one to the TOF bit. Writing a zero to TOF has no effect. The bit is also cleared
when the timer overflow interrupt is serviced. The TOF bit is cleared by a
hardware RESET signal, a software RESET instruction, the STOP
instruction, or by clearing the TCSR[TE] bit to disable the timer .
19–16
0
Reserved. Write to zero for future compatibility.
15
PCE
0
Prescaler Clock Enable
Selects the prescaler clock as the timer source clock. When PCE is cleared,
the timer uses either an internal (CLK/2) signal or an external (TIO) signal as
its source clock. When PCE is set, the prescaler output is the timer source
clock for the counter, regardless of the timer operating mode. To ensure
proper operation, the PCE bit is changed only when the timer is disabled. The
PS[1–0] bits of the TPLR determine which source clock is used for the
prescaler. A timer can be clocked by a prescaler clock that is derived from the
TIO of another timer.
9-24
14
0
Reserved. Write to zero for future compatibility.
DSP56311 User’s Manual, Rev. 2
Freescale Semiconductor
相关PDF资料
DSPAUDIOEVMMB1E BOARD MOTHER DSP563XX
DSPIC30F2010 DEVELOPMENT KIT KIT DEV EMBEDDED C
DSTRM-KT-0181A DSTREAM DEBUG AND TRACE UNIT
DSUT1CSU SURGE SUPPR NETWORK W/GROUND
DTEL2 SURGE SUPPRESSOR PHONE RJ11/RJ45
DV003001 PROGRAMMER PICSTART PLUS 16C/17C
DV164035 MPLAB ICD3 IN-CIRC DEBUGGER
DV164039 KIT DEV PIC24FJ256DA210
相关代理商/技术参数
DSP56311EVMIG_D 制造商:未知厂家 制造商全称:未知厂家 功能描述:DSP56311EVMIG DSP56311EVM Sample Code
DSP56311EVMUM 制造商:未知厂家 制造商全称:未知厂家 功能描述:DSP56311 Evaluation Module Hardware Reference Manual
DSP56311FACT 制造商:未知厂家 制造商全称:未知厂家 功能描述:DSP56311 Higher performance programmable DSP for demanding voice and data applications
DSP56311UM 制造商:未知厂家 制造商全称:未知厂家 功能描述:DSP56311 24-Bit Digital Signal Processor Users Manual
DSP56311UMAD 制造商:未知厂家 制造商全称:未知厂家 功能描述:DSP56311 Users Manual Addendum
DSP56311VF150 功能描述:数字信号处理器和控制器 - DSP, DSC 150Mhz/300MMACS 150Mhz EFCOP RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
DSP56311VF150B1 功能描述:数字信号处理器和控制器 - DSP, DSC 24 BIT DSP RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT
DSP56311VF150R2 功能描述:数字信号处理器和控制器 - DSP, DSC 24 BIT DSP RoHS:否 制造商:Microchip Technology 核心:dsPIC 数据总线宽度:16 bit 程序存储器大小:16 KB 数据 RAM 大小:2 KB 最大时钟频率:40 MHz 可编程输入/输出端数量:35 定时器数量:3 设备每秒兆指令数:50 MIPs 工作电源电压:3.3 V 最大工作温度:+ 85 C 封装 / 箱体:TQFP-44 安装风格:SMD/SMT