Re-scaling MAT counts table $8D SAUJP

American Delco GM ECUs and PCMs, ALDL, OBD 1.5.
34blazer
Posts: 107
Joined: Mon Dec 31, 2012 4:54 am
cars: '85 S10 Blazer-GT3582R;7730 swap *in progress*
'86 Fiero SE-7730/S_AUJPV4
'87 Mustang GT-7703?S_AUJPV4
'97 Ram SS/T
Location: LasVegastan

Re: Re-scaling MAT counts table $8D SAUJP

Post by 34blazer »

VL400 wrote:Roughly what would you expect the MAT to read?

well, it seems to be reading ambient temps accurately. the XDF item is where all my problems are. looking at the attached pic, to adjust the value at 56*C, i have to change the value at ~80*C. interpolation makes it tricky to adjust for the current ambient temperature. thats why I wanted to figure out the lookup table to determine if something isnt calculating right.
Attachments
MAT edit.png
MAT edit.png (10.51 KiB) Viewed 4338 times
Image


Image
User avatar
VL400
Posts: 4991
Joined: Sun Mar 01, 2009 2:54 pm
cars: VL Calais and Toyota Landcruiser. Plus some toys :)
Location: Perth, WA
Contact:

Re: Re-scaling MAT counts table $8D SAUJP

Post by VL400 »

That looks to be possibly an error in the XDF, in factory code the table does not use MAT counts for its lookup so you cant have MAT linked the way it is for data tracing. Part of the lookup value is using the multiplier in "MAT Inverse Term Lookup Delta Mult. Vs. Airflow "

This is from the factory 8D code, maybe the SAUJP is different but from your findings I suspect not...

Code: Select all

;--------------------------------------------------
; LK UP (COOLANT - MAT) DELTA MULT
; FOR INV TERM L.U. vs AIR FLOW
;
; TBL = MULT * 128
;--------------------------------------------------
              ldaa    *L006B                 ; gms/sec, LIMITED AIR FLOW FROM IDEAL GAS LAW
              ldx     #L880E                 ; (COOLANT - MAT) DELTA MULT
                                             ; FOR INV TERM L.U. vs AIR FLOW
              jsr     LE3D8                  ; 2D LOOK UP, NO OFF SET   (Is LE3D0 in ANHT)
              ldab    *L005D                 ; FILTERED COOLANT TEMP
              subb    *L0063                 ; INV A/D MAT
              bcc     LD7FA                  ; BR IF Carry Clear (Goes to LD7F2 in ANHT)
                                             ; ... else
              clrb                           ; B = 0
LD7FA:        mul                            ; APPLY MULTIPLIER                              ; CRef: 0xD7F7
              lsld                           ; MULT * 2
              bcs     LD802                  ; BR IF OVERFLOW  (Goes to LD7FA in ANHT)
                                             ; ... else
              adda    *L0063                 ; INV A/D MAT
              bcc     LD804                  ; BR IF Carry Clear (Goes to LD7FC in ANHT)
                                             ; ... else
LD802:        ldaa    #0xFF                  ; FORCE MAX VAL                                 ; CRef: 0xD7FC
;--------------------------------------------------
; MAT COMP Vs MAT
; TABLE is MAT COMP COUNTS
;--------------------------------------------------
LD804:        ldx     #L87FD                ; MAT COMP VS MAT TBL (^.5)                     ; CRef: 0xD7E7,0xD800
              jsr     LE3D8                  ; 2D LOOK UP, NO OFF SET   (Is LE3D0 in ANHT)
              ldab    #0x80                  ; VAL = 128
              mul                            ; * 128
              addd    #0x7480                ; MAT = ((MAT^.5)+233)*128
              pshb                           ; Store acc. B to stack
              psha                           ; Store acc. A to stack
              pulx                           ; ((MAT^.5)+233)*128, (Denom)
              ldd     L86DD                  ; CYL VOL & UNIT CONV, 159d, (LITRE)
              fdiv                           ;
              stx     *L006D                 ; MAT (not Inverse) ; SAVE MAT, CYL VOL & SCALING TERM
                                             ; CYL VOL/((MAT^.5)+233)*128
              rts                            ; RETURN TO MAJOR LOOP EXE

34blazer
Posts: 107
Joined: Mon Dec 31, 2012 4:54 am
cars: '85 S10 Blazer-GT3582R;7730 swap *in progress*
'86 Fiero SE-7730/S_AUJPV4
'87 Mustang GT-7703?S_AUJPV4
'97 Ram SS/T
Location: LasVegastan

Re: Re-scaling MAT counts table $8D SAUJP

Post by 34blazer »

hmmm well i looked at the xdf item and really dont know what could be wrong. conversion is...1.000000 * X + 0.000000. could that be the problem?
Image


Image
User avatar
VL400
Posts: 4991
Joined: Sun Mar 01, 2009 2:54 pm
cars: VL Calais and Toyota Landcruiser. Plus some toys :)
Location: Perth, WA
Contact:

Re: Re-scaling MAT counts table $8D SAUJP

Post by VL400 »

You will need to ask the SAUJP hacker to be sure as I am not totally familar with the code base but if its the same as the factory disassembly I dont think your going to be able to use data tracing. The table does not use MAT (or MAT counts) as its lookup, so the bubble thats floating around is incorrect - as you have found.
34blazer
Posts: 107
Joined: Mon Dec 31, 2012 4:54 am
cars: '85 S10 Blazer-GT3582R;7730 swap *in progress*
'86 Fiero SE-7730/S_AUJPV4
'87 Mustang GT-7703?S_AUJPV4
'97 Ram SS/T
Location: LasVegastan

Re: Re-scaling MAT counts table $8D SAUJP

Post by 34blazer »

understood, looks like ill need to figure out the lookup table and make some changes. so im thinking that I should display MAT as counts and compare to accurate temp guage and make the changes to the lookup table?

thanks for all your help!
Image


Image
Post Reply