ATAM893X-TKHYZ ATMEL [ATMEL Corporation], ATAM893X-TKHYZ Datasheet - Page 36

no-image

ATAM893X-TKHYZ

Manufacturer Part Number
ATAM893X-TKHYZ
Description
Flash Version for ATAR080, ATAR090/890 and ATAR092/892
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
5.3.2
36
ATAM893-D
Timer 2
Table 5-7.
Timer 2 is an 8/12-bit timer used for:
Timer 2 can be used as interval timer for interrupt generation, as signal generator or as baud-
rate generator and modulator for the serial interface. It consists of a 4-bit and an 8-bit up counter
stage which both have compare registers. The 4-bit counter stages of Timer 2 are cascadable
as a 12-bit timer or as an 8-bit timer with a 4-bit prescaler. The timer can also be configured as
an 8-bit timer and separate a 4-bit prescaler.
The Timer 2 input can be supplied via the system clock, the external input clock (T2I), the Timer
1 output clock, the Timer 3 output clock or the shift clock of the serial interface. The external
input clock T2I is not synchronized with SYSCL. Therefore, it is possible to use Timer 2 with a
higher clock speed than SYSCL. Furthermore, with that input clock the Timer 2 operates in the
power-down mode SLEEP (CPU core
DOWN (CPU core
SLEEP if NSTOP = 0. The 4-bit counter stages of Timer 2 have an additional clock output
(POUT).
Its output has a modulator stage that allows the generation of pulses as well as the generation
and modulation of carrier frequencies. The Timer 2 output can modulate with the shift register
data output to generate Bi-phase- or Manchester code.
If the serial interface is used to modulate a bit-stream, the 4-bit stage of Timer 2 has a special
task. The shift register can only handle bit-stream lengths divisible by 8. For other lengths, the
4-bit counter stage can be used to stop the modulator after the right bit-count is shifted out.
If the timer is used for carrier frequency modulation, the 4-bit stage works together with an addi-
tional 2-bit duty cycle generator like a 6-bit prescaler to generate carrier frequency and duty
cycle. The 8-bit counter is used to enable and disable the modulator output for a programmable
count of pulses.
For programming the time interval, the timer has a 4-bit and an 8-bit compare register. For pro-
gramming the timer function, it has four mode and control registers. The comparator output of
stage 2 is controlled by a special compare mode register (T2CM). This register contains mask
bits for the actions (counter reset, output toggle, timer interrupt) which can be triggered by a
compare match event or the counter overflow. This architecture enables the timer function for
various modes.
• Interrupt, square-wave, pulse and duty cycle generation
• Baud-rate generation for the internal shift register
• Manchester and Bi-phase modulation together with the SSI
• Carrier frequency generation and modulation together with the SSI
WDT1
0
0
1
1
WDT0
Watchdog Time Control Bits
0
1
0
1
sleep and OSC-Stop
Divider
131072
16384
2048
512
Delay Time to Reset with
SUBCL = 32 kHz
sleep and OSC-Stop
15.625 ms
no). All other clock sources supply no clock signal in
62.5 ms
0.5 s
4 s
yes) as well as in POWER-
Delay Time to Reset with
0.256 ms/0.512 ms
1.024 ms/2.048 ms
SYSCL = 2/1 MHz
65.5 ms/131 ms
8.2 ms/16.4 ms
4680C–4BMCU–01/05

Related parts for ATAM893X-TKHYZ