DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

$6E ARAP - Extra Spark Table

Thread Tools
 
Search this Thread
 
Old 02-18-2018, 11:42 AM
  #1  
Supreme Member

Thread Starter
 
Mark_ZZ3's Avatar
 
Join Date: Jul 1999
Location: Alberta, Canada
Posts: 1,453
Likes: 0
Received 57 Likes on 31 Posts
Car: 1989 Camaro-1LE
Engine: TPI(s)
Transmission: 5 speed (MM5, MK6)
Axle/Gears: 3.45, 3.73
$6E ARAP - Extra Spark Table

Has anyone used the EXT-WB1 version of the ARAP code? I found it on GearheadEFI (http://www.gearhead-efi.com/Fuel-Inj...Information-6E). Using the matching XDF, it changed the spark table to reference up to 6400 RPM by using 400RPM increments vs. the stock version. It's still the same 17 rows, but less specific in the lower RPM.

I've searched for any history on the BIN, but no luck so far. I've also been reading the documented ARAP code to see where they would have made the change for the RPM table. My assembler days are many moons ago ... so a slow read. But on a good note, I learned a few things on how the total spark is calculated.

Sorry if this has been discussed before. Can't find it yet.

Mark.
Old 02-19-2018, 08:58 AM
  #2  
Moderator

iTrader: (1)
 
RBob's Avatar
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 18,401
Likes: 0
Received 215 Likes on 201 Posts
Car: check
Engine: check
Transmission: check
Re: $6E ARAP - Extra Spark Table

Most likely changed the RPM variable that is used for the table look up. Stock code uses the L0058 variable which is ranged by every 200 RPM until 2400 RPM. Then gets changed to every 400 RPM from there on up.

Variable L0059 is every 400 RPM from start to finish. See the two lines in bold below:

Code:
CE8E:  LCE8E     LDAB    L0064		    ; LD VAL 
CE90:            CMPB    #208               ; 208 gms/SEC MAX FOR LK UP
CE92:            BLS     LCE96              ; BR IF LD VAL GT 208
                                                             
CE94:            LDAB    #208		    ; FORCE 208 GMS/SEC
;CE96:  LCE96     LDAA    L0058              ; RPM/12.5 & RPM/25
CE96:  LCE96     LDAA    L0059              ; RPM/25
CE98:            JSR     LF3B5              ; 3d Lk Up Routine
RBob.
Old 02-19-2018, 10:23 AM
  #3  
Supreme Member

Thread Starter
 
Mark_ZZ3's Avatar
 
Join Date: Jul 1999
Location: Alberta, Canada
Posts: 1,453
Likes: 0
Received 57 Likes on 31 Posts
Car: 1989 Camaro-1LE
Engine: TPI(s)
Transmission: 5 speed (MM5, MK6)
Axle/Gears: 3.45, 3.73
Re: $6E ARAP - Extra Spark Table

Originally Posted by RBob
Most likely changed the RPM variable that is used for the table look up. Stock code uses the L0058 variable which is ranged by every 200 RPM until 2400 RPM. Then gets changed to every 400 RPM from there on up.

Variable L0059 is every 400 RPM from start to finish. See the two lines in bold below:

Code:
CE8E:  LCE8E     LDAB    L0064		    ; LD VAL 
CE90:            CMPB    #208               ; 208 gms/SEC MAX FOR LK UP
CE92:            BLS     LCE96              ; BR IF LD VAL GT 208
                                                             
CE94:            LDAB    #208		    ; FORCE 208 GMS/SEC
;CE96:  LCE96     LDAA    L0058              ; RPM/12.5 & RPM/25
CE96:  LCE96     LDAA    L0059              ; RPM/25
CE98:            JSR     LF3B5              ; 3d Lk Up Routine
RBob.
Ok. That would make sense. I could not see the code that flipped at 2400 at there is a bunch of code that uses RPM/12.5 or RPM/25.

I'm reading ARAP_HAC as my source. Not sure what in it has been modified. CE96 in my code is RPM/25.

Do you have original ARAP source code?

Mark.
Old 02-19-2018, 12:45 PM
  #4  
Moderator

iTrader: (1)
 
RBob's Avatar
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 18,401
Likes: 0
Received 215 Likes on 201 Posts
Car: check
Engine: check
Transmission: check
Re: $6E ARAP - Extra Spark Table

I'm using the released ARAP hac, probably the same one you are looking at. As I go through the code I correct any comments that are incorrect. Here is where the ranged RPM variable is created:

Code:
CD59:            CMPA    #96               	; 2400 RPM
CD5B:            BLS     LCD66
CD5D:            ADDD    #16512
CD60:            BCC     LCD6D              ; IF IN HI RANGE RPM/25 
                                                             
CD62:            LDAA    #255				; 
CD64:            BRA     LCD6D
                                                             
CD66:  LCD66     ASLD                      	; x2, (RPM.12.5)
CD67:            SUBD    #8064
CD6A:            BCC     LCD6D
CD6C:            CLRA                     	; Else clear RPM   

CD6D:  LCD6D     STAA    L0058             ; RPM/12.5 & RPM/25
RBob.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Fred SS
DIY PROM
2
12-04-2015 12:14 AM
ZaphodB
DIY PROM
17
07-15-2001 01:19 PM
Glen
DIY PROM
2
04-20-2001 03:08 PM



Quick Reply: $6E ARAP - Extra Spark Table



All times are GMT -5. The time now is 02:52 PM.