Normally I'd comb the forums for hours searching for an answer, but i've worked for hours and hours and read through lots of docs with no real success and i hoped someone would be kind (or bored) enough to help me.
After trying to move a programed atmega168 out of an arduino into a "standalone" breadboard setup (without any success), I found when i put the chip back into the arduino it didn't work. I reprogrammed it with the same program and it started working again, but it seems as though the clock is sped up or wrong.
The program I'm using is based on one of the pwm programs to make an led dim and brighten. The problem is now everything looks REALLY choppy. I think i may have hurt the internal clock, but if i'm using the arduino, shouldn't the clock on the board take over?
Also, can you use any external clock for a standalone setup, besides say the standard 16mhz crystal, you used a 25mhz crystal, would it still work? Can anyone provide any extra information about moving the atmega168 into a standalone setup? or point me to a FAQ for troubleshooting? And can you use a USB avr programmer (like the one ladyada sells) to program the bootloader into a fresh 168?