Go Back   Third Generation F-Body Message Boards > Tech Boards > DIY PROM
Sign in using an external account
Register Forgot Password?

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

Welcome to ThirdGen.org!
Welcome to ThirdGen.org.

You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, join the ThirdGen.org community today!


Reply
 
Thread Tools Search this Thread
Old 12-06-2009, 11:29 PM   #1
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Help With my First Patch

Here's a bit of code I've written to make a hp calculation formula I'm using in tunerpro a little more useful. This saves the current mph for app. 1 sec then outputs it to the datastream. Look functional? Now I have no idea where to insert this snippet, and I need an idea of how to send this to the datastream inplace of the engine run time. Can I hand it off to the subroutine at LFC89 and change how the engine run time gets it's data? I'm using the ARAPWB patch. At some point I think someone needs to go through and clean up $6E to clear out some room for new code. I'm learning... slowly. Maybe that'll be my project at some point.
Attached Files
File Type: txt HP calc patch.txt (647 Bytes, 25 views)
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )

Last edited by bl85c; 12-06-2009 at 11:54 PM.
bl85c is offline vBGarage Page   Reply With Quote
Old 12-09-2009, 09:45 PM   #2
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

bump
bl85c is offline vBGarage Page   Reply With Quote
Old 12-10-2009, 08:47 AM   #3
Moderator
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 11,375
Car: check
Engine: check
Transmission: check

Classifieds Rating: (1)
Re: Help With my First Patch

I'm not sure why you need to output the MPH each second to the data stream. The vehicle speed is already in the stream. Just use the engine run time counter at the PC end to know when to do the HP calculation. That too is in the data stream.

Should be able to get 11 frames of data a second from the ECM. This is at 8192 baud.

The easiest way to get more room in a BIN is to remove the factory test code. It is never used once the ECM is in a vehicle.

RBob.
__________________

www.DynamicEFI.com

'92 Camaro in Dark Green Gray Metallic
RBob is offline vBGarage Page   Reply With Quote
Old 12-10-2009, 12:38 PM   #4
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

At the pc end? You mean with excel or something? I want to see the value in tunerpro. Engine run time doesn't display correctly with the ARAPWB patch so I need to use the 1 sec flag.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 12-10-2009, 08:03 PM   #5
Moderator
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 11,375
Car: check
Engine: check
Transmission: check

Classifieds Rating: (1)
Re: Help With my First Patch

Quote:
Originally Posted by bl85c View Post
At the pc end? You mean with excel or something? I want to see the value in tunerpro. Engine run time doesn't display correctly with the ARAPWB patch so I need to use the 1 sec flag.
The PC end is where to put the tough code. Why would the WB patch upset the engine run time variable? It shouldn't. Since it does fix that first. Then use whatever data analysis tool to extract the MPH gain over time for the HP calc.

RBob.
RBob is offline vBGarage Page   Reply With Quote
Old 12-10-2009, 10:14 PM   #6
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

I'm barely familiar with motorola's code, much less writing stuff for tunerpro, LOL. How would I hold the MPH in memory with tunerpro? I'm going to contact the guy that made the ARAPWB patch so I can get info on his patch, then start fresh with a clean ARAP with mode 2 & some other stuff cut out.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 12-11-2009, 09:07 AM   #7
Moderator
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 11,375
Car: check
Engine: check
Transmission: check

Classifieds Rating: (1)
Re: Help With my First Patch

OK, i have a better idea of what you want to do. The way to do this is to find two free bytes of RAM. Then place the address of each of these bytes in the ALDL stream data look up table. This table defines what data is sent via the ALDL stream. Can replace some thing that is rarely used, such as the rich/lean counter and cooling fan PWM.

In the IRQ1 routine there is a 1-second section of logic. This code can be found in there:

Code:
CB1E:            LDX     L0019             ; ENG RUN TIME (sec) 
CB20:            INX     
CB21:            STX     L0019             ; ENG RUN TIME (sec)
In this code location you want to shift the 'current' MPH byte to the 'old' MPH byte. Then save the current MPH reading in the 'current' MPH byte. Basically you are shifting the current to the 1-second old and saving the new current MPH reading.

This way TP will have both the 1-second old MPH reading and the current MPH reading. Each being updated once a second.

