DIY PROMDo 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!
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.
__________________ 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 )
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.
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 )
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.
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 )
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.
;---------------------------------------------
; 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 )
;---------------------------------------------
; 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.
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
__________________ 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 )
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 )
__________________ 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 )
__________________ 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 )
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 )
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 )
__________________ 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 )
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 )
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 )
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 )