Changing Clock Speeds
Posted: Sat Nov 07, 2009 10:31 am
So this is probably a dumb question, but is there something more you have to do to use a different clock speed than just redefine the F_CPU and USB_CFG_CLOCK_KHZ values to reflect your new clock speed?
I've been working on a project with a 16mHz external clock chip. I'm trying to make more of them, but all I have is 20mHz clock chips. My code works just fine with the 16mHz chips. However, when I plug in a 20mHz clock, make clean, modify the F_CPU and CLOCK_KHZ values in usb-config.h, and recompile, the device is no longer recognized by Windows. Is there something else I have to change, or should I just order some more 16mHz chips? I'm currently running on an ATMega168 at 5v, with 3.6v zener diodes dropping the USB line voltage.
Thanks,
Alan Chatham
I've been working on a project with a 16mHz external clock chip. I'm trying to make more of them, but all I have is 20mHz clock chips. My code works just fine with the 16mHz chips. However, when I plug in a 20mHz clock, make clean, modify the F_CPU and CLOCK_KHZ values in usb-config.h, and recompile, the device is no longer recognized by Windows. Is there something else I have to change, or should I just order some more 16mHz chips? I'm currently running on an ATMega168 at 5v, with 3.6v zener diodes dropping the USB line voltage.
Thanks,
Alan Chatham