I'm wondering what these ports actually log? thanks,
matt
What do Port a, b, c and d log?
Moderators: jsmcortina, muythaibxr
-
- Super MS/Extra'er
- Posts: 12733
- Joined: Sat Jul 16, 2005 8:07 am
- Location: Moorseville, NC
- Contact:
They host a multitude of flags by setting bits in each. For example:
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.
Code: Select all
fanOn = { porta & 0b00100000 } ; "Fan/W Inj Off"
nosReq = { porta & 0b00010000 } ; "NOS/W Inj Off"
nosActive = { portd & 0b00000010 } ; "NOS/Tables On",
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
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
-
- Site Admin
- Posts: 39619
- Joined: Mon May 03, 2004 1:34 am
- Location: Birmingham, UK
- Contact:
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
;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".
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".