I have written the LED flashing light program for a 16F683 microcontroller.
I expected the LED to have a 50:50 mark space ratio. i.e. on exactly half the time. In fact, it is spending longer on than off.
I connected the output to the storage scope and can see that there is a glitch exactly 2.4 seconds after the first switch on. It appears the output is going low, then before getting quite to 0v, is going tristate before going back to +Vcc.
I have checked the #pragma config WDT=OFF which all looks correct. I have tried re – compiling with WDT set to on and off and can see a bit difference in the compiled HEX file.
I am using a MiniPro TL866 programmer.