I'm trying to make a stand alone Arduino to use in a project, however I bought the wrong kind of crystal, so I'm looking into setting the fuses so I can still use the crystal I bought instead of buying a new one, with shipping I'm looking at around 5 bucks for a new crystal, vs. free if I can set the fuses correctly. I'm also looking at this as a learning experience, so don't just tell me to take the easy way out. I thought about just using the internal clock, but it's dependent on the timing.
I'm using an ATMEGA328P-PU microcontroller without the Arduino Bootloader (datasheet), and the crystal I bought is a 16 MHz clock oscillator(datasheet). This guy bought a very similar oscillator from the same manufacturer, looking at the data sheet the pins are the same, so I'm assuming I can wire it in the method the second guy describes, please correct me if I'm wrong.
So now I've been reading up on how to set the fuses and found this calculator, but I'm a little confused as to which item I should select in the list. The options I've narrowed it down to are External Clock, External Low Frequency Crystal, External Full Swing Crystal and External Crystal Oscillator. None of these say External Clock Oscillator, so I wanted a second opinion from someone experienced. I'm assuming its either the External Clock or External Crystal Oscillator Frequency 8.0- MHz. The tutorials I've read say to use the longest start up time, so that's the +65ms option, but I'm also confused as to what the 258 CK/14 CK, 1K CK/14 CK, and 16K CK/14 CK options mean, can someone explain this to me?
I was planning on following the instructions here to change the fuses, he uses .1uF decoupling capacitors, the closest value I have on hand are 1uF, will I be okay in using these? I'm also assuming I'm going to have to modify his code slightly, as it's set for either a Lilypad 8MHz bootloader, or Uno 16MHz bootloader. I just find the hex values in the code and change them to what I get from the calculator above, correct? After looking through the code, maybe there is a better way to do manually program the fuses, maybe something like this?
Now I've got a new problem I've just noticed. I had originally planned to bootload my new microcontroller using my Arduino Uno R3, and then swap out the microcontroller with the one in my Uno to upload the project sketch, then swap them out again to put into my project. However, if I'm going to change the fuses, my new microcontroller isn't gong to work if I put it in the Arduino. Can I follow these instructions and program the sketch while the new controller is still using it's internal clock, and then change the fuses? That set of instructions says you can't use an Arudino Uno, does anyone know why? What about changing the fuse, then using these instructions to upload the sketch?
Thanks,