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.

Timer的分频没效果?



主频已经配置成80MHz,想在timer做一次分频:

//启用时钟模块  

SysCtlPeripheralEnable(SYSCTL_PERIPH_WTIMER2);  

//设置时钟模块工作模式  

TimerConfigure(WTIMER2_BASE,TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_PERIODIC_UP);  

//设置时钟的计数范围  TimerLoadSet(WTIMER2_BASE,TIMER_A,100000);

 //时钟分频  

TimerPrescaleSet(WTIMER2_BASE,TIMER_A,80);  

//启用时钟  

TimerEnable(WTIMER2_BASE,TIMER_A);

主函数里面反复点亮一盏灯,分频配置前后闪的一样快,没效果,怎么配置好?