Hi I have a 16F88 project in need of advise. PWM output on CCP1 on RB0 drives a MOSFET to drive a motor. RB0/INT interrupt is enabled (on rising edge) The interrupt service routine does an adc sample of the current flowing to see if there is an overcurrent. (1 ohm resistor in ground side of MOSFET) This currently drives an LED if an overcurrent. But cant get my head around a method to tempory collapse the PWM output voltage if there is an over current condition and allow the PWM period to continue and re-test the current in the next interrupt. Setting RB0 =3D 0 w= ont do it. Thanks in advance Dave --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .