ATA6602-PLQW ATMEL [ATMEL Corporation], ATA6602-PLQW Datasheet - Page 130

no-image

ATA6602-PLQW

Manufacturer Part Number
ATA6602-PLQW
Description
Microcontroller with LIN Transceiver, 5V Regulator and Watchdog
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL
Quantity:
1 727
Part Number:
ATA6602-PLQW
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
4.13.4
4.14
4.14.1
130
16-bit Timer/Counter1 with PWM
ATA6602/ATA6603
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 63
152.
R
6
0
R
5
0
R
4
0
R
3
0
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
4921C–AUTO–01/07
131. The
GTCCR

Related parts for ATA6602-PLQW