📄 timerstart.c
字号:
//
// Project: Experiment 2.10.3 DSP Timer - Chapter 2
// File name: timerStart.c
// Function(s): startTimer()
//
// Description: This function shows how to enable the DSP timer
//
// For the book "Real Time Digital Signal Processing:
// Implementation and Application, 2nd Ed"
// By Sen M. Kuo, Bob H. Lee, and Wenshun Tian
// Publisher: John Wiley and Sons, Ltd
//
// Tools used: CCS v.2.12.07
// TMS320VC5510 DSK Rev-C
//
#include "timer.h"
#pragma CODE_SECTION(startTimer, ".text:example:timer0");
void startTimer(void)
{
*IFR0 |= TINT_BIT; // Clear associated IFR bit
*TCR0 |= TLB_BIT; // Reload PRD
*TCR0 &= ~TLB_BIT;
*TCR0 &= (~TSS_BIT); // Enable timer
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -