Microchip AVR64DD14 Manual


Læs gratis den danske manual til Microchip AVR64DD14 (22 sider) i kategorien Ikke kategoriseret. Denne vejledning er vurderet som hjælpsom af 19 personer og har en gennemsnitlig bedømmelse på 3.7 stjerner ud af 10 anmeldelser. Har du et spørgsmål om Microchip AVR64DD14, eller vil du spørge andre brugere om produktet?

Side 1/22
TB3234
Internal High-Frequency Oscillator Calibration Using the
Auto-Tune Feature
Introduction
Author: Ioan Pop, Microchip Technology Inc.
The purpose of this document is to provide more details on the internal high-frequency oscillator (OSCHF) auto-tune
feature of the AVR® DA MCU (AVR DA) family and how to activate it. The auto-tune feature allows OSCHF to adjust
its frequency, comparing it to an external 32.768 kHz crystal oscillator to better match the desired value.
This document describes four use cases in which the internal high-frequency oscillator will be used to drive the main
clock, each use case containing two scenarios. For the first three use cases the two scenarios are: with auto-tune
feature activated and deactivated. The purpose of the last use case is to check the auto-tune feature against an
incorrect tuning value provided by the user, therefore the two scenarios for the last use case are: incorrect tune value
setting and auto-tune enabled. The switch between the two scenarios is made using the PC7 pin (the on-board SW0
button of the AVR128DA48 Curiosity Nano board). Additionally, the main clock will be output to the CLKOUT pin
(PA7) in order to showcase the auto-tune feature improvement on the OSCHF output frequency precision. The use
cases described in this technical brief are:
Configure OSCHF to run at 1 MHz and activate/deactivate the auto-tune feature:
The purpose of this use case is to configure the OSCHF to run at 1 MHz and drive the main clock, and enable
frequency output on the CLKOUT pin. Two frequency measurements on the CLKOUT pin will be made using an
oscilloscope - with auto-tune feature activated and deactivated.
Configure OSCHF to run at 4 MHz and activate/deactivate the auto-tune feature:
The purpose of this use case is to configure the OSCHF to run at 4 MHz and drive the main clock, and enable
frequency output on the CLKOUT pin. Two frequency measurements on the CLKOUT pin will be made using an
oscilloscope - with auto-tune feature activated and deactivated.
Configure OSCHF to run at 24 MHz and activate/deactivate the auto-tune feature:
The purpose of this use case is to configure the OSCHF to run at 24 MHz and drive the main clock, and enable
frequency output on the CLKOUT pin. Two frequency measurements on the CLKOUT pin will be made using an
oscilloscope - with auto-tune feature activated and deactivated.
Configure OSCHF to run at 4 MHz with incorrect tuning value:
The purpose of this use case is to configure the OSCHF to run at 4 MHz and drive the main clock, and enable
frequency output on the CLKOUT pin. An error injection will be made to the tune register to check if the auto-
tune mechanism will be able to correct it. Two frequency measurements on the CLKOUT pin will be made using
an oscilloscope - with the incorrect frequency tune input and with auto-tune feature activated
Note:  The AVR128DA48 Curiosity Nano was used for the tests performed and described in this document.
© 2020 Microchip Technology Inc. Technical Brief DS90003234C-page 1
Table of Contents
Introduction ....................................................................................................................................................1
1. Relevant Devices.................................................................................................................................... 3
1.1. AVR® DA Family Overview.......................................................................................................... 3
2. Overview................................................................................................................................................. 4
3. Activating and Testing the Auto-Tune Feature........................................................................................ 5
4. Configure OSCHF to Run at 1 MHz and Activate/Deactivate the Auto-Tune Feature............................ 7
5. Configure OSCHF to Run at 4 MHz and Activate/Deactivate the Auto-Tune Feature.......................... 10
6. Configure OSCHF to Run at 24 MHz and Activate/Deactivate the Auto-Tune Feature........................ 12
7. Configure OSCHF to Run at 4 MHz with Incorrect Tuning Value..........................................................14
8. Conclusion............................................................................................................................................ 16
9. References............................................................................................................................................17
10. Appendix............................................................................................................................................... 18
11. Revision History.................................................................................................................................... 19
The Microchip Website.................................................................................................................................20
Product Change Notification Service............................................................................................................20
Customer Support........................................................................................................................................ 20
Microchip Devices Code Protection Feature................................................................................................ 20
Legal Notice................................................................................................................................................. 20
Trademarks.................................................................................................................................................. 21
Quality Management System....................................................................................................................... 21
Worldwide Sales and Service.......................................................................................................................22
TB3234
© 2020 Microchip Technology Inc. Technical Brief DS90003234C-page 2


Produkt Specifikationer

Mærke: Microchip
Kategori: Ikke kategoriseret
Model: AVR64DD14

Har du brug for hjælp?

Hvis du har brug for hjælp til Microchip AVR64DD14 stil et spørgsmål nedenfor, og andre brugere vil svare dig