AT91M40400-25C ATMEL Corporation, AT91M40400-25C Datasheet - Page 85

no-image

AT91M40400-25C

Manufacturer Part Number
AT91M40400-25C
Description
16/32-bit Microcontroller, 2.7V to 3.6V Operating Range
Manufacturer
ATMEL Corporation
Datasheet
Signal Name Description
Note: After a hardware reset, the Timer Counter block pins
are controlled by the PIO Controller. They must be config-
ured to be controlled by the peripheral before being used.
Timer Counter Description
The three Timer Counter channels are independent and
identical in operation. The registers for channel program-
ming are listed in Table 11.
Counter
Each Timer Counter channel is organized around a 16-bit
counter. The value of the counter is incremented at each
positive edge of the selected clock. When the counter has
reached the value 0xFFFF and passes to 0x0000, an over-
flow occurs and the bit COVFS in TC_SR (Status Register)
is set.
The current value of the counter is accessible in real time
by reading TC_CV. The counter can be reset by a trigger.
In this case, the counter value passes to 0x0000 on the
next valid edge of the selected clock.
Clock Selection
At block level, input clock signals of each channel can
either be connected to the external inputs TCLK0, TCLK1
or TCLK2, or be connected to the configurable I/O signals
TIOA0, TIOA1 or TIOA2 for chaining by programming the
TC_BMR (Block Mode).
Each channel can independently select an internal or exter-
nal clock source for its counter:
Internal clock signals: MCKI/2, MCKI/8, MCKI/32,
MCKI/128, MCKI/1024
External clock signals: XC0, XC1 or XC2
TCLK0, TCLK1, TCLK2
Channel Signal
XC0, XC1, XC2
Block Signals
TIOA0
TIOB0
TIOA1
TIOB1
TIOA2
TIOB2
SYNC
TIOA
TIOB
INT
Description
External Clock Inputs
Capture Mode: General purpose input
Waveform Mode: General purpose output
Capture Mode: General purpose input
Waveform Mode: General purpose input/output
Interrupt signal output
Synchronization input signal
Description
External Clock Inputs
TIOA signal for Channel 0
TIOB signal for Channel 0
TIOA signal for Channel 1
TIOB signal for Channel 1
TIOA signal for Channel 2
TIOB signal for Channel 2
The selected clock can be inverted with the CLKI bit in
TC_CMR (Channel Mode). This allows counting on the
opposite edges of the clock.
The burst function allows the clock to be validated when an
external signal is high. The BURST parameter in the Mode
Register defines this signal (none, XC0, XC1, XC2).
Note: In all cases, if an external clock is used, the duration
of each of its levels must be longer than the system clock
(MCKI) period. The external clock frequency must be at
least 2.5 times lower than the system clock (MCKI).
Figure 42. Clock Selection
MCKI/2
MCKI/8
MCKI/32
MCKI/128
MCKI/1024
XC0
XC1
XC2
1
CLKS
BURST
AT91M40400
CLKI
Selected
Clock
85

Related parts for AT91M40400-25C