Notices
ECU Flash

Maf Scaling table

Thread Tools
 
Search this Thread
 
Old Jan 12, 2007, 09:05 AM
  #46  
EvoM Guru
iTrader: (5)
 
MalibuJack's Avatar
 
Join Date: Feb 2003
Location: Royse City, TX
Posts: 10,569
Likes: 0
Received 9 Likes on 9 Posts
The disassembly is confusing to say the least, at least for me it is, and I'm a pretty proficient programmer, only I stay away from assembly.

I think the smoothing value has something to do with the what you were saying earlier, it makes sense as different parts can affect the MAF curve, so the smoothing table could be something to allow fine-tuning of the curve where there are anomolies, or maybe just a simple value for a smoothing algorithm so the values arent jumpy when their passed to other functions.. (if you read the raw MAF value you understand what I'm talking about, at any particular time, the value can jump up and down and is never a truely smooth value)
Old Jan 12, 2007, 02:24 PM
  #47  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
&H8C is added to the MAF scaling value that is looked up and stored in RAM.

MAF smoothing is looked up and stored in RAM.

Air temp comp is multiplied by &HCD.

Then it gets complicated, and from Bez's disasm it looks like it does the following:

Then it fiddles with barometer readings before preparing the MAF signal further and using injector scaling to calculate a fuel pulse width.

Does this help?
Old Jan 12, 2007, 02:36 PM
  #48  
Evolved Member
Thread Starter
iTrader: (2)
 
l2r99gst's Avatar
 
Join Date: Mar 2004
Location: CA
Posts: 3,499
Likes: 0
Received 4 Likes on 4 Posts
Originally Posted by jcsbanks
&H8C is added to the MAF scaling value that is looked up and stored in RAM.

MAF smoothing is looked up and stored in RAM.

Air temp comp is multiplied by &HCD.

Then it gets complicated, and from Bez's disasm it looks like it does the following:

Then it fiddles with barometer readings before preparing the MAF signal further and using injector scaling to calculate a fuel pulse width.

Does this help?

Yes, absolutely, but I was wondering if your know the ROM address for that 8C adder value? Or, if your just tell me the relative location in relation to one of the tables, I can find it in my ROM, the 96940011 identifier.

I want it so that I could make a map for it in ECUFlash.

Thanks,
Eric
Old Jan 12, 2007, 02:47 PM
  #49  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
MAF scaling table at 2a06, the code that addresses this table is at &H15024.

So &H1112 has the WORD that is added, use &H1113 if you want to define as a byte (UINT8).
Old Jan 12, 2007, 03:00 PM
  #50  
Evolved Member
Thread Starter
iTrader: (2)
 
l2r99gst's Avatar
 
Join Date: Mar 2004
Location: CA
Posts: 3,499
Likes: 0
Received 4 Likes on 4 Posts
Originally Posted by jcsbanks
MAF scaling table at 2a06, the code that addresses this table is at &H15024.

So &H1112 has the WORD that is added, use &H1113 if you want to define as a byte (UINT8).
Sweet, thanks. I wish I knew how to disassemble. I'm assuming this whole subroutine is involved, huh?

ROM:00015014 ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
ROM:00015014
ROM:00015014
ROM:00015014 sub_15014: ; CODE XREF: sub_149EC+Cp
ROM:00015014 sts.l pr, @-r15
ROM:00015016 mov.l r14, @-r15
ROM:00015018 mov r15, r14
ROM:0001501A mov.l r1, @-r15
ROM:0001501C mov.l @(h'C0,pc), r4 ; [000150E0] = unk_5B6E
ROM:0001501E mov.l @(h'C4,pc), r10 ; [000150E4] = sub_CC6
ROM:00015020 jsr @r10 ; sub_CC6
ROM:00015022 nop
ROM:00015024 mov.l @(h'C0,pc), r4 ; [000150E8] = unk_2A00
ROM:00015026 mov.l @(h'1B0,pc), r10 ; [000151D8] = sub_C28
ROM:00015028 jsr @r10 ; sub_C28
ROM:0001502A nop
ROM:0001502C mov.l @(h'BC,pc), r10 ; [000150EC] = loc_1112
ROM:0001502E mov.w @r10, r10
ROM:00015030 add r10, r0
ROM:00015032 mov.l @(h'BC,pc), r11 ; [000150F0] = h'FFFF8AC6
ROM:00015034 mov.w r0, @r11
ROM:00015036 mov.l @(h'BC,pc), r4 ; [000150F4] = unk_2A1C
ROM:00015038 mov.l @(h'19C,pc), r10 ; [000151D8] = sub_C28
ROM:0001503A jsr @r10 ; sub_C28
ROM:0001503C nop
ROM:0001503E extu.w r0, r4
ROM:00015040 mov.l @(h'B4,pc), r10 ; [000150F8] = sub_24674
ROM:00015042 jsr @r10 ; sub_24674
ROM:00015044 nop
ROM:00015046 mov.l @(h'B4,pc), r11 ; [000150FC] = h'FFFF8ACA
ROM:00015048 mov.w r0, @r11
ROM:0001504A mov.l @(h'B4,pc), r1 ; [00015100] = h'FFFF8918
ROM:0001504C mov.w @r1, r1
ROM:0001504E extu.w r1, r1
ROM:00015050 mov.l @(h'B0,pc), r4 ; [00015104] = unk_2A38
ROM:00015052 mov.l @(h'184,pc), r10 ; [000151D8] = sub_C28
ROM:00015054 jsr @r10 ; sub_C28
ROM:00015056 nop
ROM:00015058 mov.w @(h'7E,pc), r10 ; [000150DA] = h'CD
ROM:0001505A mulu r0, r10
ROM:0001505C sts macl, r4
ROM:0001505E mov r1, r5
ROM:00015060 mov.l @(h'A4,pc), r10 ; [00015108] = sub_9B0
ROM:00015062 jsr @r10 ; sub_9B0
ROM:00015064 nop
ROM:00015066 mov.l @(h'A4,pc), r11 ; [0001510C] = h'FFFF887A
ROM:00015068 mov.w r0, @r11
ROM:0001506A mov.l @(h'A4,pc), r4 ; [00015110] = unk_5BA2
ROM:0001506C mov.l @(h'74,pc), r10 ; [000150E4] = sub_CC6
ROM:0001506E jsr @r10 ; sub_CC6
ROM:00015070 nop
ROM:00015072 mov.l @(h'A0,pc), r4 ; [00015114] = unk_5B5C
ROM:00015074 mov.l @(h'6C,pc), r10 ; [000150E4] = sub_CC6
ROM:00015076 jsr @r10 ; sub_CC6
ROM:00015078 nop
ROM:0001507A mov.l @(h'9C,pc), r4 ; [00015118] = unk_2A46
ROM:0001507C mov.l @(h'158,pc), r10 ; [000151D8] = sub_C28
ROM:0001507E jsr @r10 ; sub_C28
ROM:00015080 nop
ROM:00015082 mov.l @(h'98,pc), r11 ; [0001511C] = h'FFFF8AC8
ROM:00015084 mov.w r0, @r11
ROM:00015086 mov.l @(h'94,pc), r10 ; [0001511C] = h'FFFF8AC8
ROM:00015088 mov.w @r10, r10
ROM:0001508A extu.w r10, r10
ROM:0001508C mov.l @(h'6C,pc), r11 ; [000150FC] = h'FFFF8ACA
ROM:0001508E mov.w @r11, r11
ROM:00015090 extu.w r11, r11
ROM:00015092 mulu r10, r11
ROM:00015094 sts macl, r12
ROM:00015096 mov.l @(h'58,pc), r4 ; [000150F0] = h'FFFF8AC6
ROM:00015098 mov.w @r4, r4
ROM:0001509A extu.w r4, r4
ROM:0001509C mov r12, r5
ROM:0001509E mov.w @(h'3A,pc), r6 ; [000150DC] = h'4000
ROM:000150A0 mov.l @(h'7C,pc), r10 ; [00015120] = sub_68A
ROM:000150A2 jsr @r10 ; sub_68A
ROM:000150A4 nop
ROM:000150A6 mov.l @(h'7C,pc), r11 ; [00015124] = h'FFFF8AC4
ROM:000150A8 mov.w r0, @r11
ROM:000150AA mov.l @(h'7C,pc), r4 ; [00015128] = loc_2AAA
ROM:000150AC mov.l @(h'7C,pc), r10 ; [0001512C] = sub_DC6
ROM:000150AE jsr @r10 ; sub_DC6
ROM:000150B0 nop
ROM:000150B2 mov.l @(h'7C,pc), r10 ; [00015130] = unk_1106
ROM:000150B4 mov.w @r10, r10
ROM:000150B6 extu.w r10, r10
ROM:000150B8 mulu r10, r0
ROM:000150BA sts macl, r11
ROM:000150BC mov.l @(h'64,pc), r4 ; [00015124] = h'FFFF8AC4
ROM:000150BE mov.w @r4, r4
ROM:000150C0 extu.w r4, r4
ROM:000150C2 mov r11, r5
ROM:000150C4 mov.w @(h'16,pc), r6 ; [000150DE] = h'400
ROM:000150C6 mov.l @(h'58,pc), r10 ; [00015120] = sub_68A
ROM:000150C8 jsr @r10 ; sub_68A
ROM:000150CA nop
ROM:000150CC mov.l @(h'64,pc), r11 ; [00015134] = h'FFFF8AC2
ROM:000150CE mov.w r0, @r11
ROM:000150D0 mov.l @r15+, r1
ROM:000150D2 mov.l @r15+, r14
ROM:000150D4 lds.l @r15+, pr
ROM:000150D6 rts
ROM:000150D8 nop
ROM:000150D8 ; End of function sub_15014



Thanks a ton, John.


Eric
Old Jan 12, 2007, 03:12 PM
  #51  
Evolved Member
 
jcsbanks's Avatar
 
Join Date: May 2006
Location: UK
Posts: 2,399
Likes: 0
Received 5 Likes on 4 Posts
YES, EDITED WITH COMMENTS BELOW:

Originally Posted by l2r99gst
Sweet, thanks. I wish I knew how to disassemble. I'm assuming this whole subroutine is involved, huh?

ROM:00015014 ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
ROM:00015014
ROM:00015014
ROM:00015014 sub_15014: ; CODE XREF: sub_149EC+Cp
ROM:00015014 sts.l pr, @-r15
ROM:00015016 mov.l r14, @-r15
ROM:00015018 mov r15, r14
ROM:0001501A mov.l r1, @-r15
ROM:0001501C mov.l @(h'C0,pc), r4 ; [000150E0] = unk_5B6E ;axis
ROM:0001501E mov.l @(h'C4,pc), r10 ; [000150E4] = sub_CC6 ;read table
ROM:00015020 jsr @r10 ; sub_CC6
ROM:00015022 nop
ROM:00015024 mov.l @(h'C0,pc), r4 ; [000150E8] = unk_2A00 ;maf scaling
ROM:00015026 mov.l @(h'1B0,pc), r10 ; [000151D8] = sub_C28
ROM:00015028 jsr @r10 ; sub_C28
ROM:0001502A nop
ROM:0001502C mov.l @(h'BC,pc), r10 ; [000150EC] = loc_1112 ;offset
ROM:0001502E mov.w @r10, r10
ROM:00015030 add r10, r0 ;add offset to contents of maf scaling
ROM:00015032 mov.l @(h'BC,pc), r11 ; [000150F0] = h'FFFF8AC6
ROM:00015034 mov.w r0, @r11 ; store in RAM
ROM:00015036 mov.l @(h'BC,pc), r4 ; [000150F4] = unk_2A1C ; maf smoothing
ROM:00015038 mov.l @(h'19C,pc), r10 ; [000151D8] = sub_C28
ROM:0001503A jsr @r10 ; sub_C28
ROM:0001503C nop
ROM:0001503E extu.w r0, r4
ROM:00015040 mov.l @(h'B4,pc), r10 ; [000150F8] = sub_24674
ROM:00015042 jsr @r10 ; sub_24674 ;with standard values this does nothing except put the result back in r0...
ROM:00015044 nop
ROM:00015046 mov.l @(h'B4,pc), r11 ; [000150FC] = h'FFFF8ACA
ROM:00015048 mov.w r0, @r11 ; ... to be stored in RAM
ROM:0001504A mov.l @(h'B4,pc), r1 ; [00015100] = h'FFFF8918
ROM:0001504C mov.w @r1, r1
ROM:0001504E extu.w r1, r1
ROM:00015050 mov.l @(h'B0,pc), r4 ; [00015104] = unk_2A38 ; air temp comp
ROM:00015052 mov.l @(h'184,pc), r10 ; [000151D8] = sub_C28
ROM:00015054 jsr @r10 ; sub_C28
ROM:00015056 nop
ROM:00015058 mov.w @(h'7E,pc), r10 ; [000150DA] = h'CD
ROM:0001505A mulu r0, r10 ;air temp multiply by h'CD
ROM:0001505C sts macl, r4 ;store result in r4
ROM:0001505E mov r1, r5
ROM:00015060 mov.l @(h'A4,pc), r10 ; [00015108] = sub_9B0
ROM:00015062 jsr @r10 ; sub_9B0 ; division
ROM:00015064 nop
ROM:00015066 mov.l @(h'A4,pc), r11 ; [0001510C] = h'FFFF887A
ROM:00015068 mov.w r0, @r11
ROM:0001506A mov.l @(h'A4,pc), r4 ; [00015110] = unk_5BA2 ;baro axis
ROM:0001506C mov.l @(h'74,pc), r10 ; [000150E4] = sub_CC6
ROM:0001506E jsr @r10 ; sub_CC6
ROM:00015070 nop
ROM:00015072 mov.l @(h'A0,pc), r4 ; [00015114] = unk_5B5C ;baro axis
ROM:00015074 mov.l @(h'6C,pc), r10 ; [000150E4] = sub_CC6
ROM:00015076 jsr @r10 ; sub_CC6
ROM:00015078 nop
ROM:0001507A mov.l @(h'9C,pc), r4 ; [00015118] = unk_2A46 ;baro table
ROM:0001507C mov.l @(h'158,pc), r10 ; [000151D8] = sub_C28
ROM:0001507E jsr @r10 ; sub_C28
ROM:00015080 nop

I get bored at this point LOL

ROM:00015082 mov.l @(h'98,pc), r11 ; [0001511C] = h'FFFF8AC8
ROM:00015084 mov.w r0, @r11
ROM:00015086 mov.l @(h'94,pc), r10 ; [0001511C] = h'FFFF8AC8
ROM:00015088 mov.w @r10, r10
ROM:0001508A extu.w r10, r10
ROM:0001508C mov.l @(h'6C,pc), r11 ; [000150FC] = h'FFFF8ACA
ROM:0001508E mov.w @r11, r11
ROM:00015090 extu.w r11, r11
ROM:00015092 mulu r10, r11
ROM:00015094 sts macl, r12
ROM:00015096 mov.l @(h'58,pc), r4 ; [000150F0] = h'FFFF8AC6
ROM:00015098 mov.w @r4, r4
ROM:0001509A extu.w r4, r4
ROM:0001509C mov r12, r5
ROM:0001509E mov.w @(h'3A,pc), r6 ; [000150DC] = h'4000
ROM:000150A0 mov.l @(h'7C,pc), r10 ; [00015120] = sub_68A
ROM:000150A2 jsr @r10 ; sub_68A
ROM:000150A4 nop
ROM:000150A6 mov.l @(h'7C,pc), r11 ; [00015124] = h'FFFF8AC4
ROM:000150A8 mov.w r0, @r11
ROM:000150AA mov.l @(h'7C,pc), r4 ; [00015128] = loc_2AAA
ROM:000150AC mov.l @(h'7C,pc), r10 ; [0001512C] = sub_DC6
ROM:000150AE jsr @r10 ; sub_DC6
ROM:000150B0 nop
ROM:000150B2 mov.l @(h'7C,pc), r10 ; [00015130] = unk_1106 ;inj scaling
ROM:000150B4 mov.w @r10, r10
ROM:000150B6 extu.w r10, r10
ROM:000150B8 mulu r10, r0
ROM:000150BA sts macl, r11
ROM:000150BC mov.l @(h'64,pc), r4 ; [00015124] = h'FFFF8AC4
ROM:000150BE mov.w @r4, r4
ROM:000150C0 extu.w r4, r4
ROM:000150C2 mov r11, r5
ROM:000150C4 mov.w @(h'16,pc), r6 ; [000150DE] = h'400
ROM:000150C6 mov.l @(h'58,pc), r10 ; [00015120] = sub_68A
ROM:000150C8 jsr @r10 ; sub_68A
ROM:000150CA nop
ROM:000150CC mov.l @(h'64,pc), r11 ; [00015134] = h'FFFF8AC2
ROM:000150CE mov.w r0, @r11
ROM:000150D0 mov.l @r15+, r1
ROM:000150D2 mov.l @r15+, r14
ROM:000150D4 lds.l @r15+, pr
ROM:000150D6 rts
ROM:000150D8 nop
ROM:000150D8 ; End of function sub_15014



Thanks a ton, John.


Eric
Old Jan 12, 2007, 03:17 PM
  #52  
Evolved Member
Thread Starter
iTrader: (2)
 
l2r99gst's Avatar
 
Join Date: Mar 2004
Location: CA
Posts: 3,499
Likes: 0
Received 4 Likes on 4 Posts
You're the man! Thanks again.

I'm going to use this for my mini lesson in disassembly.


Eric

Last edited by l2r99gst; Jan 12, 2007 at 03:20 PM.
Old Jan 12, 2007, 03:31 PM
  #53  
Evolved Member
iTrader: (24)
 
dubbleugly01's Avatar
 
Join Date: Aug 2005
Location: houston
Posts: 2,154
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by l2r99gst
Sweet, thanks. I wish I knew how to disassemble. I'm assuming this whole subroutine is involved, huh?

ROM:00015014 ; ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ S U B R O U T I N E ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦
ROM:00015014
ROM:00015014
ROM:00015014 sub_15014: ; CODE XREF: sub_149EC+Cp
ROM:00015014 sts.l pr, @-r15
ROM:00015016 mov.l r14, @-r15
ROM:00015018 mov r15, r14
ROM:0001501A mov.l r1, @-r15
ROM:0001501C mov.l @(h'C0,pc), r4 ; [000150E0] = unk_5B6E
ROM:0001501E mov.l @(h'C4,pc), r10 ; [000150E4] = sub_CC6
ROM:00015020 jsr @r10 ; sub_CC6
ROM:00015022 nop
ROM:00015024 mov.l @(h'C0,pc), r4 ; [000150E8] = unk_2A00
ROM:00015026 mov.l @(h'1B0,pc), r10 ; [000151D8] = sub_C28
ROM:00015028 jsr @r10 ; sub_C28
ROM:0001502A nop
ROM:0001502C mov.l @(h'BC,pc), r10 ; [000150EC] = loc_1112
ROM:0001502E mov.w @r10, r10
ROM:00015030 add r10, r0
ROM:00015032 mov.l @(h'BC,pc), r11 ; [000150F0] = h'FFFF8AC6
ROM:00015034 mov.w r0, @r11
ROM:00015036 mov.l @(h'BC,pc), r4 ; [000150F4] = unk_2A1C
ROM:00015038 mov.l @(h'19C,pc), r10 ; [000151D8] = sub_C28
ROM:0001503A jsr @r10 ; sub_C28
ROM:0001503C nop
ROM:0001503E extu.w r0, r4
ROM:00015040 mov.l @(h'B4,pc), r10 ; [000150F8] = sub_24674
ROM:00015042 jsr @r10 ; sub_24674
ROM:00015044 nop
ROM:00015046 mov.l @(h'B4,pc), r11 ; [000150FC] = h'FFFF8ACA
ROM:00015048 mov.w r0, @r11
ROM:0001504A mov.l @(h'B4,pc), r1 ; [00015100] = h'FFFF8918
ROM:0001504C mov.w @r1, r1
ROM:0001504E extu.w r1, r1
ROM:00015050 mov.l @(h'B0,pc), r4 ; [00015104] = unk_2A38
ROM:00015052 mov.l @(h'184,pc), r10 ; [000151D8] = sub_C28
ROM:00015054 jsr @r10 ; sub_C28
ROM:00015056 nop
ROM:00015058 mov.w @(h'7E,pc), r10 ; [000150DA] = h'CD
ROM:0001505A mulu r0, r10
ROM:0001505C sts macl, r4
ROM:0001505E mov r1, r5
ROM:00015060 mov.l @(h'A4,pc), r10 ; [00015108] = sub_9B0
ROM:00015062 jsr @r10 ; sub_9B0
ROM:00015064 nop
ROM:00015066 mov.l @(h'A4,pc), r11 ; [0001510C] = h'FFFF887A
ROM:00015068 mov.w r0, @r11
ROM:0001506A mov.l @(h'A4,pc), r4 ; [00015110] = unk_5BA2
ROM:0001506C mov.l @(h'74,pc), r10 ; [000150E4] = sub_CC6
ROM:0001506E jsr @r10 ; sub_CC6
ROM:00015070 nop
ROM:00015072 mov.l @(h'A0,pc), r4 ; [00015114] = unk_5B5C
ROM:00015074 mov.l @(h'6C,pc), r10 ; [000150E4] = sub_CC6
ROM:00015076 jsr @r10 ; sub_CC6
ROM:00015078 nop
ROM:0001507A mov.l @(h'9C,pc), r4 ; [00015118] = unk_2A46
ROM:0001507C mov.l @(h'158,pc), r10 ; [000151D8] = sub_C28
ROM:0001507E jsr @r10 ; sub_C28
ROM:00015080 nop
ROM:00015082 mov.l @(h'98,pc), r11 ; [0001511C] = h'FFFF8AC8
ROM:00015084 mov.w r0, @r11
ROM:00015086 mov.l @(h'94,pc), r10 ; [0001511C] = h'FFFF8AC8
ROM:00015088 mov.w @r10, r10
ROM:0001508A extu.w r10, r10
ROM:0001508C mov.l @(h'6C,pc), r11 ; [000150FC] = h'FFFF8ACA
ROM:0001508E mov.w @r11, r11
ROM:00015090 extu.w r11, r11
ROM:00015092 mulu r10, r11
ROM:00015094 sts macl, r12
ROM:00015096 mov.l @(h'58,pc), r4 ; [000150F0] = h'FFFF8AC6
ROM:00015098 mov.w @r4, r4
ROM:0001509A extu.w r4, r4
ROM:0001509C mov r12, r5
ROM:0001509E mov.w @(h'3A,pc), r6 ; [000150DC] = h'4000
ROM:000150A0 mov.l @(h'7C,pc), r10 ; [00015120] = sub_68A
ROM:000150A2 jsr @r10 ; sub_68A
ROM:000150A4 nop
ROM:000150A6 mov.l @(h'7C,pc), r11 ; [00015124] = h'FFFF8AC4
ROM:000150A8 mov.w r0, @r11
ROM:000150AA mov.l @(h'7C,pc), r4 ; [00015128] = loc_2AAA
ROM:000150AC mov.l @(h'7C,pc), r10 ; [0001512C] = sub_DC6
ROM:000150AE jsr @r10 ; sub_DC6
ROM:000150B0 nop
ROM:000150B2 mov.l @(h'7C,pc), r10 ; [00015130] = unk_1106
ROM:000150B4 mov.w @r10, r10
ROM:000150B6 extu.w r10, r10
ROM:000150B8 mulu r10, r0
ROM:000150BA sts macl, r11
ROM:000150BC mov.l @(h'64,pc), r4 ; [00015124] = h'FFFF8AC4
ROM:000150BE mov.w @r4, r4
ROM:000150C0 extu.w r4, r4
ROM:000150C2 mov r11, r5
ROM:000150C4 mov.w @(h'16,pc), r6 ; [000150DE] = h'400
ROM:000150C6 mov.l @(h'58,pc), r10 ; [00015120] = sub_68A
ROM:000150C8 jsr @r10 ; sub_68A
ROM:000150CA nop
ROM:000150CC mov.l @(h'64,pc), r11 ; [00015134] = h'FFFF8AC2
ROM:000150CE mov.w r0, @r11
ROM:000150D0 mov.l @r15+, r1
ROM:000150D2 mov.l @r15+, r14
ROM:000150D4 lds.l @r15+, pr
ROM:000150D6 rts
ROM:000150D8 nop
ROM:000150D8 ; End of function sub_15014



Thanks a ton, John.


Eric
all I see is a redhead, a blonde and a brunette.....

You guys are way above my head with this stuff

We need to rename you guys Neo, Mobius, and I don't know who gets to be Trinity. Thanks for the hard work and sharing of information. If you guys figure out how to fix idle/stall problems with big cams or VTA BOV's, you've defeated Agent Smith!

Old Jan 13, 2007, 04:43 PM
  #54  
Evolved Member
Thread Starter
iTrader: (2)
 
l2r99gst's Avatar
 
Join Date: Mar 2004
Location: CA
Posts: 3,499
Likes: 0
Received 4 Likes on 4 Posts
OK, with the new-found knowledge of the Hz scaling and the 140 adder, I went ahead and cleaned up my spreadsheet and posted the relevant data. I also included the formulas that I use with LogWorks to calculate the mass airflow per time and per rev, as well as air density.

I also gave an example of how to recalibrate parts of the table for a new intake that may have messed up the MAF reading and your fuel trims. Feel free to go over this to make sure my logic is sound. (The example is listed at the end of the spreadsheet). Keep in mind that these are only 8 bit values in this table, so the max value is 255, if your use uint8 for the scaling. There isn't much room in the upper ranges for changes, unless you change the adder in conjunction with the table. But, I would advise against changing the adder at this time, since it would be better to know more with a full dissembly to make sure changing it won't affect other tables and calculations.

I'm curious if SophieSleeps will try this again. I think he tried this with no effect, but that was before knowing about the 140 adder, so you need to make much larger changes than normal.

Anyway, here it is.


Eric
Attached Files
File Type: zip
Evo Maf.zip (87.0 KB, 150 views)

Last edited by l2r99gst; Jan 13, 2007 at 04:49 PM.
Old Jan 13, 2007, 04:51 PM
  #55  
Evolved Member
iTrader: (19)
 
SophieSleeps's Avatar
 
Join Date: Sep 2005
Location: Butthole, MA
Posts: 834
Likes: 0
Received 0 Likes on 0 Posts
try what?
I'm a little lost.
Old Jan 13, 2007, 04:56 PM
  #56  
Evolved Member
Thread Starter
iTrader: (2)
 
l2r99gst's Avatar
 
Join Date: Mar 2004
Location: CA
Posts: 3,499
Likes: 0
Received 4 Likes on 4 Posts
Maybe it was you or maybe it was someone else.

I thought it was you that had a very positive idle fuel trim and you tried changing the first few values in this table, but nothing happened to the fuel trims. Was that you? If not, I can look up who it was.

Edit: Yes, I just checked. Look at post #33 in this thread. That is what I was referring to. Obviously I wouldn't want you to do anything that isn't necessary. What are your fuel trims at idle, meaning both long term and short term? STFT should be bouncing around 0, but it can sway a bit. What is your LTFT for idle?

Thanks,
Eric

Last edited by l2r99gst; Jan 13, 2007 at 05:01 PM.
Old Jan 14, 2007, 12:08 AM
  #57  
Evolved Member
 
burgers22's Avatar
 
Join Date: Jan 2006
Location: Oxfordshire
Posts: 953
Received 2 Likes on 2 Posts
Originally Posted by dubbleugly01
all I see is a redhead, a blonde and a brunette.....

You guys are way above my head with this stuff

We need to rename you guys Neo, Mobius, and I don't know who gets to be Trinity. Thanks for the hard work and sharing of information. If you guys figure out how to fix idle/stall problems with big cams or VTA BOV's, you've defeated Agent Smith!

PMSL.......................
Old Jan 14, 2007, 06:59 AM
  #58  
Evolved Member
iTrader: (19)
 
chmodlf's Avatar
 
Join Date: Oct 2004
Location: CT
Posts: 885
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by l2r99gst
OK, with the new-found knowledge of the Hz scaling and the 140 adder, I went ahead and cleaned up my spreadsheet and posted the relevant data. I also included the formulas that I use with LogWorks to calculate the mass airflow per time and per rev, as well as air density.

I also gave an example of how to recalibrate parts of the table for a new intake that may have messed up the MAF reading and your fuel trims. Feel free to go over this to make sure my logic is sound. (The example is listed at the end of the spreadsheet). Keep in mind that these are only 8 bit values in this table, so the max value is 255, if your use uint8 for the scaling. There isn't much room in the upper ranges for changes, unless you change the adder in conjunction with the table. But, I would advise against changing the adder at this time, since it would be better to know more with a full dissembly to make sure changing it won't affect other tables and calculations.

I'm curious if SophieSleeps will try this again. I think he tried this with no effect, but that was before knowing about the 140 adder, so you need to make much larger changes than normal.

Anyway, here it is.


Eric
Nice work bro! This is a really nice part of the puzzle.
Old Jan 30, 2007, 08:46 PM
  #59  
Evolved Member
iTrader: (19)
 
SophieSleeps's Avatar
 
Join Date: Sep 2005
Location: Butthole, MA
Posts: 834
Likes: 0
Received 0 Likes on 0 Posts
Any updates?
I have no clue what you guys are doing, just think I need to rescale pretty hardcore.
Old Feb 3, 2007, 01:03 PM
  #60  
Evolved Member
iTrader: (19)
 
SophieSleeps's Avatar
 
Join Date: Sep 2005
Location: Butthole, MA
Posts: 834
Likes: 0
Received 0 Likes on 0 Posts
Originally Posted by l2r99gst
Maybe it was you or maybe it was someone else.

I thought it was you that had a very positive idle fuel trim and you tried changing the first few values in this table, but nothing happened to the fuel trims. Was that you? If not, I can look up who it was.

Edit: Yes, I just checked. Look at post #33 in this thread. That is what I was referring to. Obviously I wouldn't want you to do anything that isn't necessary. What are your fuel trims at idle, meaning both long term and short term? STFT should be bouncing around 0, but it can sway a bit. What is your LTFT for idle?

Thanks,
Eric
Oops. Didn't realize you replied to me.
I will get you my STFT and LTFT today hopefully. Putting a new wideband in and stuff so I'll be a little busy with that and some snow shoveling.
I gotta fix this damn idle. 10 AF's are killin me


Quick Reply: Maf Scaling table



All times are GMT -7. The time now is 06:45 PM.