using TMR0 as a counter..

Printable View