急!急!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)同步。
所以还请版主说的再详细些,菜鸟在此叩谢!!
回复
我要赚赏金打赏帖 |
|
|---|---|
| 【S32K3XX】LPSPI参数配置说明被打赏¥21元 | |
| 在WT9932C61-TINY上实现超声波测距被打赏¥22元 | |
| 基于WT9932C61-TINY的环境构建及OLED屏驱动测试被打赏¥20元 | |
| 【S32K3XX】Core-to-Core 中断使用被打赏¥21元 | |
| 「AI编程记录--含源码」用一晚上的时间写一个esp32的示波器被打赏¥19元 | |
| STM32C0116DK开发探索记(3)被打赏¥30元 | |
| STM32C0116DK开发探索记(2)被打赏¥24元 | |
| STM32C0116DK开发探索记(1)被打赏¥29元 | |
| 谨防极海G32M3101电机评估板易跌落的陷阱被打赏¥24元 | |
| 【全网首拆】M5STACK ATOM系列开发板拆解 / AtomS3R-CAM摄像头更换方法(提高10倍像素)被打赏¥26元 | |

我要赚赏金
