
94
ATmega8515(L)
2512A–AVR–04/02
16-bit
Timer/Counter1
The16-bit Timer/Counter unit allows accurate program execution timing (event man-
agement), wave generation, andsignal timing measurement. Themainfeatures are:
•
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)
Overview Most register andbit references in thisdocument are writteningeneralform. A lower
case“n”replaces theTimer/Counter number, and a lowercase“x” replaces theoutput
compare unit channel. However, when using the register orbit defines in a program, the
precise formmust beused, i.e., TCNT1 for accessing Timer/Counter1 counter value
andsoon.The physicalI/Oregister andbit locationsfor ATmega8515 are listed in the
“16-bit Timer/Counter RegisterDescription” on page 116.
A simplifiedblock diagram of the16-bit Timer/Counter isshowninFigure46. CPU
accessible I/Oregisters, including I/Obits andI/Opins, are showninbold.
Commentaires sur ces manuels