Microchip ATSAMD21G16 Manual de Usario

Lee a continuación 📖 el manual en español para Microchip ATSAMD21G16 (44 páginas) en la categoría No categorizado. Esta guía fue útil para 5 personas y fue valorada con 4.5 estrellas en promedio por 2 usuarios

Página 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

Especificaciones del producto

Marca: Microchip
Categoría: No categorizado
Modelo: ATSAMD21G16

¿Necesitas ayuda?

Si necesitas ayuda con Microchip ATSAMD21G16 haz una pregunta a continuación y otros usuarios te responderán




No categorizado Microchip Manuales

No categorizado Manuales

Últimos No categorizado Manuales