在线时间9 小时
UID3357012
注册时间2017-11-29
NXP金币0
TA的每日心情 | 奋斗 2017-11-29 15:01 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]初来乍到
注册会员

- 积分
- 72
- 最后登录
- 2023-1-10
|

楼主 |
发表于 2018-3-28 22:36:42
|
显示全部楼层
手册里有这么一段Set the corresponding event bit in the LIMIT register for the event to set an upper
limit for the counter.
When a limit event occurs in unidirectional mode, the counter is cleared to zero
and begins counting up on the next clock edge.
When a limit event occurs in bidirectional mode, the counter begins to count down
from the current value on the next clock edge.
在 LIMIT 寄存器中设置相应的事件位,以通过该事件来设置计数器的上限值。
当在单向模式中发生限值事件时,计数器将会清零,并从下一个时钟沿开始向上
计数。
当在双向模式中发生限值事件时,计数器将从下一个时钟沿的当前值开始递减计数。
|
|