Like this:

Code:
LDAA	CurrentMph	; get the current MPH, now 1-second old
STAA	OldMph		; and save
LDAA	L0066		; get current mph/1
STAA	CurrentMph	; and save
The OldMph and CurrentMph are RAM locations that are used to store the data. Those are the locations that are placed into the ALDL stream table.

RBob.
RBob is offline vBGarage Page   Reply With Quote
Old 12-12-2009, 12:04 AM   #8
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Here's what was done to run time with ARAPWB.

CB1A: LDAA #$00
CB1C: JSR LF2F7
CB1F: STAA $0170
CB22: NOP
;---------------------------------------------

;---------------------------------------------
; If no Comm >= 5 Sec Force mode 0
; (TM'R VAL AT C70B)
;---------------------------------------------
CB23: LCB23 LDAA L0166 ; SERIAL DATA TIME TO FORCE MD 0
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 12-12-2009, 09:23 AM   #9
Moderator
 
Join Date: Mar 2002
Location: Chasing Electrons
Posts: 11,375
Car: check
Engine: check
Transmission: check

Classifieds Rating: (1)
Re: Help With my First Patch

Quote:
Originally Posted by bl85c View Post
Here's what was done to run time with ARAPWB.

CB1A: LDAA #$00
CB1C: JSR LF2F7
CB1F: STAA $0170
CB22: NOP
;---------------------------------------------

;---------------------------------------------
; If no Comm >= 5 Sec Force mode 0
; (TM'R VAL AT C70B)
;---------------------------------------------
CB23: LCB23 LDAA L0166 ; SERIAL DATA TIME TO FORCE MD 0
Yes, that will certainly wipe out the engine run time counter. Along with only doing a WB conversion once a second.

RBob.
RBob is offline vBGarage Page   Reply With Quote
Old 12-13-2009, 05:42 PM   #10
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

It updates fairly quickly in the datalogs. I think he moved it to where the p.s. stuff was and didn't change the run time code back for some reason. If that's the case it can still be made to work. Is there a way lag the 2nd speed sample a sec behind rather than just outputting it once a second? Real time calc's would be nice... can it even hold on to a full sec of data without overrunning the memory with junk? Here's what was done to the p.s. section.

****FROM****

ldaa *L0066
cmpa LC576
bhi LCB7E
ldaa *L002F
coma
anda #0x08
oraa *L0038
staa *L0038

****TO******
ldaa *L0066
cmpa LC576
nop
nop
ldaa #0x00
jsr LF2F7
staa 0x0170
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )

Last edited by bl85c; 12-13-2009 at 06:11 PM.
bl85c is offline vBGarage Page   Reply With Quote
Old 12-15-2009, 03:06 PM   #11
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Well 400z28racer's not responding. So back to my other question, can I do this real time without overloading the memory?
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 12-20-2009, 02:28 PM   #12
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Bumpity bump.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 12-25-2009, 12:19 PM   #13
Senior Member
 
400Z28Racer's Avatar
 
Join Date: Jul 2002
Location: United States of America
Posts: 1,271
Car: 85 IROC-Z
Engine: 406
Transmission: T56
Axle/Gears: 9" 411

Classifieds Rating: (4)
Re: Help With my First Patch

I am sorry, I've been busy writing VHDL code for the past 6 months. I'll be able to help you in the next few days.

Merry Christmas
__________________
I smoke Hooka
1985 IROC-Z 406 Super Ram.
30lbs SVT injectors, and now running 165 ECM.
T56 transmission, 4.56 9" Ford rear end, Hotchicks sub-frame connector.
1990 IROC-Z Convertible 383TPI (in progress)
2002 F350 7.3 PowerStroke 350 HP 650 ft/lb

Last edited by 400Z28Racer; 12-25-2009 at 12:37 PM.
400Z28Racer is offline vBGarage Page   Reply With Quote
Old 12-26-2009, 09:15 PM   #14
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Sweet. Happy New Year too.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 01-31-2010, 07:05 PM   #15
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Ok time to bring this back from the dead. I went another direction and used another formula to get VE then esimated power from that. All I need help with now is getting the mat to work properly on your wb patch.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )

