I have been doing development on a robostix (which is basically an atmega 128 with pinouts), and I have been programming to it using the STK500. I am relatively new to developing on AVRs.
I was developing with it fine and then all of sudden it appears as if something with the clock got messed up. Any program that I try to load onto it now doesn't always do what it's supposed to do. For example, I had a test program which would turn three LEDs on and off for half a second in an infinite loop. Sometimes it will execute the program correctly, other times it will only turn on some of the LEDs, and sometimes it will turn them all on, like it's supposed to, but now it's going much slower than it should (i.e. instead of a half second delay, it will be a several second delay).
I'm not sure if I somehow messed up one of the settings on the chip, and I would like to see if there was a way to set everything back to factory default.
I appreciate any advice or help anyone has to offer.