Spark outputs (MS2 development/coding for dummies)

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
acab
Experienced MS/Extra'er
Posts: 243
Joined: Tue Aug 21, 2012 5:52 am

Spark outputs (MS2 development/coding for dummies)

Post by acab »

i found that on code and i want find 2 pins for ignition of that, can anybody help?

Code: Select all

#define COILABIT 0x1
#define COILBBIT 0x2
#define COILCBIT 0x4
#define COILDBIT 0x8
#define COILEBIT 0x10
#define COILFBIT 0x20
#define COILGBIT 0x40 // no outputs connected
#define COILHBIT 0x80 // no outputs connected

Code: Select all

} else if (*coil == TRIGG) {
            if (num_spk == 1) {
                *bits |= COILABIT;
            } else if (num_spk == 2) {
                *bits |= COILABIT;
            } else if (num_spk == 4) {
                *bits |= COILCBIT;
            } else {
                *bits |= COILGBIT;
            }
        } else if (*coil == TRIGH) {
            if (num_spk == 1) {
                *bits |= COILABIT;
            } else if (num_spk == 2) {
                *bits |= COILBBIT;
            } else if (num_spk == 4) {
                *bits |= COILDBIT;
            } else {
                *bits |= COILHBIT;
            }
        }
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: MS2 development/coding for dummies

Post by jsmcortina »

acab wrote:i found that on code and i want find 2 pins for ignition of that, can anybody help?
Not sure what you are trying to do there?

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
acab
Experienced MS/Extra'er
Posts: 243
Joined: Tue Aug 21, 2012 5:52 am

Re: MS2 development/coding for dummies

Post by acab »

jsmcortina wrote: Not sure what you are trying to do there?

James
connect IAC1 and IAC2 for SPK_G and SPK_H :D
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Spark outputs (MS2 development/coding for dummies)

Post by jsmcortina »

You are on your own there. No idea if the rest of the code supports that as it was only planned to support 6 spark outputs.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply