Timer/PCA exercises
Emulation of the PCA software timer mode
Use a timer interrupt service routine to implement the software timer mode of the programmable counter array by software. Use appropriate variables to represent the PCA main counter and capture/compare registers. In each execution of the timer interrupt service routine the main counter should be incremented and the required operation mode should be realized.