( ( ( (one by one by one))) ). Use of timer 0 1. Declare the timer interrupt service function. . . . Such as: interrupt void ISRTimer0(void); //interrupt service program 2. Replace the interrupt vector, use the address of the timer interrupt service function as the entry address such as: : : : EALLOW; //Allow access to protected registers PieVectTable.TINT0 = &ISRTimer0; EDIS; //Prohibit access to protected registers 3. Enable the INT1 interrupt connected to CPU-Timer 0 IER|=M_INT1; (equivalent to closing the switch of the IER timer)
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore