Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   Spark settings inverted? (https://www.miataturbo.net/megasquirt-18/spark-settings-inverted-39630/)

Alta_Racer 09-28-2009 11:47 AM

Spark settings inverted?
 
What exactly do the spark inverted yes/no settings change?

I this a change to rising/falling edge trigger?

Ron

Braineack 09-28-2009 11:50 AM

https://www.miataturbo.net/forum/t33964/


/thread.

Joe Perez 09-28-2009 11:56 AM

That setting changes the output polarity of the spark output driver, specifically, whether the CPU pins used are high in the "resting" state and go low during the "dwell" state, or vise-versa.

In the "usual" configuration, the output driver circuit is inverting, such that the output is high (and thus, the coil conducts) when the CPU pin is low. (This is why coils fry during a reflash, and why some cars pop at poweron). In this configuration, you must select Inverted = NO (which is somewhat counter-intuative.)

In my "improved" output circuit (linked to above), the spark drivers are non-inverting (technically, they are double-inverting) so that when the CPU pin is low (or the CPU is inactive) the final output is also low. In this configuration, you set Inverted = YES (which, again, is silly, but it's the way it is.)



The primary input trigger (on the MS1) is always falling-edge detect, with respect to the CPU itself. This is due to the fact that the pin used for the primary trigger is the hardware IRQ line, and the CPU is "hard-wired" to only look at falling edges on that line. Inversion at the input circuit must be taken into account in determining whether this corresponds to a leading or trailing edge.

Alta_Racer 09-28-2009 07:12 PM

Thanks for the responses, that's what I needed to know.

Joe Perez 09-28-2009 09:08 PM

Ipsa scientia potestas est.


All times are GMT -4. The time now is 10:31 PM.


© 2024 MH Sub I, LLC dba Internet Brands