??? 12/02/08 13:37 Read: times |
#160498 - Change for 12MHz crystal Responding to: ???'s previous message |
Hi Michael,
I agree with you, Atmel documents say the crystal is 24MHz in everywhere, But it's weird, the source sets it to 16MHz. The attached hex file to the zip may be compiled under 24 MHz constant... ? Aviad, To make a hex for 12MHz crystal, Change the FOSC value in config.h to 12MHz (12000) and re-build the project. Atmel recently seem to give up the auto-detect of crystal freq. as the default :-) "USB - Mass Storage Software for STK-05 & STK-10" http://www.atmel.com/dyn/resou...-1_0_6.zip config.h #define FOSC 16000 usb_drv.c //! Usb_configure_clock //! //! This function configure the PLL to generate the 48MHz clock required by //! the USB controller, considering the FOSC defined in the "config.h" file. //! //! @warning Code:xx bytes (function code length) //! //! @param none //! The possible value for FOSC are : //! 3000 ( 3MHz) //! 6000 ( 6MHz) //! 8000 ( 8MHz) //! 12000 (12MHz) //! 16000 (16MHz) //! 18000 (18MHz) //! 20000 (20MHz) //! 24000 (24MHz) //! 32000 (32MHz) //! 40000 (40MHz) //! 48000 (48MHz) //! 0000 (frequency auto-dectection) //! //! @return none //! Tsuneo |
Topic | Author | Date |
USB Mass storage device on at89c5131 | 01/01/70 00:00 | |
if the unmentioned code does not | 01/01/70 00:00 | |
Mass Storage Software for STK-05/10 ? | 01/01/70 00:00 | |
mass storage device | 01/01/70 00:00 | |
USB does Require Timing Reference | 01/01/70 00:00 | |
Change for 12MHz crystal | 01/01/70 00:00 | |
its working![]() | 01/01/70 00:00 | |
usb device | 01/01/70 00:00 |