2013年2月16日
摘要: 系统时钟和定时器节拍时钟 设置寄存器tickspd用于产生timer1 ,3,4的基本节拍,最大可以是32MHZ此时定时器加1的所需事件最短,为1/32 us定时器除了tickspd的分频,还可以在tickspd的基础上分频,比如timer3clkspd用于产生cpu执行指令的基本节拍,最大可以使32MHZ,此时执行asm("NOP")所用时间是 /1---/128 extern uint8 halTimerSetPrescale (uint8 hwtimerid, uint8 prescale); extern uint8 halTimerSetCount (uint8 阅读全文
posted @ 2013-02-16 19:03 _song 阅读(991) 评论(0) 推荐(0) 编辑