Timer/PCA exercises




Emulation of the Timer 0 and Timer1

Use a timer interrupt service routine to implement the Timer 0 and Timer 1 functions by software. Use appropriate variables to represent the counter, the control register and external signals. In each execution of the timer interrupt service routine the counter should be incremented and the required operation mode should be realized.