at91cap7e ATMEL Corporation, at91cap7e Datasheet - Page 402

no-image

at91cap7e

Manufacturer Part Number
at91cap7e
Description
Customizable Microcontroller
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at91cap7e-NA-ZJ
Manufacturer:
Atmel
Quantity:
10 000
30.5.4
Figure 30-4. Clock Control
30.5.5
30.5.6
402
AT91CAP7E
Clock Control
TC Operating Modes
Trigger
The clock of each counter can be controlled in two different ways: it can be enabled/disabled
and started/stopped. See
Each channel can independently operate in two different modes:
The TC Operating Mode is programmed with the WAVE bit in the TC Channel Mode Register.
In Capture Mode, TIOA and TIOB are configured as inputs.
In Waveform Mode, TIOA is always configured to be an output and TIOB is an output if it is not
selected to be the external trigger.
A trigger resets the counter and starts the counter clock. Three types of triggers are common to
both modes, and a fourth external trigger is available to each mode.
The following triggers are common to both modes:
• The clock can be enabled or disabled by the user with the CLKEN and the CLKDIS
• The clock can also be started or stopped: a trigger (software, synchro, external or compare)
• Capture Mode provides measurement on signals.
• Waveform Mode provides wave generation.
commands in the Control Register. In Capture Mode it can be disabled by an RB load event if
LDBDIS is set to 1 in TC_CMR. In Waveform Mode, it can be disabled by an RC Compare
event if CPCDIS is set to 1 in TC_CMR. When disabled, the start or the stop actions have no
effect: only a CLKEN command in the Control Register can re-enable the clock. When the
clock is enabled, the CLKSTA bit is set in the Status Register.
always starts the clock. The clock can be stopped by an RB load event in Capture Mode
(LDBSTOP = 1 in TC_CMR) or a RC compare event in Waveform Mode (CPCSTOP = 1 in
TC_CMR). The start and the stop commands have effect only if the clock is enabled.
Selected
Counter
Clock
Clock
Q
S
R
Figure
Trigger
30-4.
CLKSTA
Q
CLKEN
R
S
Event
Stop
CLKDIS
Disable
Event
8549A–CAP–10/08

Related parts for at91cap7e