I am using an atmega16L and i am a beginner to all this.. I have use it for line tacking colour detection and running some motors. I have 2 questions:
1) can i overclock my atmega 16L (default max. frequency 8MHz) to 16MHz??? what damage it might cause??? Coz time required by device is crucial in my application and i cant use another mcu….
2) I have to generate PWM at 2kHz. But Prescalers are such that i can only get 0.5kHz or 4kHz for my motors at the xtal frequency. Can i use the internal clock for PWM only and make the rest of the program run at the XTAL frequency?

ThankYou