想使用C6713的片内定时器,请问哪里可以找到关于定时器寄存器的使用文档以及例子呢?关于各寄存器的各位的含义。谢谢!
Shine:
回复 Shine:
chip support library里有timer例程。http://www.ti.com/tool/sprc090
lei zhao9:
回复 Shine:
Shine Zhang
有timer user guide.http://www.ti.com/lit/ug/spru582b/spru582b.pdf
lei zhao9:
回复 Shine:
timer在运行时,周期寄存器里面的值是自动减1的么?还需要设置控制寄存器的某个位,对该功能进行说明么?看了reference guide也没见到对这个问题的说明
lei zhao9:
回复 Shine:
再请教一下,the timer count register 需要初始化么?
Shine:
回复 lei zhao9:
是自动减一,但是你要根据你定时多长时间设个值啊。reference guide里参考第9页。
Configuring a timer requires four basic steps:1. If the timer is not currently in the hold state, place the timer in hold (HLD = 0). Note that after devicereset, the timer is already in the hold state.2. Write the desired value to the timer period register (PRD).3. Write the desired value to the timer control register (CTL). Do not change the GO and HLD bits in CTL.4. Start the timer by setting the GO and HLD bits in CTL to 1.
Shine:
回复 lei zhao9:
timer count register一般初始化成0。
lei zhao9:
回复 Shine:
如果timer count register的值在程序里没有初始化定义,程序运行时的初始值会是0么?还是是个不确定的值
Shine:
回复 lei zhao9:
硬件reset后,默认值是0。