I,m using s12zvml31 for capture square wave's frequency and duty。Simultaneously, output square wave with the same frequency and specific duty(5% for example). The input frequency is between 10Hz and 1000Hz.
S12zvml31 only have a Timer0 and my main interrupt cycle is 100us, what can I do to solve this problem? The main iterrupt cycle has the highest priority.
My timer's frequency is 625K now.