Atmel Xplained Pro Evaluation Kit for the ATSAMD21J18A Microcontroller ATSAMD21-XPRO ATSAMD21-XPRO Data Sheet

Product codes
ATSAMD21-XPRO
Page of 1018
640
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181C–SAM-D21_Datasheet–07/2014
z
One input event for each channel
z
Output event:
z
Three output events (Count, Retrigger and Overflow) available for counter
z
One Compare Match/Input Capture event output for each channel
z
Interrupts:
z
Overflow and Retrigger interrupt
z
Compare Match/Input Capture interrupt
z
Interrupt on fault detection
z
Can be used with DMA and can trigger DMA transactions
30.3 Block Diagram
Figure 30-2. Timer/Counter Block Diagram
30.4 Signal Description
 in the 
peripheral. One signal can be mapped on several pins. 
Base Counter
Compare/Capture
(Unit x = {0,1,…,3})
Counter
=
CCx
CCBx
Waveform 
Generation
BV
=
PERB
PER
COUNT
BV
= 0
"count"
"clear"
"direction"
"load"
Control Logic
Prescaler
OVF (INT/Event/DMA Req.)
ERR (INT Req.)
TOP
"match"
MCx (INT/Event/DMA Req.)
Control Logic
"capture"
"e
v"
UPDAT
E
BOTTOM
Recoverable
Faults
Ou
tp
u
t
Ma
tr
ix
De
a
d
-T
im
e
In
se
rt
io
n
SWAP
Pa
tte
rn
Ge
n
e
ra
ti
o
n
N
o
n
-r
e
co
ve
ra
b
le
F
aul
ts
WO[0]
WO[1]
WO[2]
WO[3]
WO[4]
WO[5]
WO[6]
WO[7]
Event
System
"TCCx_EV0"
"TCCx_EV1"
"TCCx_MCx"
Pin Name
Type
Description
TCCx/WO[0]
Digital output
Compare channel 0 waveform output
TCCx/WO[1]
Digital output
Compare channel 1 waveform output
...
...
TCCx/WO[WO_NUM-1]
Digital output
Compare channel n waveform output