Pages: 1 [2]
Author Topic: Knock warning  (Read 15268 times)
TijnCU
Hero Member
*****

Karma: +60/-4
Offline Offline

Posts: 690


flying brick


« Reply #15 on: January 20, 2017, 03:52:28 PM »

Wkrma threshold is a variable that you need to make. It will not be in your stock bin. For example the value 3. Then compare wkrma (ram) to this adress (flash) and if wkrma is higher than the variable, you trigger b_mil (bset b_mil). Dont forget to tell the ecu to stop the light when the threshold is not (or no longer) met (bclr b_mil). It can be usefull to study other peoples work, but you still need to understand how the processor works before you can write stuff like this...
Logged

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.011 seconds with 16 queries. (Pretty URLs adds 0s, 0q)