Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
硬件定时器Tim0 和Tim1,最低时间100us , 能不能设置成10us级的?
可以定成10us的。在timer_init()里面 把 这几句话屏蔽掉。 // if( tmp > 0xffff || count_us <100 ) // printf("ERR, hw_timer period:%d,valid_ragne[100,%d]\r\n",count_us,(0xffff*10)/TIMER_10US_COUNT); //else 10us的定时,主要是担心 CPU执行不过来。所以建议还是放到100us比较保险