想使用C6713的片内定时器,请问哪里可以找到关于定时器寄存器的使用文档以及例子呢?关于各寄存器的各位的含义。谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
是自动减一,但是你要根据你定时多长时间设个值啊。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 device
reset, 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.
the timer period register (PRD) 的值定义好之后,是不会变的吧?变的是count register的值吧,而且手册上写的是自动加1,是么?一直加到和period register的值相等后,再自动清0。
The timer count register (CNT) contains the current value of the incrementing counter The timer count
register increments by 1 when it is enabled to count and resets to 0 on the next CPU clock after the value
in the timer period register (PRD) is reached.
lei zhao9 说:the timer period register (PRD) 的值定义好之后,是不会变的吧?变的是count register的值吧,而且手册上写的是自动加1,是么?一直加到和period register的值相等后,再自动清0。
The timer count register (CNT) contains the current value of the incrementing counter The timer count
register increments by 1 when it is enabled to count and resets to 0 on the next CPU clock after the value
in the timer period register (PRD) is reached.
但是您前面的解答:
是自动减一,但是你要根据你定时多长时间设个值啊。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 device
reset, 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.
自动减一指的是什么呢?
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 device
reset, 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.自动减一指的是什么呢?