ORIGINAL: jakestew
<u>
Step by step, how to get started... </u>
I've tried to make things as easy as possible, but it still takes a little doing to get your own custom CDI firmware up and running. Unfortunately, I don't have any compiled versions that I actually know to work, so if you work out a good curve and settings please post it here or send it to me at my email. Hopefully we can get prefab versions ready for the common engines out there.
#1. Go to
http://www.microchip.com/pagehandler...abx/#downloads
#2. Download the ''MPLAB X IDE'' and ''MPLAB XC8 Compiler'' for your operating system.
#3. Install the IDE and compiler. Default settings should be fine.
#4. Open the IDE and...
-Select File->New Project
-Choose ''Standalone Project'', click next.
-Select Family -> Mid-Range 8-bit MCUs (PIC12/16/MCP)
You have to change this line into the right PIC-type: PIC12F683
-Select Device -> PIC12F675 Click next.
-Debug header does not matter, I usually select the one you can choose, now click next.
-Select ''Simulator'' under hardware tools, or choose the programming device you use. Click next.
-Select ''XC8'' under XC8, click next.
-Choose a project name and location. I usually use a more convienient location than the default. You might use ''12F683_v0.9b'' for the name.
-Check ''Set as main project'' and click next.
-Copy the source file ''12F683_v0.9b.c'' into your project directory.
-On the left hand side of the MPLAB X IDE screen right-click on ''Source Files'' under your project name and select ''Add Existing Item''.
-Select the source file ''12F683_v0.9b.c'' and hit OK.
-Double click the 12F683_v0.9b.c source file that now shows up. This should bring up the source code.
-Select Run -> Build Main Project, from the menu. Source should compile with no errors.
-Congrats! You just compiled the code! You know things are working, so any new errors are your own doing.
-Now edit the source file, adding your custom table and the settings you want.
-Use the included spreadsheet to make your advance table and help figure out the settings.
-Build the project again and the .hex file should be in [Project Directory]\dist\default\production
-Now you can program the .hex file into your processor via whatever method you prefer.
I realize this is a lot of downloading and hassle if you're not into this sort of thing, so I'm happy to compile for people if you email me exactly what you want compiled. You can edit the source with just a text editor and send it to me and I'll do the work for you.
-Jake<br type=''_moz'' />