atmega103 ATMEL Corporation, atmega103 Datasheet - Page 48

no-image

atmega103

Manufacturer Part Number
atmega103
Description
Atmega103 8-bit With 128k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega103-6AC
Manufacturer:
ATMEL
Quantity:
1
Part Number:
atmega103-6AI
Manufacturer:
ATMEL
Quantity:
586
Part Number:
atmega103-6AI
Manufacturer:
Atmel
Quantity:
10 000
48
ATmega103(L)
Figure 33. Timer/Counter1 Block Diagram
Timer/Counter1 can also be used as an 8-, 9- or 10-bit Pulse Width Modulator. In this
mode the counter and the OCR1A/OCR1B Registers serve as a dual glitch-free stand-
alone PWM with centered pulses. Refer to page 53 for a detailed description of this
function.
The Input Capture function of Timer/Counter1 provides a capture of the Timer/Counter1
contents to the Input Capture Register (ICR1), triggered by an external event on the
Input Capture pin – PD4/(IC1). The actual capture event settings are defined by the
Timer/Counter1 Control Register (TCCR1B). In addition, the Analog Comparator can be
set to trigger the Input Capture. Refer to “Analog Comparator” on page 75 for details on
this. The ICP pin logic is shown in Figure 34.
Figure 34. ICP Pin Schematic Diagram
15
15
15
15
TIMER/COUNTER1 OUTPUT COMPARE REGISTER A
REGISTER (TIMSK)
TIMER INT. MASK
T/C1 INPUT CAPTURE REGISTER (ICR1)
T/C1 OVER-
FLOW IRQ
TIMER/COUNTER1 (TCNT1)
16-BIT COMPARATOR
8
8
8
8
T/C1 COMPARE
7
7
7
7
MATCHA IRQ
REGISTER (TIFR)
TIMER INT. FLAG
CAPTURE
TRIGGER
T/C1 COMPARE
MATCHB IRQ
0
0
0
0
REGISTER A (TCCR1A)
15
15
TIMER/COUNTER1 OUTPUT COMPARE REGISTER B
T/C CLEAR
T/C CLOCK SOURCE
UP/DOWN
CAPTURE IRQ
T/C1 CONTROL
T/C1 INPUT
16-BIT COMPARATOR
CONTROL
8
8
LOGIC
7
7
REGISTER B (TCCR1B)
T/C1 CONTROL
0945I–AVR–02/07
0
0
CK
T1

Related parts for atmega103