RE: CDI gr8flyer55
Nyemi,
So we just have to convert this assembler routine into a "C" routine and the input routine should then function correctly.
I think I may have saved some of the old routines from the old project we can try.
Jake, would it help to have the old excel file that we had used to generate the c code after making the curve from the previous project, or have you already obtained a copy? It would probably have to be edited since the c code is using the data collected in a slightly different sequence but may be helpful. Nyemi had suggested the original routine when we had the problem before.
As for the numbers in the curve looking odd and being too large, the spreadsheet generated numbers do come out right if I do a flat curve. I didn't edit anything else that I can remember, just the curve. I started at 0 rpm and 0 degrees of advance if that is of importance. Just trying the curve in a compiled hex file showed no bad reactions during the running of the engine, so it must not be affecting the timer output to the ignition. Either way, it was a test run which gave us an idea of how it worked so far. A little tweaking here and there should have the code working as expected. It's come a long way in a very short time, there are bound to be some setbacks to overcome.
John