Whenever you modify a program, it's a good idea to first
save the existing program with the file name you're going to use for
the new program. Here's how to do this:
- Get the program you're going to modify into an editing window in MPLAB IDE.
- Make sure this editing window is the active window. (It's title bar should be a darker blue than that of other windows.)
- On the menu bar, click File and then Save As.
- Don't worry about the fact that you haven't made any
changes to the program. By saving the program with a new name right
away, you're less likely to save the new program on top of the old one.
The computer won't mind you saving the program again after you've made
changes to it!
- Be sure the Save In box near the top of the Save As window contains C Programs.
- In the File Name box near the bottom of the Save As window, type in the new file name you'll be using for the modified program.
- Click the Save button.
- In the S215.mcw project window, under Source Files, click the name of the old program.
- Press the Delete button on the keyboard.
- Right-click Source Files, and choose Add Files from the menu.
- Find the new program you just saved and double-click it.
- The old program will appear in an editing window, but with the new name you just gave it.
- You're now ready to modify the old program.
|