急!急!ep9315的定时器时钟怎么设置???



呵呵,我是菜鸟,我还是没怎么看懂,还请版主悉心指教
手册629页是这么说的:
The two 16-bit timers are referred
to as TC1 and TC2. Each of these timershas an associated 16-bit read/write data
register and a control register. Eachcounter is loaded with the value written
to the data register immediately. Thisvalue will then be decremented on the
next active clock edge to arrive after thewrite. When the timer counter
decrements to “0”, it will assert the appropriateinterrupt. The timer counters
can be read at any time. The clock source andmode is selectable by writing to
various bits in the system control register.Clock sources are 508 kHz and 2
kHz. Both of these clock sources aresynchronized to the main system AHB bus
clock (HCLK).
(中文)这两个16位的定时器指的是TC1和TC2,每个定时器都有一个16位的读/写数据寄存器和一个控制器。通过写值到数据寄存器中来加载计数器的值。这个值被写后,在下个活跃的时钟沿到来时开始进行减计数。当时减计数器减到“0”时,它将产生合适的中断。可以在任何时间读取时间计数器的值。时钟的资源和模式可以通过向系统时钟寄存器里写值来进行选择。时钟资源是508KHZ和2KHZ,这两个时钟资源都与主要系统AHB总线时钟(HCLK)同步。
所以还请版主说的再详细些,菜鸟在此叩谢!!


回复
打赏帖 | |
---|---|
分享一种检测按键状态的方法被打赏20分 | |
周末总结一下,STM32C0系列的开发经验被打赏50分 | |
【Cortex-M】Systick Timer使用被打赏10分 | |
分享汽车防盗系统的组成与分类(一)被打赏5分 | |
VOFA+波形显示+JYD-31蓝牙发送和解析不定长数据被打赏10分 | |
【换取手持数字示波器】-STM32F4PWM控制LED灯管亮度被打赏22分 | |
【换取手持数字示波器】STM32F4驱动RPR-0521RS照度、接近一体型传感器被打赏23分 | |
宏定义和const关键字定义被打赏5分 | |
【分享开发笔记,赚取电动螺丝刀】几个单片机I2S外设的BLCK时钟对比被打赏20分 | |
【功率监测与控制系统DIY活动成果贴】DIY功率计与LabVIEW数据采集被打赏100分 |