Last edited by bl85c; 02-05-2010 at 10:35 PM.
bl85c is offline vBGarage Page   Reply With Quote
Old 02-01-2010, 03:27 PM   #16
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Here's the formulas I'm working with. I'm obviously missing something because hp and torq are waaay off. VE looks accurate enough.

VE-
((X * .1323) / (491.67 / (459.67 + A) * .0808)) / ((B * R * 1) / 3456) * 100
Where A is MAT, B is engine displacement, R is RPM and X is MAF.

HP-
(A * C * (X * .01) * B * R) / 792001.6
Where A is atmospheric pressure, B is engine dispalcement, C is static compression ratio, R is RPM and X is VE.

Torq-
5252 * X / R
Where R is RPM and X is HP.

Edit- corrected formulas.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )

Last edited by bl85c; 02-07-2010 at 08:21 PM.
bl85c is offline vBGarage Page   Reply With Quote
Old 02-05-2010, 10:34 PM   #17
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Any takers?
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 02-06-2010, 08:24 PM   #18
Supreme Member
 
JP86SS's Avatar
 
Join Date: Apr 2004
Location: Browns Town
Posts: 2,932
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller
Transmission: 700R4 HomeBrew, 3.8K stall 3 diskLU
Axle/Gears: 3:73 Posi, 7.5 Soon to break

Classifieds Rating: (0)
Re: Help With my First Patch

I was just wndering if "C" should be Dynamic Comp instead of Static.
JP86SS is offline vBGarage Page   Reply With Quote
Old 02-07-2010, 03:25 PM   #19
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

That doesn't help, probably because the formula assumes 100% ve and adjusts based on actual. Unless my car's suddenly making 1600hp I didn't know about! I did find out that LV8 and VE are essentially the same thing though after comparing the 2 in my datalogs, all that's needed is to change it to % rather than 0-255. So that simplifies things a little, no need for the mat or a separate ve calculation. These calculations seem to work out perfect on paper but gets goofed up in tunerpro somehow...
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )

Last edited by bl85c; 02-07-2010 at 08:24 PM.
bl85c is offline vBGarage Page   Reply With Quote
Old 02-07-2010, 07:52 PM   #20
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Found it. Devil's in the decimal. Here's the correct hp formula. (A * C * (X * .01) * B * R) / 792001.6

It's alive!!!
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )

Last edited by bl85c; 02-07-2010 at 07:56 PM.
bl85c is offline vBGarage Page   Reply With Quote
Old 02-11-2010, 07:55 PM   #21
Senior Member
 
bl85c's Avatar
 
Join Date: May 2007
Location: right behind you
Posts: 2,281
Car: '85 maro
Engine: Hybrid 3.4
Transmission: TH700 R4
Axle/Gears: 3.73 posi

Classifieds Rating: (0)
Re: Help With my First Patch

Looks like this is still estimating a little low. Other problem is it can't be used for forced induction using LV8 as VE. I need to figure out how to get the mat reading correctly again.
__________________
Increasingly I find the difference between a 'fact' and opinion is the number of people that believe it.

3.4 block converted to roller valvetrain with 220/225 cam on 115 lsa, early '769' heads with 3500 valves, LS6 springs & mild porting, worked over heddman headers, 3500 plenum with ported 3400 lower & 'short star' 65mm throttle. 210hp at 5800ft (that's 270hp at sealevel )
bl85c is offline vBGarage Page   Reply With Quote
Old 02-11-2010, 07:55 PM
ThirdGen
1992 Camaro




Paid Advertisement


Reply

Go Back   Third Generation F-Body Message Boards > Tech Boards > DIY PROM
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

 


1982 Camaro '82 || 1983 Camaro '83 || 1984 Camaro '84 || 1985 Camaro '85 || 1986 Camaro '86 || 1987 Camaro '87 || 1988 Camaro '88 || 1989 Camaro '89 || 1990 Camaro '90 || 1991 Camaro '91 || 1992 Camaro '92


All times are GMT -5. The time now is 10:25 AM.


Powered by vBulletin® Version 3.7.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
All content copyright © 1997 - 2012 ThirdGen.org. All rights reserved. No part of this website may be reproduced without the expressed, documented, and written consent of ThirdGen.org's Administrators.

Emails & Contact Details