My XTAL is 8 MHZ and I use CodeVision AVR C Compiler. In the wizard I mention my clock as 8 MHZ . Regards, Ehsan Reihani