I'm trying to get my ATMega328 off the Arduino board and onto a breadboard. I know I need a quartz crystal (the small oval with 2 leads) between two of the pins. However, all I have is an oscillator (a large rectangle with 4 leads). Is it possible to use the oscillator as a crystal?
By "default AVR mode" do you mean the default fuse settings? Good question...officially, you're supposed to change the fuses depending on the clock source, but I'm wondering if it just might work to leave the fuses the way they are. I think it's worth an experiment. The worst that could happen is you damage the clock circuitry on the Arduino and a) it fails to work at all, or b) it will never work again using a crystal. Either way, with a DIP microcontroller that can be swapped out it's a pretty inexpensive experiment.Personally, I'd buy a $30 AVR-ISP and have something that is known to work I use my AVR-ISP so often that the $30 has paid for itself many times over.--The Flexible MIDI Shield: MIDI IN/OUT, stacking headers, your choice of I/O pins
Yes, just run the oscillator output to the XTAL1 pin and leave the XTAL2 pin unconnected. The oscillator will need +5V and GND, and a decoupling capacitor between the two will help. You will also need to use the ISP connection to reprogram the fuses to use an external oscillator instead of a crystal.--The Basic Motor Driver: simple, inexpensive motor driver for 1 stepper motor or 2 DC motors
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16