Instrukcja obsługi Microchip ATSAMD21G16


Przeczytaj poniżej 📖 instrukcję obsługi w języku polskim dla Microchip ATSAMD21G16 (44 stron) w kategorii Niesklasyfikowane. Ta instrukcja była pomocna dla 5 osób i została oceniona przez 2 użytkowników na średnio 4.5 gwiazdek

Strona 1/44
42258A-SAMD21-04/2014
APPLICATION NOTE
AT07627: ASF Manual (SAM D21)
ASF PROGRAMMERS MANUAL
Preface
The Atmel® Software Framework (ASF) is a collection of free embedded software for
Atmel microcontroller devices. It simplifies the usage of Atmel products, providing an
abstraction to the hardware and high-value middleware.
ASF is designed to be used for evaluation, prototyping, design and production
phases. ASF is integrated in the Atmel Studio IDE with a graphical user interface
or available as a standalone package for several commercial and open source
compilers.
This document describes the API interfaces to the low level ASF module drivers of
the device.
For more information on ASF please refer to the online documentation at
www.atmel.com/asf.
AT07627: ASF Manual (SAM D21) [APPLICATION NOTE]
42258A-SAMD21-04/2014
2
Table of Contents
Preface ................................................................................................ 1
Software License .............................................................................. 13
1. SAM D20/D21 Analog Comparator Driver (AC) ......................... 14
1.1. Prerequisites ............................................................................ 14
1.2. Module Overview ...................................................................... 14
1.2.1. Window Comparators and Comparator Pairs ...................... 14
1.2.2. Positive and Negative Input MUXs ................................... 14
1.2.3. Output Filtering ............................................................. 15
1.2.4. Input Hysteresis ............................................................ 15
1.2.5. Single Shot and Continuous Sampling Modes ..................... 15
1.2.6. Events ........................................................................ 15
1.2.7. Physical Connection ...................................................... 15
1.3. Special Considerations ............................................................... 16
1.4. Extra Information ....................................................................... 16
1.5. Examples ................................................................................. 16
1.6. API Overview ........................................................................... 16
1.6.1. Variable and Type Definitions .......................................... 16
1.6.2. Structure Definitions ...................................................... 17
1.6.3. Macro Definitions .......................................................... 18
1.6.4. Function Definitions ....................................................... 20
1.6.5. Enumeration Definitions .................................................. 29
1.7. Extra Information for AC Driver .................................................... 32
1.7.1. Acronyms .................................................................... 32
1.7.2. Dependencies .............................................................. 33
1.7.3. Errata ......................................................................... 33
1.7.4. Module History ............................................................. 33
1.8. Examples for AC Driver .............................................................. 33
1.8.1. Quick Start Guide for AC - Basic ...................................... 33
1.8.2. Quick Start Guide for AC - Callback ................................. 37
2. SAM D20/D21 Analog to Digital Converter Driver (ADC) ........... 43
2.1. Prerequisites ............................................................................ 43
2.2. Module Overview ...................................................................... 43
2.2.1. Sample Clock Prescaler ................................................. 44
2.2.2. ADC Resolution ............................................................ 44
2.2.3. Conversion Modes ........................................................ 44
2.2.4. Differential and Single-Ended Conversion .......................... 44
2.2.5. Sample Time ................................................................ 44
2.2.6. Averaging .................................................................... 45
2.2.7. Offset and Gain Correction ............................................. 45
2.2.8. Pin Scan ..................................................................... 46
2.2.9. Window Monitor ............................................................ 46
2.2.10. Events ........................................................................ 46
2.3. Special Considerations ............................................................... 46
2.4. Extra Information ....................................................................... 46
2.5. Examples ................................................................................. 47
2.6. API Overview ........................................................................... 47
2.6.1. Variable and Type Definitions .......................................... 47
2.6.2. Structure Definitions ...................................................... 47
2.6.3. Macro Definitions .......................................................... 49
2.6.4. Function Definitions ....................................................... 50
2.6.5. Enumeration Definitions .................................................. 62
2.7. Extra Information for ADC Driver .................................................. 67
2.7.1. Acronyms .................................................................... 67
2.7.2. Dependencies .............................................................. 67
AT07627: ASF Manual (SAM D21) [APPLICATION NOTE]
42258A-SAMD21-04/2014
3
2.7.3. Errata ......................................................................... 67
2.7.4. Module History ............................................................. 67
2.8. Examples for ADC Driver ............................................................ 67
2.8.1. Quick Start Guide for ADC - Basic ................................... 67
2.8.2. Quick Start Guide for ADC - Callback ............................... 70
2.8.3. Quick Start Guide for Using DMA with ADC/DAC ................. 73
3. SAM D20/D21 Brown Out Detector Driver (BOD) ...................... 81
3.1. Prerequisites ............................................................................ 81
3.2. Module Overview ...................................................................... 81
3.3. Special Considerations ............................................................... 81
3.4. Extra Information ....................................................................... 81
3.5. Examples ................................................................................. 81
3.6. API Overview ........................................................................... 81
3.6.1. Structure Definitions ...................................................... 81
3.6.2. Function Definitions ....................................................... 82
3.6.3. Enumeration Definitions .................................................. 85
3.7. Extra Information for BOD Driver .................................................. 86
3.7.1. Acronyms .................................................................... 86
3.7.2. Dependencies .............................................................. 86
3.7.3. Errata ......................................................................... 86
3.7.4. Module History ............................................................. 86
3.8. Examples for BOD Driver ........................................................... 86
3.8.1. Quick Start Guide for BOD - Basic ................................... 86
3.8.2. Application Use Case for BOD - Application ....................... 88
4. SAM D20/D21 Digital-to-Analog Driver (DAC) ........................... 89
4.1. Prerequisites ............................................................................ 89
4.2. Module Overview ...................................................................... 89
4.2.1. Conversion Range ........................................................ 90
4.2.2. Conversion .................................................................. 90
4.2.3. Analog Output .............................................................. 90
4.2.4. Events ........................................................................ 91
4.2.5. Left and Right Adjusted Values ........................................ 91
4.2.6. Clock Sources .............................................................. 91
4.3. Special Considerations ............................................................... 91
4.3.1. Output Driver ............................................................... 91
4.3.2. Conversion Time ........................................................... 91
4.4. Extra Information ....................................................................... 92
4.5. Examples ................................................................................. 92
4.6. API Overview ........................................................................... 92
4.6.1. Variable and Type Definitions .......................................... 92
4.6.2. Structure Definitions ...................................................... 92
4.6.3. Macro Definitions .......................................................... 93
4.6.4. Function Definitions ....................................................... 93
4.6.5. Enumeration Definitions ................................................ 106
4.7. Extra Information for DAC Driver ................................................ 107
4.7.1. Acronyms ................................................................... 107
4.7.2. Dependencies ............................................................. 108
4.7.3. Errata ........................................................................ 108
4.7.4. Module History ............................................................ 108
4.8. Examples for DAC Driver .......................................................... 108
4.8.1. Quick Start Guide for DAC - Basic .................................. 108
4.8.2. Quick Start Guide for DAC - Callback .............................. 111
4.8.3. Quick Start Guide for Using DMA with ADC/DAC ............... 117
5. SAM D20/D21 EEPROM Emulator Service (EEPROM) ........... 118
5.1. Prerequisites ........................................................................... 118
5.2. Module Overview ..................................................................... 118
5.2.1. Implementation Details ................................................. 118
5.2.2. Memory Layout ........................................................... 120


