ATtiny28L

Manufacturer Part NumberATtiny28L
ManufacturerAtmel Corporation
ATtiny28L datasheets
 


Specifications of ATtiny28L

Flash (kbytes)2 KbytesPin Count28
Max. Operating Frequency4 MHzCpu8-bit AVR
Hardware Qtouch AcquisitionNoMax I/o Pins11
Ext Interrupts10Usb SpeedNo
Usb InterfaceNoGraphic LcdNo
Video DecoderNoCamera InterfaceNo
Analog Comparators1Resistive Touch ScreenNo
Temp. SensorNoCrypto EngineNo
Sram (kbytes)0.03Self Program MemoryNO
Dram MemoryNoNand InterfaceNo
PicopowerNoTemp. Range (deg C)-40 to 85
I/o Supply Class1.8 to 5.5Operating Voltage (vcc)1.8 to 5.5
FpuNoMpu / Mmuno / no
Timers132khz RtcNo
Calibrated Rc OscillatorYes  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Page 31
32
Page 32
33
Page 33
34
Page 34
35
Page 35
36
Page 36
37
Page 37
38
Page 38
39
Page 39
40
Page 40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Page 35/81

Download datasheet (664Kb)Embed
PrevNext
Register Description
Timer/Counter0 Control
Register – TCCR0
1062F–AVR–07/06
The 8-bit Timer/Counter0 can select clock source from CK, prescaled CK or an external
pin. In addition, it can be stopped as described in the specification for the
Timer/Counter0 Control Register (TCCR0). The overflow status flag is found in the Inter-
rupt Flag Register (IFR). Control signals are found in the Timer/Counter0 Control
Register (TCCR0). The interrupt enable/disable setting for Timer/Counter0 is found in
the Interrupt Control Register (ICR).
When Timer/Counter0 is externally clocked, the external signal is synchronized with the
oscillator frequency of the CPU. To ensure proper sampling of the external clock, the
minimum time between two external clock transitions must be at least one internal CPU
clock period. The external clock signal is sampled on the rising edge of the internal CPU
clock.
The 8-bit Timer/Counter0 features both a high-resolution and a high-accuracy usage
with the lower prescaling opportunities. Similarly, the high prescaling opportunities make
the Timer/Counter0 useful for lower speed functions or exact timing functions with infre-
quent actions.
Bit
7
6
5
$04
FOV0
Read/Write
R/W
R
R
Initial Value
0
0
0
• Bit 7 – FOV0: Force Overflow
Writing a logical “1” to this bit forces a change on the overflow output pin PA2 according
to the values already set in OOM01 and OOM00. If the OOM01 and OOM00 bits are
written in the same cycle as FOV0, the new settings will not take effect until the next
overflow or forced overflow occurs. The Force Overflow bit can be used to change the
output pin without waiting for an overflow in the timer. The automatic action programmed
in OOM01 and OOM00 happens as if an overflow had occurred, but no interrupt is gen-
erated. The FOV0 bit will always read as zero, and writing a zero to this bit has no effect.
• Bits 6, 5 – Res: Reserved Bits
These bits are reserved bits in the ATtiny28 and always read as zero.
• Bits 4, 3 – OOM01, OOM00: Overflow Output Mode, Bits 1 and 0
The OOM01 and OOM00 control bits determine any output pin action following an over-
flow or a forced overflow in Timer/Counter0. Any output pin actions affect pin PA2. The
control configuration is shown in Table 13.
Table 13. Overflow Output Mode Select
OOM01
OOM00
Description
0
0
Timer/Counter0 disconnected from output pin PA2
0
1
Toggle the PA2 output line.
1
0
Clear the PA2 output line to zero.
1
1
Set the PA2 output line to one.
ATtiny28L/V
4
3
2
1
OOM01
OOM00
CS02
CS01
R/W
R/W
R/W
R/W
0
0
0
0
0
CS00
TCCR0
R/W
0
35