Atmel Xplained Pro Evaluation Kit for the ATSAMD21J18A Microcontroller ATSAMD21-XPRO ATSAMD21-XPRO Hoja De Datos
Los códigos de productos
ATSAMD21-XPRO
641
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181C–SAM-D21_Datasheet–07/2014
30.5 Product Dependencies
In order to use this peripheral, other parts of the system must be configured correctly, as described below.
30.5.1 I/O Lines
Using the TCC’s I/O lines requires the I/O pins to be configured. Refer to
30.5.2 Power Management
The TCC will continue to operate in any sleep mode where the selected source clock is running. The TCC’s interrupts
can be used to wake up the device from sleep modes. Events connected to the event system can trigger other operations
in the system without exiting sleep modes. Refer to
can be used to wake up the device from sleep modes. Events connected to the event system can trigger other operations
in the system without exiting sleep modes. Refer to
modes.
30.5.3 Clocks
The TCC bus clock (CLK_TCCx_APB, where x represents the specific TCC instance number) can be enabled and
disabled in the power manager, and the default state of CLK_TCCx_APB can be found in the Peripheral Clock Masking
section in
disabled in the power manager, and the default state of CLK_TCCx_APB can be found in the Peripheral Clock Masking
section in
A generic clock (GCLK_TCCx) is required to clock the TCC. This clock must be configured and enabled in the generic
clock controller before using the TCC. Refer to
clock controller before using the TCC. Refer to
for details.
This generic clock is asynchronous to the bus clock (CLK_TCCx_APB). Due to this asynchronicity, writes to certain
registers will require synchronization between the clock domains. Refer to
registers will require synchronization between the clock domains. Refer to
details.
30.5.4 DMA
The DMA request lines are connected to the DMA Controller (DMAC). Using the TCC
DMA requests, requires the DMA
Controller to be configured first. Refer to
for details.
30.5.5 Interrupts
The interrupt request line is connected to the Interrupt Controller. Using the TCC interrupts requires the interrupt
controller to be configured first. Refer to
controller to be configured first. Refer to
for details.
30.5.6 Events
The events are connected to the Event System. Refer to
for details on how to
configure the Event System.
30.5.7 Debug Operation
When the CPU is halted in debug mode the TCC will halt normal operation. The TCC can be forced to continue operation
during debugging. Refer to
during debugging. Refer to
for details.
30.5.8 Register Access Protection
All registers with write-access are optionally write-protected by the peripheral access controller (PAC), except the
following registers:
following registers:
z
Interrupt Flag register (INTFLAG)
z
Status register (STATUS)
z
Period and Period Buffer registers (PER, PERB)
z
Compare/Capture and Compare/Capture Buffer registers (CCx, CCBx)
z
Control Waveform and Control Waveform Buffer registers (WAVE, WAVEB)
z
Pattern Generation Value and Pattern Generation Value Buffer registers (PATT, PATTB)