Specyfikacje produktu

Marka: Microchip
Kategoria: Niesklasyfikowane
Model: ATSAMD21G16

Potrzebujesz pomocy?

Jeśli potrzebujesz pomocy z Microchip ATSAMD21G16, zadaj pytanie poniżej, a inni użytkownicy Ci odpowiedzą




Instrukcje Niesklasyfikowane Microchip

Microchip

Microchip ATECC608B Instrukcja

7 Października 2024
Microchip

Microchip HV860 Instrukcja

7 Października 2024
Microchip

Microchip EVB-LAN9255 Instrukcja

7 Października 2024
Microchip

Microchip LX4580 Instrukcja

7 Października 2024
Microchip

Microchip LX7720 Instrukcja

7 Października 2024
Microchip

Microchip AT32UC3C0128C Instrukcja

4 Października 2024
Microchip

Microchip AT32UC3A3256 Instrukcja

4 Października 2024
Microchip

Microchip AT32UC3A364 Instrukcja

4 Października 2024
Microchip

Microchip AT32UC3B0256 Instrukcja

4 Października 2024
Microchip

Microchip AT32UC3A0512 Instrukcja

4 Października 2024

Instrukcje Niesklasyfikowane

Najnowsze instrukcje dla Niesklasyfikowane

Stihl

Stihl HT 70 Instrukcja

15 Października 2024
Ernesto

Ernesto H14270 Instrukcja

15 Października 2024
Uniden

Uniden BT MIC KIT Instrukcja

15 Października 2024
Vaude

Vaude Omnis Bike 26 Instrukcja

15 Października 2024
ART

ART ProChannel II Instrukcja

15 Października 2024
Aukey

Aukey DR02J Instrukcja

15 Października 2024
Master Lock

Master Lock 653EURD Instrukcja

15 Października 2024
Roland

Roland FR-18 Diatonic Instrukcja

15 Października 2024