Microchip ATSAMD21G16 Manual


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

Side 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


Produkt Specifikationer

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

Har du brug for hjælp?

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