TMR0 ISR

During the motor start-up, the windings behave as a closed circuit, causing the system to draw high current. Referred to as inrush current, this phenomenon might cause a false trigger on the overcurrent detector. By using TMR0, a fraction of a second is inserted before enabling the Fault detection function. When the Timer0 flag is set, the Comparator, TMR2 peripherals and its corresponding interrupts are enabled. The TMR0 is also disabled, making it a one-time execution during motor running operation and will only be in service during another start-up.