; Ford EDIS module variables adv_rpm_tbl ds 16 ign_delay ds 1 ; number of timer ints to delay rpm_tbl_bins equ 15 ; table has 15 bins, each representing 200 rpm, 3600rpm max min_rpm_tbl equ 4 ; min 400 RPM ign_pin equ 2 ; Port A pin 2 for module SAW ; equation for advance = 1536us - (25.6 * degrees advance) ; this means that you can have a max of 59 degrees advance, where the SAW is 25.6 us long ; a 0 length SAW would be 10 degrees BTDC, not 60, since this is the limp value ; resolution of software timer int is .1ms or 100us. ; this gives us a timing resolution of 3.90625 degrees -- 4 degrees ; there are 15 possible advance values, other than 10 BTDC, with 100us resolution ; ; the table below is calculated for 10 degrees base timing, if you change the base ; timing by advancing or retarding the pickup, it changes the values below. ; ;ADV CALC PW PW REAL ADV ; 10 0 0 10 ; 14 102.4us 100us 3.90625 ; 18 204.8us 200us 7.8125 ; 22 307.2us 300us 11.71875 ; 26 409.6us 400us 15.625 ; 30 512.0us 500us 19.53125 ; 34 614.4us 600us 23.4375 ; 38 716.8us 700us 27.34375 ; 42 819.2us 800us 31.25 ; 46 921.6us 900us 35.15625 ; 50 1024.0us 1000us 39.0625 ; 54 1126.4us 1100us 42.96875 ; 58 1228.8us 1200us 46.875 ; 62 1331.2us 1300us 50.78125 ; 66 1433.5us 1400us 54.6875 ; 70 1536.0us 1500us 58.59375