Hallo, ich möchte mein Board um eine USB Schnittstelle erweitern. Ich benutze derzeit einen atxmega128a4u mit 128MHz PLL und 32MHZ CPU Takt. USB benötigt laut Datenblatt 12 oder 48MHz. Da die PLL und externer Quarz bereitsbelegt sind, muss ich die irgendwie anders generieren. Das Datenblatt sagt, man kann die USB Clock über den internen 32MHz Oszillator und der DFLL mit USB Start of frame Einstellung benutzen. Nach meinem Verständnis klingt das so, als ob die DFLL den 32MHz Oszillator mit dem externen USB Takt abgleicht. Verstehe ich das so richtig? Das Datenblatt sagt dazu: The 32MHz internal oscillator must be calibrated to 48MHz before selecting this as source for the USB device module. Refer to “DFLL 2MHz and DFLL 32MHz” on page 87. Seite 87: Two built-in digital frequency locked loops (DFLLs) can be used to improve the accuracy of the 2MHz and 32MHz internal oscillators. The DFLL compares the oscillator frequency with a more accurate reference clock to do automatic run-time calibration of the oscillator and compensate for temperature and voltage drift. The choices for the reference clock sources are: - 32.768kHz calibrated internal oscillator - 32.768kHz crystal oscillator connected to the TOSC pins - External clock - USB start of frame
Nils H. schrieb: > Das Datenblatt sagt, man kann die USB Clock über den internen 32MHz > Oszillator und der DFLL mit USB Start of frame Einstellung benutzen. > > Nach meinem Verständnis klingt das so, als ob die DFLL den 32MHz > Oszillator mit dem externen USB Takt abgleicht. Im Code zum Beitrag "CDC für xmega" macht das der Autor genau so, wie Du oben beschrieben hast (main.c). Grüßle, Volker.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.