What do Port a, b, c and d log?

All Megasquirt 1 support questions. See also the Documentation

Moderators: jsmcortina, muythaibxr

Post Reply
matt325is
MS/Extra Newbie
Posts: 18
Joined: Thu Nov 25, 2004 7:27 pm
Location: Olympia, WA

What do Port a, b, c and d log?

Post by matt325is »

I'm wondering what these ports actually log? thanks,

matt
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Post by LT401Vette »

They host a multitude of flags by setting bits in each. For example:

Code: Select all

   fanOn            = { porta & 0b00100000 } ; "Fan/W Inj Off"
   nosReq           = { porta & 0b00010000 } ; "NOS/W Inj Off"
   nosActive        = { portd & 0b00000010 } ; "NOS/Tables On",   
So you can see that if bit 6 (counting from 1) is set on port a, it indicates the fan is on, bit 2 on port d indicates that NOS is on. I just got these looking through the extra ini file.

Maybe someone has a comprehensive list.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
jsmcortina
Site Admin
Posts: 39613
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Post by jsmcortina »

From msns-extra.h

;Port A
; PTA0 - FP
; PTA1 - FIDLE
; PTA2 - Output 2 (X5)
; PTA3 - Output 1 (X4)
; PTA4 X3
; PTA5 X2
; PTA6 - Flyback
; PTA7 - Flyback

;Port B (ADC inputs)
; PTB0/AD0 - MAP
; PTB1/AD1 - MAT
; PTB2/AD2 - CLT
; PTB3/AD3 - TPS
; PTB4/AD4 - BAT
; PTB5/AD5 - EGO
; PTB6/AD6 - "X7" spare, EGO2, fuel pressure or 2nd MAP
; PTB7/AD7 - "X6" spare, EGT

;Port C
; PTC0 - Squirt LED or coil a
; PTC1 - Accel LED or coil b or HEI7 bypass
; PTC2 - Warmup LED or coil c or output 4
; PTC3 } multiplexed shift { or coil e
; PTC4 } light outputs { or 2nd trig input

;Port D
; PTD0/~SS - unused or coil d
; PTD1/MISO - nitrous in / table switch
; PTD2/MOSI - knock in / coil f
; PTD3/SPSCK - launch in
; PTD4/T1CH0 - Inj1
; PTD5/T1CH1 - Inj2


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