急!急!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)同步。
所以还请版主说的再详细些,菜鸟在此叩谢!!
回复
我要赚赏金打赏帖 |
|
|---|---|
| OK1126B-S开发板下以导航按键控制云台/机械臂姿态调整被打赏¥29元 | |
| 【树莓派5】便携热成像仪被打赏¥36元 | |
| 【树莓派5】环境监测仪被打赏¥35元 | |
| OK1126B-S开发板下多时段语音提示型电子时钟被打赏¥27元 | |
| OK1126B-S开发板下函数构建及步进电机驱动控制被打赏¥25元 | |
| 【S32K3XX】LPI2C 参数配置说明被打赏¥20元 | |
| OK1126B-S开发板的脚本编程及应用设计被打赏¥27元 | |
| 5v升压8.4v两节锂电池充电芯片,针对同步和异步的IC测试被打赏¥35元 | |
| 【S32K3XX】S32DS LPI2C 配置失败问题解决被打赏¥22元 | |
| 【S32K3XX】FLASH 的 DID 保护机制被打赏¥19元 | |

我要赚赏金
