标题: ARM里面定时器0定时中断初始化 [打印本页]

作者: 加葱不要面    时间: 2019-6-30 10:01
标题: ARM里面定时器0定时中断初始化
void Time0Init(){
      T0TC = 0;
      T0PR = 0;
      T0MCR = 0x03;
      T0MCR = Fpclk/100;
      T0TCR =0x01;
      VICIntSelect = VICIntSelect & (~(1<<4));
      VICVectCntl0 = 0x20 | 4;
      VICVectAddr0 = (uint32)Timer0_ISR;
      VICIntEnable = (1<<4);
}
请问大佬,这段程序是怎么设置定时时间的?





欢迎光临 (http://www.51hei.com/bbs/) Powered by Discuz! X3.1