I got stuck with this problem: I have simple application of PIC doing only PWM (use hardware PWM) acording to measured input voltage. Problem is that when some big (near) circuti breaker swithes on or off, PIC got stuck and PWM goes to 100% duty cycle. Then I need to switch power on/off (reset) to get it back to work.
I used power-on reset, brown-out reset and wdt with prescaler 128 (20MHz). MCLR is connected directly to +5V, and whole PCB is in metal box (only has two small openings).
What should I try to prevent all this to happen?
Bookmarks