I've been trying to design capacitive discharge ignition circuits using a microcontroller ARM (Texas and ST) without success. Each circuit using them presents intereference problems during spark generation that I can´t solve...
I believe that my main problem is a GND plane and layout, but I don´t know how to separate efficiently the power ground and logic ground when I use a thyristor (because the terminal K is common in power circuit (A-K) and control (G-K).
All examples that I found and I used as reference are based in PIC or AVR feed 5V. I basically copied the circuit by changing only the microcontroller. Is the STM32F103 sensitive to use in this kind of circuit? Is it possible to live with this noise coupled (when spark is generate) without loss in my circuit?
Because for more than I tried, I can´t eliminate this noise in GND and I believe it is responsible for crashing the uC...
My last PCB layout (used in my tests):
To increase information about my instalation:
My analysis (maybe I made have be wrong in green point):
This part is the CDI circuit (In my test I used a external Charging Coil - AC CDI):
Power supply and power latch(to save important data before microcontroller power off):