Search results

  1. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    below is the flow diagram for the test code in the 16F506 uC . plus sketches of the circuit and output signals. the next step is testing it against the code in the 12F508 uC . so cross your fingers that goes well. i'm ready for this project to be done with.
  2. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    ... some thoughts about the fotos yesterday and a little math ...3F = 200 uS delay and FF = 800uS delay and FF / 3F = 4 and 800 / 200 = 4 , roughly ... as a little confirmation that the delays are linear with the pot-ADRES-led count. also ... about trying to buy a good...
  3. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    all leds are lit . thus ADRES = FF or 255 decimal. the time base is 200uS / div so the time between edges is about 800 uS. 800 / 255 = 3+ uS per ADRES unit
  4. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    here the leds show 3F and with the timebase at 50uS you can see about 200uS between the TE of CH 1 and LE of CH 2 pulses. 3F is 63 decimal and 200/63 is 3+ uS per ADRES unit
  5. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    hi guys , some good news to report. the 71 and 10 pulses that exit the '506 now do so with a variable time between them. rotating the pot changes this time. the 2 fotos show a 3F ADRES and FF ADRES time setting. the time delay subroutine is between 3 and 4 uS per unit of ADRES for now...
  6. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    on re-reading the above post one more problem was found. those of you following this development closely have caught it too. i'll write of it soon. here's a clue ... above is written the two 8-led hex numbers may agree or differ by one. there's something else could have them differ ...
  7. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    today code is being worked on to complete the test-signal uC effort. you saw a preview of this with the above mar 28 scope foto. that delay code was jury-rigged to make a 200uS delay between the 71 and 9 pulses. the actual test signal code will use a subroutine that takes 32uS to run...
  8. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    the 2 scans of code pages put here on monday are not here today ... ??? so they are being re-uploaded
  9. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    as indicated on the last posting code to light up the bit 6 and bit 7 of ADRES was being worked on. its done . and now all 8 bits of the ADC result in register ADRES are visible via external leds on the 16F506. so why is this a big deal ? 1. first it shows how an internal register or...
  10. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    the coding is tricky to get those last 2 MSB of ADRES to the B4 and B5 pins. the instructions RRF and RLF do not connect directly to any of the port B pins. a note too about this uC having ADC and comparator modules. neither one calls for any new instructions. there are still just 33...
  11. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    the coding of a 2'd uC to provide test signals is moving along well. the foto image is of the 2 pulses coming out of a 16F506 to the 1054 scope i had to change to this uC as it offers 8-bit ADC ability. and is covered in lesson 10 of the Gooligum baseline series of tutorials here the scope...
  12. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    march 23 progress report. along the way since the last posting an idea was come across. having to do with when things are not what you were working to create. in short it means that when the results wanted are not turning up a better way to look at the matter is needed. and...
  13. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    a reminder ... for any comments or questions please contact me via e-mail instead of this forum. [email protected] messages that will add to this effort and move it along will be mentioned note - to clear something up . the code above uses the MPASM language format of 'GPIO,1'...
  14. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    look close and see that the 2 delay subroutines are identical except for the literal value in line 31 of .7 becomes .40 in line 39 the stopwatch tool was used to find the best choice of literal for a one loop delay of 125 uS the variable names and label names had to be different too...
  15. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    the next step is to do the math and code for actual delay times that occur in one of the RPM ranges the code is testing for. then apply these test signals to the ignition uC and see what the scope shows is the delay to fire time. getting that right is the whole purpose of the ignition code
  16. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    lines 27 and 28 generate the 3120 uS delay between the trailing edge of the -9 deg pulse and the lead edge of the next -71 pulse the code in this example has the 125uS delay code subroutinne repeat 25 times 25 x 125 = 3125 and the measured value of 3120 is good this delay time also...
  17. bob weir

    Digital programmable CDI ignition for 2-stroke engines

    see BX-AX = 1.240 ms in the text box of the upper left of the screen lines 21 and 22 generate the 1240 uS delay seen between the trailing edge of the -71 deg pulse and the leading edge of the following -9 deg pulse. the code has the 125uS delay code repeat 10 times. 10 x 125 = 1250...
Top