SAM D20 Family
Low-Power, 32-bit Cortex-M0+ MCUs with 12-bit ADC, 10bit DAC, 256-Channel PTC, RTC, and SERCOM
Features
Operating Conditions
•
1.62V – 3.63V, -40°C to +85°C, DC up to 48 MHz
•
1.62V – 3.63V, -40°C to +105°C, DC up to 32 MHz
Core
®
®
•
ARM Cortex -M0+ CPU running at up to 48 MHz
– Single-cycle hardware multiplier
Memories
•
16/32/64/128/256 KB in-system self-programmable Flash
•
2/4/8/16/32 KB SRAM Memory
System
•
Power-on Reset (POR) and Brown-out Detection (BOD)
•
Internal and external clock options with 48 MHz Digital Frequency Locked Loop (DFLL48M)
•
External Interrupt Controller (EIC)
•
16 external interrupts
•
One non-maskable interrupt
•
Two-pin Serial Wire Debug (SWD) programming, test and debugging interface
Low-Power
•
Idle and Stand-by Sleep modes
•
SleepWalking peripherals
Peripherals
•
8-channel Event System
•
Up to eight 16-bit Timer/Counters (TC), configurable as:
•
•
•
•
– One 16-bit TC with two compare/capture channels
– One 8-bit TC with two compare/capture channels
– One 32-bit TC with two compare/capture channels, by using two TCs
32-bit Real Time Counter (RTC) with clock/calendar function
Watchdog Timer (WDT)
CRC-32 generator
Up to six Serial Communication Interfaces (SERCOM), each configurable to operate as either:
– USART with full-duplex and single-wire half-duplex configuration
– Inter-Integrated Circuit (I2C) up to 400 kHz
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 1
SAM D20 Family
•
•
•
•
I/O
•
– Serial Peripheral Interface (SPI)
One 12-bit, 350 ksps Analog-to-Digital Converter (ADC) with up to 20 channels
– Differential and single-ended input
– 1/2x to 16x programmable gain stage
– Automatic offset and gain error compensation
– Oversampling and decimation in hardware to support 13-, 14-, 15- or 16-bit resolution
10-bit, 350 ksps Digital-to-Analog Converter (DAC)
Two Analog Comparators (AC) with Window Compare function
Peripheral Touch Controller (PTC)
– 256-Channel capacitive touch and proximity sensing
Up to 52 programmable I/O pins
Packages
•
64-pin TQFP, QFN
•
64-ball UFBGA
•
48-pin TQFP, QFN
•
45-ball WLCSP
•
32-pin TQFP, QFN
Power Consumption
•
Power Consumption
– Down to 50 µA/MHz in Active mode
– Down to 8 µA running the PTC
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 2
Table of Contents
Features.......................................................................................................................... 1
1. Configuration Summary........................................................................................... 11
2. Ordering Information (1)........................................................................................... 13
3. Block Diagram......................................................................................................... 14
4. Pinout...................................................................................................................... 15
4.1.
4.2.
4.3.
SAM D20J.................................................................................................................................. 15
SAM D20G................................................................................................................................. 17
SAM D20E..................................................................................................................................19
5. Signal Descriptions List........................................................................................... 20
6. I/O Multiplexing and Considerations........................................................................22
6.1.
6.2.
Multiplexed Signals.................................................................................................................... 22
Other Functions..........................................................................................................................24
7. Power Supply and Start-Up Considerations............................................................ 26
7.1.
7.2.
7.3.
7.4.
Power Domain Overview............................................................................................................26
Power Supply Considerations.................................................................................................... 26
Power-Up................................................................................................................................... 28
Power-On Reset and Brown-Out Detector................................................................................. 28
8. Product Mapping..................................................................................................... 30
9. Memories.................................................................................................................31
9.1.
9.2.
9.3.
9.4.
9.5.
9.6.
Embedded Memories................................................................................................................. 31
Physical Memory Map................................................................................................................ 31
NVM Calibration and Auxiliary Space........................................................................................ 32
NVM User Row Mapping............................................................................................................32
NVM Software Calibration Area Mapping...................................................................................34
Serial Number............................................................................................................................ 34
10. Processor And Architecture.....................................................................................35
10.1.
10.2.
10.3.
10.4.
10.5.
10.6.
Cortex M0+ Processor............................................................................................................... 35
Nested Vector Interrupt Controller..............................................................................................36
High-Speed Bus System............................................................................................................ 38
AHB-APB Bridge........................................................................................................................ 39
PAC - Peripheral Access Controller........................................................................................... 40
Register Description................................................................................................................... 41
11. Peripherals Configuration Summary........................................................................54
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 3
SAM D20 Family
12. DSU - Device Service Unit...................................................................................... 56
12.1. Overview.................................................................................................................................... 56
12.2. Features..................................................................................................................................... 56
12.3. Block Diagram............................................................................................................................ 57
12.4. Signal Description...................................................................................................................... 57
12.5. Product Dependencies............................................................................................................... 57
12.6. Debug Operation........................................................................................................................ 58
12.7. Chip Erase..................................................................................................................................60
12.8. Programming..............................................................................................................................61
12.9. Intellectual Property Protection.................................................................................................. 61
12.10. Device Identification................................................................................................................... 63
12.11. Functional Description................................................................................................................64
12.12. Register Summary..................................................................................................................... 69
12.13. Register Description...................................................................................................................71
13. Clock System...........................................................................................................94
13.1.
13.2.
13.3.
13.4.
13.5.
13.6.
13.7.
13.8.
Clock Distribution....................................................................................................................... 94
Synchronous and Asynchronous Clocks....................................................................................95
Register Synchronization........................................................................................................... 95
Enabling a Peripheral............................................................................................................... 100
Disabling a Peripheral.............................................................................................................. 100
On-demand, Clock Requests................................................................................................... 100
Power Consumption vs. Speed................................................................................................ 101
Clocks after Reset.................................................................................................................... 101
14. GCLK - Generic Clock Controller.......................................................................... 103
14.1.
14.2.
14.3.
14.4.
14.5.
14.6.
14.7.
14.8.
Overview.................................................................................................................................. 103
Features................................................................................................................................... 103
Block Diagram.......................................................................................................................... 103
Signal Description.................................................................................................................... 104
Product Dependencies............................................................................................................. 104
Functional Description..............................................................................................................105
Register Summary....................................................................................................................110
Register Description..................................................................................................................111
15. PM – Power Manager............................................................................................124
15.1.
15.2.
15.3.
15.4.
15.5.
15.6.
15.7.
15.8.
Overview.................................................................................................................................. 124
Features................................................................................................................................... 124
Block Diagram.......................................................................................................................... 125
Signal Description.................................................................................................................... 125
Product Dependencies............................................................................................................. 125
Functional Description..............................................................................................................127
Register Summary....................................................................................................................135
Register Description................................................................................................................. 135
16. SYSCTRL – System Controller............................................................................. 155
16.1. Overview.................................................................................................................................. 155
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 4
SAM D20 Family
16.2.
16.3.
16.4.
16.5.
16.6.
16.7.
16.8.
Features................................................................................................................................... 155
Block Diagram.......................................................................................................................... 157
Signal Description.................................................................................................................... 157
Product Dependencies............................................................................................................. 158
Functional Description..............................................................................................................159
Register Summary....................................................................................................................171
Register Description................................................................................................................. 172
17. WDT – Watchdog Timer........................................................................................ 206
17.1.
17.2.
17.3.
17.4.
17.5.
17.6.
17.7.
17.8.
Overview.................................................................................................................................. 206
Features................................................................................................................................... 206
Block Diagram.......................................................................................................................... 207
Signal Description.................................................................................................................... 207
Product Dependencies............................................................................................................. 207
Functional Description..............................................................................................................208
Register Summary....................................................................................................................213
Register Description................................................................................................................. 213
18. RTC – Real-Time Counter..................................................................................... 225
18.1.
18.2.
18.3.
18.4.
18.5.
18.6.
18.7.
18.8.
Overview.................................................................................................................................. 225
Features................................................................................................................................... 225
Block Diagram.......................................................................................................................... 226
Signal Description.................................................................................................................... 226
Product Dependencies............................................................................................................. 226
Functional Description..............................................................................................................228
Register Summary....................................................................................................................234
Register Description................................................................................................................. 236
19. EIC – External Interrupt Controller........................................................................ 269
19.1.
19.2.
19.3.
19.4.
19.5.
19.6.
19.7.
19.8.
Overview.................................................................................................................................. 269
Features................................................................................................................................... 269
Block Diagram.......................................................................................................................... 269
Signal Description.................................................................................................................... 270
Product Dependencies............................................................................................................. 270
Functional Description..............................................................................................................271
Register Summary....................................................................................................................276
Register Description................................................................................................................. 276
20. NVMCTRL – Nonvolatile Memory Controller.........................................................288
20.1.
20.2.
20.3.
20.4.
20.5.
20.6.
20.7.
20.8.
Overview.................................................................................................................................. 288
Features................................................................................................................................... 288
Block Diagram.......................................................................................................................... 288
Signal Description.................................................................................................................... 289
Product Dependencies............................................................................................................. 289
Functional Description..............................................................................................................290
Register Summary....................................................................................................................297
Register Description................................................................................................................. 297
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 5
SAM D20 Family
21. PORT - I/O Pin Controller...................................................................................... 311
21.1.
21.2.
21.3.
21.4.
21.5.
21.6.
21.7.
21.8.
21.9.
Overview...................................................................................................................................311
Features................................................................................................................................... 311
Block Diagram.......................................................................................................................... 312
Signal Description.................................................................................................................... 312
Product Dependencies............................................................................................................. 312
Functional Description..............................................................................................................314
Register Summary....................................................................................................................320
PORT Pin Groups and Register Repetition..............................................................................322
Register Description................................................................................................................. 322
22. EVSYS – Event System........................................................................................ 343
22.1.
22.2.
22.3.
22.4.
22.5.
22.6.
22.7.
22.8.
Overview.................................................................................................................................. 343
Features................................................................................................................................... 343
Block Diagram.......................................................................................................................... 343
Signal Description.................................................................................................................... 344
Product Dependencies............................................................................................................. 344
Functional Description..............................................................................................................345
Register Summary....................................................................................................................351
Register Description................................................................................................................. 351
23. SERCOM – Serial Communication Interface.........................................................363
23.1.
23.2.
23.3.
23.4.
23.5.
23.6.
Overview.................................................................................................................................. 363
Features................................................................................................................................... 363
Block Diagram.......................................................................................................................... 364
Signal Description.................................................................................................................... 364
Product Dependencies............................................................................................................. 364
Functional Description..............................................................................................................366
24. SERCOM USART..................................................................................................371
24.1.
24.2.
24.3.
24.4.
24.5.
24.6.
24.7.
24.8.
Overview.................................................................................................................................. 371
USART Features...................................................................................................................... 371
Block Diagram.......................................................................................................................... 372
Signal Description.................................................................................................................... 372
Product Dependencies............................................................................................................. 372
Functional Description..............................................................................................................374
Register Summary....................................................................................................................382
Register Description................................................................................................................. 382
25. SERCOM SPI – SERCOM Serial Peripheral Interface..........................................399
25.1.
25.2.
25.3.
25.4.
25.5.
25.6.
25.7.
Overview.................................................................................................................................. 399
Features................................................................................................................................... 399
Block Diagram.......................................................................................................................... 400
Signal Description.................................................................................................................... 400
Product Dependencies............................................................................................................. 400
Functional Description..............................................................................................................402
Register Summary....................................................................................................................410
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 6
SAM D20 Family
25.8. Register Description................................................................................................................. 410
26. SERCOM I2C – SERCOM Inter-Integrated Circuit................................................ 425
26.1. Overview.................................................................................................................................. 425
26.2. Features................................................................................................................................... 425
26.3. Block Diagram.......................................................................................................................... 426
26.4. Signal Description.................................................................................................................... 426
26.5. Product Dependencies............................................................................................................. 426
26.6. Functional Description..............................................................................................................428
26.7. Register Summary - I2C Slave.................................................................................................445
26.8. Register Description - I2C Slave...............................................................................................445
26.9. Register Summary - I2C Master...............................................................................................457
26.10. Register Description - I2C Master............................................................................................ 457
27. TC – Timer/Counter............................................................................................... 472
27.1.
27.2.
27.3.
27.4.
27.5.
27.6.
27.7.
27.8.
Overview.................................................................................................................................. 472
Features................................................................................................................................... 472
Block Diagram.......................................................................................................................... 473
Signal Description.................................................................................................................... 473
Product Dependencies............................................................................................................. 474
Functional Description..............................................................................................................475
Register Summary....................................................................................................................485
Register Description................................................................................................................. 487
28. ADC – Analog-to-Digital Converter........................................................................512
28.1.
28.2.
28.3.
28.4.
28.5.
28.6.
28.7.
28.8.
Overview.................................................................................................................................. 512
Features................................................................................................................................... 512
Block Diagram.......................................................................................................................... 513
Signal Description.................................................................................................................... 513
Product Dependencies............................................................................................................. 514
Functional Description..............................................................................................................515
Register Summary....................................................................................................................525
Register Description................................................................................................................. 526
29. AC – Analog Comparators.....................................................................................551
29.1.
29.2.
29.3.
29.4.
29.5.
29.6.
29.7.
29.8.
Overview.................................................................................................................................. 551
Features................................................................................................................................... 551
Block Diagram.......................................................................................................................... 552
Signal Description.................................................................................................................... 552
Product Dependencies............................................................................................................. 552
Functional Description..............................................................................................................554
Register Summary....................................................................................................................564
Register Description................................................................................................................. 564
30. DAC – Digital-to-Analog Converter........................................................................581
30.1. Overview.................................................................................................................................. 581
30.2. Features................................................................................................................................... 581
30.3. Block Diagram.......................................................................................................................... 581
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 7
SAM D20 Family
30.4.
30.5.
30.6.
30.7.
30.8.
Signal Description.................................................................................................................... 581
Product Dependencies............................................................................................................. 581
Functional Description..............................................................................................................583
Register Summary....................................................................................................................587
Register Description................................................................................................................. 587
31. PTC - Peripheral Touch Controller.........................................................................597
31.1.
31.2.
31.3.
31.4.
31.5.
31.6.
Overview.................................................................................................................................. 597
Features................................................................................................................................... 597
Block Diagram.......................................................................................................................... 598
Signal Description.................................................................................................................... 599
System Dependencies............................................................................................................. 599
Functional Description..............................................................................................................600
32. Electrical Characteristics at 85°C.......................................................................... 601
32.1. Disclaimer.................................................................................................................................601
32.2. Absolute Maximum Ratings......................................................................................................601
32.3. General Operating Ratings.......................................................................................................602
32.4. Supply Characteristics..............................................................................................................602
32.5. Maximum Clock Frequencies................................................................................................... 603
32.6. Power Consumption................................................................................................................. 604
32.7. Peripheral Power Consumption................................................................................................608
32.8. I/O Pin Characteristics..............................................................................................................609
32.9. Injection Current....................................................................................................................... 612
32.10. Analog Characteristics............................................................................................................. 613
32.11. NVM Characteristics.................................................................................................................626
32.12. Oscillators Characteristics........................................................................................................627
32.13. PTC Typical Characteristics..................................................................................................... 632
32.14. Timing Characteristics..............................................................................................................635
33. Electrical Characteristics at 105°C........................................................................ 640
33.1.
33.2.
33.3.
33.4.
33.5.
33.6.
33.7.
33.8.
33.9.
Disclaimer.................................................................................................................................640
Absolute Maximum Ratings......................................................................................................640
General Operating Ratings.......................................................................................................640
Maximum Clock Frequencies................................................................................................... 641
Power Consumption................................................................................................................. 642
Injection Current....................................................................................................................... 646
Analog Characteristics............................................................................................................. 646
NVM Characteristics.................................................................................................................656
Oscillators Characteristics........................................................................................................657
34. Packaging Information...........................................................................................663
34.1. Thermal Considerations........................................................................................................... 663
34.2. Package Drawings................................................................................................................... 664
34.3. Soldering Profile....................................................................................................................... 677
35. Schematic Checklist.............................................................................................. 678
35.1. Introduction...............................................................................................................................678
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 8
SAM D20 Family
35.2.
35.3.
35.4.
35.5.
35.6.
35.7.
Power Supply........................................................................................................................... 678
External Analog Reference Connections................................................................................. 679
External Reset Circuit...............................................................................................................681
Clocks and Crystal Oscillators..................................................................................................681
Unused or Unconnected Pins...................................................................................................685
Programming and Debug Ports................................................................................................685
36. Datasheet Revision History................................................................................... 689
36.1. Rev. B - 11/2017.......................................................................................................................689
36.2. Rev. A - 08/2017.......................................................................................................................689
36.3. Rev. P - 09/2016.......................................................................................................................690
36.4. Rev. O - 08/2016...................................................................................................................... 690
36.5. Rev. N - 01/2015...................................................................................................................... 691
36.6. Rev. M - 12/2014...................................................................................................................... 691
36.7. Rev. L - 09/2014....................................................................................................................... 692
36.8. Rev. K – 05/2014......................................................................................................................694
36.9. Rev. J – 12/2013...................................................................................................................... 696
36.10. Rev. I 12/2013......................................................................................................................... 696
36.11. Rev. H 10/2013........................................................................................................................703
36.12. Rev. G - 10/2013...................................................................................................................... 705
36.13. Rev. F - 10/2013.......................................................................................................................705
36.14. Rev. E - 09/2013...................................................................................................................... 706
36.15. Rev. D - 08/2013...................................................................................................................... 706
36.16. Rev. C – 07/2013..................................................................................................................... 707
36.17. Rev. B – 07/2013......................................................................................................................708
36.18. Rev. A - 06/2013...................................................................................................................... 709
37. Conventions...........................................................................................................710
37.1.
37.2.
37.3.
37.4.
Numerical Notation...................................................................................................................710
Memory Size and Type.............................................................................................................710
Frequency and Time.................................................................................................................710
Registers and Bits.................................................................................................................... 711
38. Acronyms and Abbreviations.................................................................................712
The Microchip Web Site.............................................................................................. 715
Customer Change Notification Service........................................................................715
Customer Support....................................................................................................... 715
Microchip Devices Code Protection Feature............................................................... 715
Legal Notice.................................................................................................................716
Trademarks................................................................................................................. 716
Quality Management System Certified by DNV...........................................................717
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 9
SAM D20 Family
Worldwide Sales and Service......................................................................................718
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 10
SAM D20 Family
Configuration Summary
1.
Configuration Summary
Table 1-1. SAM D20 Device-specific Features
Device
Flash (KB)
SRAM (KB)
ATSAMD20E14
16
2
ATSAMD20E15
32
4
ATSAMD20E16
64
8
ATSAMD20E17
128
16
ATSAMD20E18
256
32
ATSAMD20G14
16
2
ATSAMD20G15
32
4
ATSAMD20G16
64
8
ATSAMD20G17
128
16
ATSAMD20G18
256
32
ATSAMD20J14
16
2
ATSAMD20J15
32
4
ATSAMD20J16
64
8
ATSAMD20J17
128
16
ATSAMD20J18
256
32
Table 1-2. SAM D20 Family Features
Feature
SAM D20 J
SAM D20 G
SAM D20 E
Pins
64
48
32
General Purpose I/O pins (GPIOs)
52
38
26
Flash
256/128/64/32/16 KB 256/128/64/32/16 KB 256/128/64/32/16 KB
SRAM
32/16/8/4/2 KB
32/16/8/4/2 KB
32/16/8/4/2 KB
Timer Counter (TC) instances
8
6
6
Waveform output channels per TC instance
2
2
2
Serial Communication Interface (SERCOM)
instances
6
6
4
Analog-to-Digital Converter (ADC) channels
20
14
10
Analog Comparators (AC)
2
2
2
Digital-to-Analog Converter (DAC) channels
1
1
1
Real-Time Counter (RTC)
Yes
Yes
Yes
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 11
SAM D20 Family
Configuration Summary
Feature
SAM D20 J
SAM D20 G
SAM D20 E
RTC alarms
1
1
1
RTC compare values
One 32-bit value or
One 32-bit value or
One 32-bit value or
two 16-bit values
two 16-bit values
two 16-bit values
External Interrupt lines
16
16
16
Peripheral Touch Controller (PTC) X and Y
lines
16x16
12x10
10x6
Maximum CPU frequency
48 MHz
Packages
QFN
QFN
QFN
TQFP
TQFP
TQFP
UFBGA
WLCSP
Oscillators
32.768 kHz crystal oscillator (XOSC32K)
0.4-32 MHz crystal oscillator (XOSC)
32.768 kHz internal oscillator (OSC32K)
32 kHz ultra-low-power internal oscillator (OSCULP32K)
8 MHz high-accuracy internal oscillator (OSC8M)
48 MHz Digital Frequency Locked Loop (DFLL48M)
Event System channels
8
8
8
SW Debug Interface
Yes
Yes
Yes
Watchdog Timer (WDT)
Yes
Yes
Yes
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 12
SAM D20 Family
Ordering Information (1)
2.
Ordering Information (1)
SAMD 20 E 14 A - M U T
Product Family
Package Carrier
SAMD = General Purpose Microcontroller
No character = Tray (Default)
T = Tape and Reel
Product Series
Package Grade
20 = Cortex M0+ CPU, Basic Feature Set
Pin Count
U = -40 - 85 C Matte Sn Plating
N = -40 - 105 C Matte Sn Plating
O
E = 32 Pins
G = 48 Pins
J = 64 Pins
O
Package Type (3)
Flash Memory Density
A = TQFP
M = QFN
C = UFBGA
U = WLCSP
18 = 256KB
17 = 128KB
16 = 64KB
15 = 32KB
14 = 16KB
Device Variant (2)
A = Default Variant
B = Improved Low Power
Note:
1.
2.
3.
Not all combinations are valid. The available device part numbers are listed in configuration
Summary.
Variant B is available only for Flash memory density of 64 KB, 32 KB, and 16 KB.
Variant B is available for TQFP and QFN package types.
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 13
SAM D20 Family
Block Diagram
Block Diagram
IOBUS
SWCLK
ARM CORTEX-M0+
PROCESSOR
Fmax 48MHz
SERIAL
WIRE
SWDIO
DEVICE
SERVICE
UNIT
M
256/128/64/32/16KB
NVM
NVM
CONTROLLER
Cache
S
M
32/16/8/4/2KB
RAM
HIGH SPEED
BUS MATRIX
S
PERIPHERAL
ACCESS CONTROLLER
S
AHB-APB
BRIDGE B
S
S
AHB-APB
BRIDGE A
AHB-APB
BRIDGE C
SRAM
CONTROLLER
PERIPHERAL
ACCESS CONTROLLER
PERIPHERAL
ACCESS CONTROLLER
SYSTEM CONTROLLER
PORT
66xxSERCOM
SERCOM
PIN[3:0]
8 x TIMER COUNTER
8 x(See
Timer
Counter
Note1)
WO[1:0]
VREF
BOD33
OSCULP32K
OSC32K
XOSC32K
OSC8M
XIN
XOUT
XOSC
DFLL48M
POWER MANAGER
CLOCK
CONTROLLER
RESET
RESET
CONTROLLER
GCLK_IO[7:0]
SLEEP
CONTROLLER
VREFA
VREFB
AIN[3:0]
2 ANALOG
COMPARATORS
GENERIC CLOCK
CONTROLLER
CMP1:0]
VOUT
DAC
REAL TIME
COUNTER
WATCHDOG
TIMER
EXTINT[15:0]
NMI
AIN[19:0]
ADC
PORT
XIN32
XOUT32
EVENT SYSTEM
3.
PERIPHERAL
TOUCH
CONTROLLER
EXTERNAL INTERRUPT
CONTROLLER
VREFA
X[15:0]
Y[15:0]
Note: 1. Some products have different number of SERCOM instances, Timer/Counter instances, PTC
signals and ADC signals. Refer to Peripherals Configuration Summary for details.
Related Links
Peripherals Configuration Summary
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 14
SAM D20 Family
Pinout
Pinout
4.1
SAM D20J
4.1.1
QFN64 / TQFP64
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
PB03
PB02
PB01
PB00
PB31
PB30
PA31
PA30
VDDIN
VDDCORE
GND
PA28
RESET
PA27
PB23
PB22
4.
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
VDDIO
GND
PA25
PA24
PA23
PA22
PA21
PA20
PB17
PB16
PA19
PA18
PA17
PA16
VDDIO
GND
PA08
PA09
PA10
PA11
VDDIO
GND
PB10
PB11
PB12
PB13
PB14
PB15
PA12
PA13
PA14
PA15
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PA00
PA01
PA02
PA03
PB04
PB05
GNDANA
VDDANA
PB06
PB07
PB08
PB09
PA04
PA05
PA06
PA07
DIGITAL PIN
ANALOG PIN
OSCILLATOR
GROUND
INPUT SUPPLY
REGULATED OUTPUT SUPPLY
RESET PIN
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 15
SAM D20 Family
Pinout
4.1.2
UFBGA64
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 16
SAM D20 Family
Pinout
SAM D20G
4.2.1
QFN48 / TQFP48
48
47
46
45
44
43
42
41
40
39
38
37
PB03
PB02
PA31
PA30
VDDIN
VDDCORE
GND
PA28
RESET
PA27
PB23
PB22
4.2
36
35
34
33
32
31
30
29
28
27
26
25
1
2
3
4
5
6
7
8
9
10
11
12
VDDIO
GND
PA25
PA24
PA23
PA22
PA21
PA20
PA19
PA18
PA17
PA16
PA08
PA09
PA10
PA11
VDDIO
GND
PB10
PB11
PA12
PA13
PA14
PA15
13
14
15
16
17
18
19
20
21
22
23
24
PA00
PA01
PA02
PA03
GNDANA
VDDANA
PB08
PB09
PA04
PA05
PA06
PA07
DIGITAL PIN
ANALOG PIN
OSCILLATOR
GROUND
INPUT SUPPLY
REGULATED OUTPUT SUPPLY
RESET PIN
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 17
SAM D20 Family
Pinout
4.2.2
WLCSP45
A
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 18
SAM D20 Family
Pinout
SAM D20E
4.3.1
QFN32 / TQFP32
32
31
30
29
28
27
26
25
PA31
PA30
VDDIN
VDDCORE
GND
PA28
RESET
PA27
4.3
24
23
22
21
20
19
18
17
1
2
3
4
5
6
7
8
PA25
PA24
PA23
PA22
PA19
PA18
PA17
PA16
VDDANA
GND
PA08
PA09
PA10
PA11
PA14
PA15
9
10
11
12
13
14
15
16
PA00
PA01
PA02
PA03
PA04
PA05
PA06
PA07
DIGITAL PIN
ANALOG PIN
OSCILLATOR
GROUND
INPUT SUPPLY
REGULATED OUTPUT SUPPLY
RESET PIN
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 19
SAM D20 Family
Signal Descriptions List
5.
Signal Descriptions List
The following table gives details on signal names classified by peripheral.
Signal Name Function
Type
Active Level
Analog Comparators - AC
AIN[3:0]
AC Analog Inputs
Analog
CMP[1:0]
AC Comparator Outputs
Digital
Analog Digital Converter - ADC
AIN[19:0]
ADC Analog Inputs
Analog
VREFA
ADC Voltage External Reference A
Analog
VREFB
ADC Voltage External Reference B
Analog
Digital Analog Converter - DAC
VOUT
DAC Voltage output
Analog
VREFA
DAC Voltage External Reference
Analog
External Interrupt Controller
EXTINT[15:0] External Interrupts
Input
NMI
Input
External Non-Maskable Interrupt
Generic Clock Generator - GCLK
GCLK_IO[7:0] Generic Clock (source clock or generic clock generator
output)
I/O
Power Manager - PM
RESET
Reset
Input
Low
Serial Communication Interface - SERCOMx
PAD[3:0]
SERCOM I/O Pads
I/O
System Control - SYSCTRL
XIN
Crystal Input
Analog/ Digital
XIN32
32kHz Crystal Input
Analog/ Digital
XOUT
Crystal Output
Analog
XOUT32
32kHz Crystal Output
Analog
Timer Counter - TCx
WO[1:0]
Waveform Outputs
Output
Peripheral Touch Controller - PTC
X[15:0]
PTC Input
© 2017 Microchip Technology Inc.
Analog
Datasheet Complete
DS60001504B-page 20
SAM D20 Family
Signal Descriptions List
Signal Name Function
Type
Y[15:0]
Analog
PTC Input
Active Level
General Purpose I/O - PORT
PA25 - PA00
Parallel I/O Controller I/O Port A
I/O
PA28 - PA27
Parallel I/O Controller I/O Port A
I/O
PA31 - PA30
Parallel I/O Controller I/O Port A
I/O
PB17 - PB00
Parallel I/O Controller I/O Port B
I/O
PB23 - PB22
Parallel I/O Controller I/O Port B
I/O
PB31 - PB30
Parallel I/O Controller I/O Port B
I/O
© 2017 Microchip Technology Inc.
Datasheet Complete
DS60001504B-page 21
SAM D20 Family
I/O Multiplexing and Considerations
6.
I/O Multiplexing and Considerations
Related Links
I2C Pins
6.1
Multiplexed Signals
Each pin is by default controlled by the PORT as a general purpose I/O and alternatively it can be
assigned to one of the peripheral functions A, B, C, D, E, F, G or H. To enable a peripheral function on a
pin, the Peripheral Multiplexer Enable bit in the Pin Configuration register corresponding to that pin
(PINCFGn.PMUXEN, n = 0-31) in the PORT must be written to one. The selection of peripheral function
A to H is done by writing to the Peripheral Multiplexing Odd and Even bits in the Peripheral Multiplexing
register (PMUXn.PMUXE/O) in the PORT.
This table describes the peripheral signals multiplexed to the PORT I/O pins.
Table 6-1. PORT Function Multiplexing
Pin(1)
I/O Pin
Supply
Type
B(2)
A
EIC
REF
ADC
AC
C
PTC
D
F
TC(4)
SAMD20G
SAMD20J
1
1
1
PA00
VDDANA
EXTINT[0]
SERCOM1/
PAD[0]
TC2/
WO[0]
2
2
2
PA01
VDDANA
EXTINT[1]
SERCOM1/
PAD[1]
TC2/
WO[1]
3
3
3
PA02
VDDANA
EXTINT[2]
4
4
4
PA03
VDDANA
EXTINT[3]
5
PB04
VDDANA
6
PB05
9
PB06
Y[0]
AIN[1]
Y[1]
EXTINT[4]
AIN[12]
Y[10]
VDDANA
EXTINT[5]
AIN[13]
Y[11]
VDDANA
EXTINT[6]
AIN[14]
Y[12]
ADC/
VREFA
DAC/
VREFA
SERCOMALT
E
SAMD20E
AIN[0]
DAC
SERCOM(
3)
H
COM
AC/GCLK
VOUT
10
PB07
VDDANA
EXTINT[7]
AIN[15]
Y[13]
7
11
PB08
VDDANA
EXTINT[8]
AIN[2]
Y[14]
SERCOM4/
PAD[0]
TC4/
WO[0]
8
12
PB09
VDDANA
EXTINT[9]
AIN[3]
Y[15]
SERCOM4/
PAD[1]
TC4/
WO[1]
5
9
13
PA04
VDDANA
EXTINT[4]
6
10
14
PA05
VDDANA
7
11
15
PA06
8
12
16
11
13
12
AIN[4]
AIN[0]
Y[2]
SERCOM0/
PAD[0]
TC0/
WO[0]
EXTINT[5]
AIN[5]
AIN[1]
Y[3]
SERCOM0/
PAD[1]
TC0/
WO[1]
VDDANA
EXTINT[6]
AIN[6]
AIN[2]
Y[4]
SERCOM0/
PAD[2]
TC1/
WO[0]
PA07
VDDANA
EXTINT[7]
AIN[7]
AIN[3]
Y[5]
SERCOM0/
PAD[3]
TC1/
WO[1]
17
PA08
VDDIO
I2C
NMI
AIN[16]
X[0]
SERCOM0/
PAD[0]
SERCOM2/
PAD[0]
TC0/
WO[0]
14
18
PA09
VDDIO
I2C
EXTINT[9]
AIN[17]
X[1]
SERCOM0/
PAD[1]
SERCOM2/
PAD[1]
TC0/
WO[1]
13
15
19
PA10
VDDIO
EXTINT[10]
AIN[18]
X[2]
SERCOM0/
PAD[2]
SERCOM2/
PAD[2]
TC1/
WO[0]
GCLK_IO[4]
14
16
20
PA11
VDDIO
EXTINT[11]
AIN[19]
X[3]
SERCOM0/
PAD[3]
SERCOM2/
PAD[3]
TC1/
WO[1]
GCLK_IO[5]
© 2017 Microchip Technology Inc.
ADC/
VREFB
G
Datasheet Complete
DS60001504B-page 22
SAM D20 Family
I/O Multiplexing and Considerations
Pin(1)
SAMD20E
I/O Pin
Supply
Type
B(2)
A
EIC
ADC
AC
PTC
DAC
C
D
SERCOMALT
E
F
TC(4)
G
H
COM
AC/GCLK
SAMD20J
19
23
PB10
VDDIO
EXTINT[10]
SERCOM4/
PAD[2]
TC5/
WO[0]
GCLK_IO[4]
20
24
PB11
VDDIO
EXTINT[11]
SERCOM4/
PAD[3]
TC5/
WO[1]
GCLK_IO[5]
25
PB12
VDDIO
I2C
EXTINT[12]
X[12]
SERCOM4/
PAD[0]
TC4/
WO[0]
GCLK_IO[6]
26
PB13
VDDIO
I2C
EXTINT[13]
X[13]
SERCOM4/
PAD[1]
TC4/
WO[1]
GCLK_IO[7]
27
PB14
VDDIO
EXTINT[14]
X[14]
SERCOM4/
PAD[2]
TC5/
WO[0]
GCLK_IO[0]
28
PB15
VDDIO
EXTINT[15]
X[15]
SERCOM4/
PAD[3]
TC5/
WO[1]
GCLK_IO[1]
21
29
PA12
VDDIO
I2C
EXTINT[12]
SERCOM2/
PAD[0]
SERCOM4/
PAD[0]
TC2/
WO[0]
AC/CMP[0]
22
30
PA13
VDDIO
I2C
EXTINT[13]
SERCOM2/
PAD[1]
SERCOM4/
PAD[1]
TC2/
WO[1]
AC/CMP[1]
15
23
31
PA14
VDDIO
EXTINT[14]
SERCOM2/
PAD[2]
SERCOM4/
PAD[2]
TC3/
WO[0]
GCLK_IO[0]
16
24
32
PA15
VDDIO
EXTINT[15]
SERCOM2/
PAD[3]
SERCOM4/
PAD[3]
TC3/
WO[1]
GCLK_IO[1]
17
25
35
PA16
VDDIO
I2C
EXTINT[0]
X[4]
SERCOM1/
PAD[0]
SERCOM3/
PAD[0]
TC2/
WO[0]
GCLK_IO[2]
18
26
36
PA17
VDDIO
I2C
EXTINT[1]
X[5]
SERCOM1/
PAD[1]
SERCOM3/
PAD[1]
TC2/
WO[1]
GCLK_IO[3]
19
27
37
PA18
VDDIO
EXTINT[2]
X[6]
SERCOM1/
PAD[2]
SERCOM3/
PAD[2]
TC3/
WO[0]
AC/CMP[0]
20
28
38
PA19
VDDIO
EXTINT[3]
X[7]
SERCOM1/
PAD[3]
SERCOM3/
PAD[3]
TC3/
WO[1]
AC/CMP[1]
39
PB16
VDDIO
I2C
EXTINT[0]
SERCOM5/
PAD[0]
TC6/
WO[0]
GCLK_IO[2]
40
PB17
VDDIO
I2C
EXTINT[1]
SERCOM5/
PAD[1]
TC6/
WO[1]
GCLK_IO[3]
29
41
PA20
VDDIO
EXTINT[4]
X[8]
SERCOM5/
PAD[2]
SERCOM3/
PAD[2]
TC7/
WO[0]
GCLK_IO[4]
30
42
PA21
VDDIO
EXTINT[5]
X[9]
SERCOM5/
PAD[3]
SERCOM3/
PAD[3]
TC7/
WO[1]
GCLK_IO[5]
21
31
43
PA22
VDDIO
I2C
EXTINT[6]
X[10]
SERCOM3/
PAD[0]
SERCOM5/
PAD[0]
TC4/
WO[0]
GCLK_IO[6]
22
32
44
PA23
VDDIO
I2C
EXTINT[7]
X[11]
SERCOM3/
PAD[1]
SERCOM5/
PAD[1]
TC4/
WO[1]
GCLK_IO[7]
23
33
45
PA24(6)
VDDIO
EXTINT[12]
SERCOM3/
PAD[2]
SERCOM5/
PAD[2]
TC5/
WO[0]
24
34
46
PA25(6)
VDDIO
EXTINT[13]
SERCOM3/
PAD[3]
SERCOM5/
PAD[3]
TC5/
WO[1]
37
49
PB22
VDDIO
EXTINT[6]
SERCOM5/
PAD[2]
TC7/
WO[0]
GCLK_IO[0]
38
50
PB23
VDDIO
EXTINT[7]
SERCOM5/
PAD[3]
TC7/
WO[1]
GCLK_IO[1]
25
39
51
PA27
VDDIO
EXTINT[15]
GCLK_IO[0]
27
41
53
PA28
VDDIO
EXTINT[8]
GCLK_IO[0]
31
45
57
PA30
VDDIO
EXTINT[10]
SERCOM1/
PAD[2]
TC1/
WO[0]
SWCLK
32
46
58
PA31
VDDIO
EXTINT[11]
SERCOM1/
PAD[3]
TC1/
WO[1]
SWDIO
(5)
© 2017 Microchip Technology Inc.
REF
SERCOM(
3)
SAMD20G
Datasheet Complete
GCLK_IO[0]
DS60001504B-page 23
SAM D20 Family
I/O Multiplexing and Considerations
Pin(1)
SAMD20E
SAMD20G
I/O Pin
Supply
Type
B(2)
A
SAMD20J
EIC
REF
ADC
AC
PTC
DAC
C
D
SERCOM(
3)
SERCOMALT
E
F
TC(4)
59
PB30
VDDIO
I2C
EXTINT[14]
SERCOM5/
PAD[0]
TC0/
WO[0]
60
PB31
VDDIO
I2C
EXTINT[15]
SERCOM5/
PAD[1]
TC0/
WO[1]
61
PB00
VDDANA
EXTINT[0]
AIN[8]
Y[6]
SERCOM5/
PAD[2]
TC7/
WO[0]
62
PB01
VDDANA
EXTINT[1]
AIN[9]
Y[7]
SERCOM5/
PAD[3]
TC7/
WO[1]
47
63
PB02
VDDANA
EXTINT[2]
AIN[10]
Y[8]
SERCOM5/
PAD[0]
TC6/
WO[0]
48
64
PB03
VDDANA
EXTINT[3]
AIN[11]
Y[9]
SERCOM5/
PAD[1]
TC6/
WO[1]
G
H
COM
AC/GCLK
Note:
1. Use the SAMD20J pinout muxing for WLCSP45 package.
2. All analog pin functions are on peripheral function B. Peripheral function B must be selected to
disable the digital control of the pin.
3. Only some pins can be used in SERCOM I2C mode. See the Type column for using a SERCOM pin
in I2C mode. Refer to Electrical Characteristics for details on the I2C pin characteristics.
4. Note that TC6 and TC7 are not supported on the SAM D20E and SAM D20G devices. Refer to
Configuration Summary for details.
5. This function is only activated in the presence of a debugger.
6. If the PA24 and PA25 pins are not connected, it is recommended to enable a pull-up on PA24 and
PA25 through input GPIO mode. The aim is to avoid an eventually extract power consumption
(
很抱歉,暂时无法提供与“ATSAMD20G18A-AUT”相匹配的价格&库存,您可以联系我们找货
免费人工找货- 国内价格 香港价格
- 2500+25.624472500+3.08868
- 国内价格 香港价格
- 1+31.077771+3.74599
- 25+28.3996025+3.42318
- 100+25.62436100+3.08866