Electronic Components Datasheet Search
  English  ▼

X  

ATtiny48 Datasheet(PDF) 77 Page - ATMEL Corporation

Part # ATtiny48
Description  8-bit Microcontroller with 4/8K Bytes In-System Programmable Flash
PDF  266 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

ATtiny48 Datasheet(HTML) 77 Page - ATMEL Corporation

Back Button ATtiny48 Datasheet HTML 73Page - ATMEL Corporation ATtiny48 Datasheet HTML 74Page - ATMEL Corporation ATtiny48 Datasheet HTML 75Page - ATMEL Corporation ATtiny48 Datasheet HTML 76Page - ATMEL Corporation ATtiny48 Datasheet HTML 77Page - ATMEL Corporation ATtiny48 Datasheet HTML 78Page - ATMEL Corporation ATtiny48 Datasheet HTML 79Page - ATMEL Corporation ATtiny48 Datasheet HTML 80Page - ATMEL Corporation ATtiny48 Datasheet HTML 81Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 77 / 266 page
background image
77
8008C–AVR–03/09
ATtiny48/88
Signal description (internal signals):
count
Increment or decrement TCNT0 by 1.
clear
Clear TCNT0 (set all bits to zero).
clk
Tn
Timer/Counter clock, referred to as clk
T0 in the following.
top
Signalize that TCNT0 has reached maximum value.
Depending of the mode of operation used, the counter is cleared or incremented at each timer
clock (clk
T0). clkT0 can be generated from an external or internal clock source, selected by the
Clock Select bits (CS02:0). When no clock source is selected (CS02:0 = 0) the timer is stopped.
However, the TCNT0 value can be accessed by the CPU, regardless of whether clk
T0 is present
or not. A CPU write overrides (has priority over) all counter clear or count operations.
The counting sequence is determined by the setting of the Clear Timer on Compare Match bit
(CTC0) located in the Timer/Counter Control Register (TCCR0A). For more details about
advanced counting sequences, see “Modes of Operation” on page 78.
The Timer/Counter Overflow Flag (TOV0) is set according to the mode of operation selected by
the CTC0 bit. TOV0 can be used for generating a CPU interrupt.
11.5
Output Compare Unit
The 8-bit comparator continuously compares TCNT0 with the Output Compare Registers
(OCR0A and OCR0B). Whenever TCNT0 equals OCR0A or OCR0B, the comparator signals a
match. A match will set the Output Compare Flag (OCF0A or OCF0B) at the next timer clock
cycle. If the corresponding interrupt is enabled, the Output Compare Flag generates an Output
Compare interrupt. The Output Compare Flag is automatically cleared when the interrupt is exe-
cuted. Alternatively, the flag can be cleared by software by writing a logical one to its I/O bit
location.
Figure 11-3 shows a block diagram of the Output Compare unit.
Figure 11-3. Output Compare Unit, Block Diagram
11.5.1
Compare Match Blocking by TCNT0 Write
All CPU write operations to the TCNT0 Register will block any compare match that occur in the
next timer clock cycle, even when the timer is stopped. This feature allows OCR0x to be initial-
OCFnx (Int.Req.)
= (8-bit Comparator )
OCRnx
DATA BUS
TCNTn



Html Pages

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 32 33 34 35 36 37 38 39 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 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com