redrkt
20+ Year Contributor
- 115
- 15
- Apr 21, 2003
-
kalamazoo,
Michigan
Not sure how many people are still playing with the stock code, but I noticed that the deadtime table address when loaded by code is FC E5. The actual deadtime table starts at FCE7 however. I have logged it to verify it is working correctly but i dont understand the offset. I dont believe i've seen any of the other tables offset like this. Below is the code snippet where the table is loaded.
3796 D9DA ;----------------------------
3797 D9DA ; Compute injector deadTime
3798 D9DA ;----------------------------
3799 D9DA CE FC E5 ldx #t_deadtime-2
3800 D9DD 96 D0 ldaa battRaw
3801 D9DF BD EB 4C jsr interp32
3802 D9E2 D7 A6 stab deadTime
Below is the table address:
13491 FCE7 ;******************************************************************
13492 FCE7 ;
13493 FCE7 ;
13494 FCE7 ; Injector deatime as a function of battery voltage
13495 FCE7 ;
13496 FCE7 ; Each unit correspond to 24us ($08 = 192us)
13497 FCE7 ;
13498 FCE7 ;
13499 FCE7 ; Volts: 4.7, 7.0, 9.4, 11.7, 14.1, 16.4, 18.8
13500 FCE7 ;
13501 FCE7 ;******************************************************************
13502 FCE7 t_deadtime
13510 FCE7 #ifdef E931
13511 FCE7 A9 58 30 23 .byte $a9, $58, $30, $23, $1b, $17, $13
13511 FCEB 1B 17 13
Just trying to get a better understanding of how this works.
3796 D9DA ;----------------------------
3797 D9DA ; Compute injector deadTime
3798 D9DA ;----------------------------
3799 D9DA CE FC E5 ldx #t_deadtime-2
3800 D9DD 96 D0 ldaa battRaw
3801 D9DF BD EB 4C jsr interp32
3802 D9E2 D7 A6 stab deadTime
Below is the table address:
13491 FCE7 ;******************************************************************
13492 FCE7 ;
13493 FCE7 ;
13494 FCE7 ; Injector deatime as a function of battery voltage
13495 FCE7 ;
13496 FCE7 ; Each unit correspond to 24us ($08 = 192us)
13497 FCE7 ;
13498 FCE7 ;
13499 FCE7 ; Volts: 4.7, 7.0, 9.4, 11.7, 14.1, 16.4, 18.8
13500 FCE7 ;
13501 FCE7 ;******************************************************************
13502 FCE7 t_deadtime
13510 FCE7 #ifdef E931
13511 FCE7 A9 58 30 23 .byte $a9, $58, $30, $23, $1b, $17, $13
13511 FCEB 1B 17 13
Just trying to get a better understanding of how this works.