Hi Everyone,
I am building a Pic based automotive ignition coil driver. I use CMOS operational amplifier to drive a MOSFET that grounds the coil primary winding (I have attached the circuitry and the code I am using). The problem is that every time the coil fires the Pic resets that causes the coil to be triggered again instantly rather than in a set period of time. After several seconds the Pic locks up and I have to reset it manually. If I disconnect the coil everything works fine. I am using 16f628a but I also tried 16f877a and 16f84a with 4Mhz oscillator it made no difference. The circuit is built on a breadboard and I use a battery as a power supply for the coil and Pic. I’ve attached the oscillograms taken at various points of the circuitry and a photo of the project. The scope traces are not synchronized I put them in one file for convenience. I shall appreciate any help or advise.
Bookmarks