11 8-Bit Timer/Counter0 With Pwm; Features; Overview - Atmel ATtiny13A Manual

8-bit avr microcontroller with 1k bytes in-system programmable flash
Table of Contents

Advertisement

11. 8-bit Timer/Counter0 with PWM
11.1

Features

11.2

Overview

8126F–AVR–05/12
Two Independent Output Compare Units
Double Buffered Output Compare Registers
Clear Timer on Compare Match (Auto Reload)
Glitch Free, Phase Correct Pulse Width Modulator (PWM)
Variable PWM Period
Frequency Generator
Three Independent Interrupt Sources (TOV0, OCF0A, and OCF0B)
Timer/Counter0 is a general purpose 8-bit Timer/Counter module, with two independent Output
Compare Units, and with PWM support. It allows accurate program execution timing (event man-
agement) and wave generation.
A simplified block diagram of the 8-bit Timer/Counter is shown in
the actual placement of I/O pins, refer to
Registers, including I/O bits and I/O pins, are shown in bold. The device-specific I/O Register
and bit locations are listed in the
Figure 11-1. 8-bit Timer/Counter Block Diagram
Timer/Counter
TCNTn
=
OCRnA
=
OCRnB
TCCRnA
"Pinout of ATtiny13A" on page
"Register Description" on page
Count
Clear
Control Logic
Direction
clk
Tn
TOP
BOTTOM
=
=
Fixed
TOP
Value
TCCRnB
ATtiny13A
Figure 11-1 on page
2. CPU accessible I/O
70.
TOVn
(Int.Req.)
Clock Select
Edge
Detector
( From Prescaler )
0
OCnA
(Int.Req.)
Waveform
Generation
OCnB
(Int.Req.)
Waveform
Generation
59. For
Tn
OCnA
OCnB
59

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ATtiny13A and is the answer not in the manual?

Table of Contents

Save PDF