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

Knock Counts and Knock Retard Degrees – AUJP $8d

Thread Tools
 
Search this Thread
 
Old 01-15-2013 | 01:03 PM
  #1  
84Elky's Avatar
Thread Starter
Senior Member
 
Joined: Jun 2010
Posts: 577
Likes: 29
From: Montgomery, AL
Car: 84 El Camino
Engine: 360 TPI
Transmission: 700R4
Axle/Gears: 3.42 + Truetrac, Moser 28 Spline
Knock Counts and Knock Retard Degrees – AUJP $8d

DOCUMENT VERSIONS:


Posts will be made here anytime the document is updated:
  • Version 5 - December 21, 2013
    • Correctlystated the conversion requirements of the kPa argument that can be used to disablethe Low Octane logic. Previously, the text indicated that no conversion wasrequired.
  • Version 4 - July 29, 2013
    • Updated due to broken/changed link to the AUJP hack.
  • Version 3 - May 30, 2013
    • Code execution frequency changes and updated code segments with additional comments. See "Corrections" section of the document for details.
  • Version 2 - Jan 27, 2013
    • Corrected execution time of code segments of Subroutine LSEG_A
  • Version 1 - Jan 19, 2012
    • Corrected Spark Minor Loop Execution time per RBob. See Post #3 below
  • Initial Release - Jan 10, 2013
==================================


150+ hours and done, hopefully! Would have been faster if better with Assembly language.

The analysis of this subject was started due to a desire to understand why logs were periodically reporting Knock Retard Degrees when Knock Counts were not being reported. That analysis has been completed and resolved, and is posted here: https://www.thirdgen.org/forums/di...-reported.html (Solved-Knock Retard Reported When No Knock Count).

While reviewing that issue, it became obvious there was more than one area of the code that had to be analyzed to fully understand everything to do with Knock Counts and Knock Retard Degrees. Wow! There is a Power Enrich (Forced) Knock Test, Low Octane Spark Retard logic, different types of spark retardation, Knock Counts, minimum degrees of spark retard, decay of spark retard degrees, hundreds of bit-flags to control things, variables that are saved and never used, …. To say that the logic associated with this subject is convoluted and confusing is an understatement! I can’t imagine the difficulty in initially programming it. It causes a severe brain cramp just tracing through it.

Everything documented from this review has been checked many times to ensure accuracy. However, due to the intertwining of so many things, errors are certainly possible! A critical review and comments as to accuracy are welcomed. Changes will be promptly made and posted.

Without the comments in JP’s AUJP hack, it would have been impossible to accomplish this. Thanks JP for those comments, and to any others who may have contributed!!!


Hopefully the attached will add to the AUJP work already done. It includes:
  • a summary of the Spark logic flow of the code
  • a detailed discussion of each involved code segment as to what it does, etc.
  • a time-line showing when each code segment is executed
  • flowcharts of the relevant code segments
  • results of simulating code segments
PS – The file with flowcharts was way too large to upload here and was disallowed. A link to the version with flowcharts is provided on the first page of the document.

Last edited by 84Elky; 12-21-2013 at 02:09 PM. Reason: Correction Low Octane Logic kPa Conversion Formula
Old 01-17-2013 | 11:39 AM
  #2  
JP86SS's Avatar
Supreme Member
iTrader: (1)
 
Joined: Apr 2004
Posts: 3,178
Likes: 3
From: Browns Town
Car: 86 Monte SS (730,$8D,G3,AP,4K,S_V4)
Engine: 406 Hyd Roller 236/242
Transmission: 700R4 HomeBrew, 2.4K stall
Axle/Gears: 3:73 Posi, 7.5 Soon to break
Re: Knock Counts and Knock Retard Degrees – AUJP $8d

Super-Dee-Duper Job on that!
This will certainly help me figure out the Launch Retard function in the V4 code that didn't work right. Still don't know what I did wrong.

Someone has really caught the tuning bug!
Glad to see there are still people willing to figure things out and share.
Old 01-17-2013 | 11:57 AM
  #3  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 227
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Re: Knock Counts and Knock Retard Degrees – AUJP $8d

84Elky, I looked it over, didn't study it, one thing I noticed is the spark minor loop timing. It runs at 80 Hz (every 12.5 msec).

RBob.
Old 01-17-2013 | 09:36 PM
  #4  
EagleMark's Avatar
Supreme Member
 
Joined: Oct 2002
Posts: 1,096
Likes: 0
From: Idaho
Re: Knock Counts and Knock Retard Degrees – AUJP $8d

Wow! Nice work!
Old 01-21-2013 | 10:31 AM
  #5  
84Elky's Avatar
Thread Starter
Senior Member
 
Joined: Jun 2010
Posts: 577
Likes: 29
From: Montgomery, AL
Car: 84 El Camino
Engine: 360 TPI
Transmission: 700R4
Axle/Gears: 3.42 + Truetrac, Moser 28 Spline
Re: Knock Counts and Knock Retard Degrees – AUJP $8d

Duplicate post

Last edited by 84Elky; 01-21-2013 at 10:48 AM.
Old 01-21-2013 | 10:47 AM
  #6  
84Elky's Avatar
Thread Starter
Senior Member
 
Joined: Jun 2010
Posts: 577
Likes: 29
From: Montgomery, AL
Car: 84 El Camino
Engine: 360 TPI
Transmission: 700R4
Axle/Gears: 3.42 + Truetrac, Moser 28 Spline
Re: Knock Counts and Knock Retard Degrees – AUJP $8d

Originally Posted by RBob
84Elky, I looked it over, didn't study it, one thing I noticed is the spark minor loop timing. It runs at 80 Hz (every 12.5 msec).

RBob.
Absolutely correct RBob. Don't know where that came from. It's correctly shown on the Code Execution time-line on page 8 as 12.5 msec (80 times/sec).

Thanks and look forward to any other observations.

Last edited by 84Elky; 01-24-2013 at 11:11 AM.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
RedLeader289
Tech / General Engine
10
05-28-2019 01:47 PM
Cam-aro
Camaros Wanted
2
11-12-2015 03:35 PM
bigjay89gta
Engine/Drivetrain/Suspension Parts for Sale
12
10-15-2015 08:04 AM
oil pan 4
Fabrication
2
10-06-2015 11:56 AM
efiguy
Engine/Drivetrain/Suspension Parts for Sale
0
09-27-2015 01:30 PM



Quick Reply: Knock Counts and Knock Retard Degrees – AUJP $8d



All times are GMT -5. The time now is 03:08 AM.