AT90PWM81-16SF Atmel, AT90PWM81-16SF Datasheet - Page 94

IC MCU AVR 8K FLASH ISP 20SOIC

AT90PWM81-16SF

Manufacturer Part Number
AT90PWM81-16SF
Description
IC MCU AVR 8K FLASH ISP 20SOIC
Manufacturer
Atmel
Series
AVR® 90PWM Lightingr
Datasheet

Specifications of AT90PWM81-16SF

Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
SPI
Peripherals
Brown-out Detect/Reset, PWM, WDT
Number Of I /o
16
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
256 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 8x10b; D/A 1x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 105°C
Package / Case
20-SOIC (7.5mm Width)
For Use With
ATSTK600-SOIC - STK600 SOCKET/ADAPTER FOR SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT90PWM81-16SF
Manufacturer:
Atmel
Quantity:
2 428
11.6.2
11.7
94
Timer/Counter Timing Diagrams
AT90PWM81
Clear Timer on Compare Match (CTC) Mode
not cleared. However, combined with the timer overflow interrupt that automatically clears the TOV1
Flag, the timer resolution can be increased by software. There are no special cases to consider in the Nor-
mal mode, a new counter value can be written anytime.
The Input Capture unit is easy to use in Normal mode. However, observe that the maximum interval
between the external events must not exceed the resolution of the counter. If the interval between events
are too long, the timer overflow interrupt must be used to extend the resolution for the capture unit.
In Clear Timer on Compare or CTC mode (WGM13 = 1, previous mode 12), the ICR1 Register are used
to manipulate the counter resolution. In CTC mode the counter is cleared to zero when the counter value
(TCNT1) matches the ICR1 . The ICR1 define the top value for the counter, hence also its resolution. This
mode allows greater control of the compare match output frequency. It also simplifies the operation of
counting external events.
The timing diagram for the CTC mode is shown in
until a compare match occurs with ICR1, and then counter (TCNT1) is cleared.
Figure 11-5.
An interrupt can be generated at each time the counter value reaches the TOP value by using the ICF1
Flag . If the interrupt is enabled, the interrupt handler routine can be used for updating the TOP value.
However, changing the TOP to a value close to BOTTOM when the counter is running with none or a low
prescaler value must be done with care since the CTC mode does not have the double buffering feature. If
the new value written to ICR1 is lower than the current value of TCNT1, the counter will miss the com-
pare match. The counter will then have to count to its maximum value (0xFFFF) and wrap around starting
at 0x0000 before the compare match can occur. In many cases this feature is not desirable.
As for the Normal mode of operation, the TOV1 Flag is set in the same timer clock cycle that the counter
counts from MAX to 0x0000.
The Timer/Counter is a synchronous design and the timer clock (clk
enable signal in the following figures. The figures include information on when Interrupt Flags are set.
Figure 11-6
TCNTn
shows the count sequence close to TOP in various modes.
CTC Mode, Timing Diagram
Figure
11-5. The counter value (TCNT1) increases
T1
) is therefore shown as a clock
(Interrupt on TOP)
ICFn Interrupt Flag Set
7734P–AVR–08/10

Related parts for AT90PWM81-16SF