Triple Timer Module Programming Model
Table 9-3. Timer Control/Status Register (TCSR) Bit Definitions (Continued)
Bit Number
2
Bit Name
TCIE
Reset Value
0
Description
Timer Compare Interrupt Enable
Enables/disables the timer compare interrupts. When set, TCIE enables the
compare interrupts. In the timer, pulse width modulation (PWM), or watchdog
modes, a compare interrupt is generated after the counter value matches the
value of the TCPR. The counter starts counting up from the number loaded
from the TLR and if the TCPR value is M, an interrupt occurs after (M – N + 1)
events, where N is the value of TLR. When cleared, the TCSR[TCIE] bit
disables the compare interrupts.
1
TOIE
0
Timer Overflow Interrupt Enable
Enables timer overflow interrupts. When set, TOIE enables overflow interrupt
generation. The timer counter can hold a maximum value of $FFFFFF. When
the counter value is at the maximum value and a new event causes the
counter to be incremented to $000000, the timer generates an overflow
interrupt. When cleared, the TOIE bit disables overflow interrupt generation.
0
TE
0
Timer Enable
Enables/disables the timer. When set, TE enables the timer and clears the
timer counter. The counter starts counting according to the mode selected by
the timer control (TC[3–0]) bit values. When clear, TE bit disables the timer.
Note:
When all three timers are disabled and the signals are not in GPIO
mode, all three TIO signals are tri-stated. To prevent undesired
spikes on the TIO signals when you switch from tri-state into active
state, these signals should be tied to the high or low signal state by
pull-up or pull-down resistors.
Table 9-4. Inverter (INV) Bit Operation
Mode
TIO Programmed as Input
TIO Programmed as Output
INV = 0
INV = 1
INV = 0
INV = 1
0
GPIO signal on the TIO signal
read directly.
GPIO signal on the TIO signal
inverted.
Bit written to GPIO
put on TIO signal
Bit written to GPIO
inverted and put on TIO
directly.
signal.
1
Counter is incremented on the
rising edge of the signal from
Counter is incremented on
the falling edge of the signal
the TIO signal.
from the TIO signal.
2
Counter is incremented on the
rising edge of the signal from
Counter is incremented on
the falling edge of the signal
Initial output put on
TIO signal directly.
Initial output inverted
and put on TIO signal.
the TIO signal.
from the TIO signal.
3
Counter is incremented on the
rising edge of the signal from
Counter is incremented on
the falling edge of the signal
4
5
the TIO signal.
Width of the high input pulse is
measured.
Period is measured between
the rising edges of the input
signal.
from the TIO signal.
Width of the low input pulse is
measured.
Period is measured between
the falling edges of the input
signal.
DSP56311 User’s Manual, Rev. 2
Freescale Semiconductor
9-27
相关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