RCU Forums - View Single Post - CDI gr8flyer55
View Single Post
Old 09-22-2012 | 02:38 AM
  #355  
jakestew
Senior Member
 
Joined: Aug 2011
Posts: 144
Likes: 0
Received 0 Likes on 0 Posts
From: Moscow, ID
Default RE: CDI gr8flyer55

Major Release!!!

I just released version 0.95 beta 5 on the website!

New features...
-Two tables!
-Switching to table 2 via grounding GP5 (Pin #2)
-New spreadsheet! Controls all user settings and contains/generates the code.
-Kill switch. Grounding GP4 (Pin #3) turns off output and disables interrupts.
-Added check in ISR to make sure GP2 has really been driven low. May prevent some high frequency noise problems.
-Added 500ms startup delay to avoid bogus interrupts while the circuit powers up.
-Added reverse calculation check and control point info on advance curve chart.
-Turned on internal weak pull-up on GP2, may help avoid noise problems.

As always, this code is pretty much untested, except for quick runs in the simulator. Run at your own risk.


I reworked the spreadsheet quite a bit. I added macro buttons to easily copy the code, user settings, and tables to the clipboard. If you don't trust running macros in the spreadsheet you should only loose the button copy capability. There's now two curves to play with. Each curve now has more points to control AND you can move the points anywhere you want. I highly suggest not criss-crossing them though, as I haven't tried this and think it could cause problems. I've also added dots at the top and bottom showing where the actual table value control points are. I also added a back-calculated line based on converting the table values back into RPM and delay, this is the red line with little red X's. You can use this to see the maximum advance at any RPM and check your table numbers.

Only change the values in green! I haven't protected anything yet, so if you edit a wrong value and get bunk numbers then just start over. The yellow sections in the code page are just for reference, do not edit the code in the spreadsheet.