ATA6603-EK Atmel, ATA6603-EK Datasheet - Page 131

no-image

ATA6603-EK

Manufacturer Part Number
ATA6603-EK
Description
MCU, MPU & DSP Development Tools Demoboard LIN-MCM
Manufacturer
Atmel
Datasheet

Specifications of ATA6603-EK

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
4.13.4
4.14
4.14.1
4921E–AUTO–09/09
16-bit Timer/Counter1 with PWM
General Timer/Counter Control Register – GTCCR
Overview
The 16-bit Timer/Counter unit allows accurate program execution timing (event management),
wave generation, and signal timing measurement. The main features are:
Most register and bit references in this section are written in general form. A lower case “n”
replaces the Timer/Counter number, and a lower case “x” replaces the Output Compare unit
channel. However, when using the register or bit defines in a program, the precise form must be
used, i.e., TCNT1 for accessing Timer/Counter1 counter value and so on.
A simplified block diagram of the 16-bit Timer/Counter is shown in
device-specific I/O Register and bit locations are listed in the
Description” on page
The PRTIM1 bit in
enable Timer/Counter1 module.
Initial Value
Read/Write
• Bit 7 – TSM: Timer/Counter Synchronization Mode
• Bit 0 – PSRSYNC: Prescaler Reset
True 16-bit Design (i.e., Allows 16-bit PWM)
Two independent Output Compare Units
Double Buffered Output Compare Registers
One Input Capture Unit
Input Capture Noise Canceler
Clear Timer on Compare Match (Auto Reload)
Glitch-free, Phase Correct Pulse Width Modulator (PWM)
Variable PWM Period
Frequency Generator
External Event Counter
Four independent interrupt Sources (TOV1, OCF1A, OCF1B, and ICF1)
Writing the TSM bit to one activates the Timer/Counter Synchronization mode. In this mode,
the value that is written to the PSRASY and PSRSYNC bits is kept, hence keeping the cor-
responding prescaler reset signals asserted. This ensures that the corresponding
Timer/Counters are halted and can be configured to the same value without the risk of one
of them advancing during configuration. When the TSM bit is written to zero, the PSRASY
and PSRSYNC bits are cleared by hardware, and the Timer/Counters start counting
simultaneously.
When this bit is one, Timer/Counter1 and Timer/Counter0 prescaler will be Reset. This bit is
normally cleared immediately by hardware, except if the TSM bit is set. Note that
Timer/Counter1 and Timer/Counter0 share the same prescaler and a reset of this prescaler
will affect both timers.
Bit
TSM
R/W
7
0
“Power Reduction Register - PRR” on page 64
153.
R
6
0
R
5
0
R
4
0
R
3
0
ATA6602/ATA6603
R
2
0
“16-bit Timer/Counter Register
Figure 4-40 on page
PSRASY
R/W
must be written to zero to
1
0
PSRSYNC
R/W
0
0
132. The
GTCCR
131

Related parts for ATA6603-EK