28335如何配置定时器
时间: 2023-08-07 11:03:08 浏览: 73
在DSP28335中,有3个32位的定时器,分别是Timer0、Timer1、Timer2。定时器的作用是用来准确控制时间,以满足控制某些特定事件的要求。在配置定时器时,可以使用函数ConfigCpuTimer来进行配置。该函数的原型为void ConfigCpuTimer(struct CPUTIMER_VARS *Timer, float Freq, float Period)。其中,Timer参数是一个结构体指针,可以选择对应的三个定时器 &CpuTimer0、&CpuTimer1、&CpuTimer2;Freq参数是系统时钟的频率,单位为MHZ;Period参数是期望的定时周期,单位为us。例如,如果想要配置Timer0定时器的频率为150MHz,定时周期为1s,可以使用ConfigCpuTimer(&CpuTimer0, 150, 1000000)来进行配置。\[2\]\[3\]
#### 引用[.reference_title]
- *1* *3* [DSP28335笔记 —— 定时器](https://blog.csdn.net/qq_22842309/article/details/113748746)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [DSP28335定时器](https://blog.csdn.net/qq_35874924/article/details/104424129)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)