ZapPat
10 kW
gip_mad said:To me it looks like these ports are used only to switch the windings based on hall inputs, 3 for high side, 3 for low side; the inverter is a protection so both sides can't be on at the same time; the hardware pwm output (RC2, pin 13) modulates the OR gates to get the switching - so it looks like there is nothing really "emulated" at all.![]()
It is still possible to conect to ICD pins anyway.
OK, good observation there, mad gip!
BUT, I still think it is a hack of a solution using 4 extra logic gates only to do part of what a more appropriate micro would be doing alone.
And yes, you are right that you could add in an ICD connector somehow, except for the capacitor on MCLR which might give you trouble.