Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

ATMEGA161-4AI Datasheet(PDF) 39 Page - ATMEL Corporation

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

ATMEGA161-4AI Datasheet(HTML) 39 Page - ATMEL Corporation

Back Button ATMEGA161-4AI Datasheet HTML 35Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 36Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 37Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 38Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 39Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 40Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 41Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 42Page - ATMEL Corporation ATMEGA161-4AI Datasheet HTML 43Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 39 / 134 page
background image
ATmega161(L)
39
Notes:
1. In PWM mode, these bits have a different function. Refer to Table 12 for a detailed description.
2. n = 0 or 2
• Bit 3 - CTC0/CTC2: Clear Timer/Counter on Compare Match
When the CTC0 or CTC2 control bit is set (one), Timer/Counter0 or Timer/Counter2 is reset to $00 in the CPU clock cycle
after a compare match. If the control bit is cleared, Timer/Counter continues counting and is unaffected by a compare
match. When a prescaling of 1 is used, and the compare register is set to C, the timer will count as follows if CTC0/CTC2 is
set:
... | C-1 | C | 0 | 1 | ...
When the prescaler is set to divide by 8, the timer will count like this:
... | C-1, C-1, C-1, C-1, C-1, C-1, C-1, C-1 | C, C, C, C, C, C, C, C | 0, 0, 0, 0, 0, 0, 0, 0 | 1, 1, 1, ...
In PWM mode, this bit has a different function. If the CTC0 or CTC2 bit is cleared in PWM mode, the Timer/Counter acts as
an up/down counter. If the CTC0 or CTC2 bit is set (one), the Timer/Counter wraps when it reaches $FF. Refer to page 41
for a detailed description.
• Bits 2,1,0 - CS02, CS01, CS00/ CS22, CS21, CS20: Clock Select bits 2,1 and 0
The Clock Select bits 2,1 and 0 define the prescaling source of Timer/Counter0 and Timer/Counter2.
Table 9. Compare Mode Select
COMn1
COMn0
Description
0
0
Timer/Counter disconnected from output pin OCn
0
1
Toggle the OCn output line.
1
0
Clear the OCn output line (to zero).
1
1
Set the OCn output line (to one).
Table 10. Clock 0 Prescale Select
CS02
CS01
CS00
Description
0
0
0
Stop, the Timer/Counter0 is stopped.
001
CK
010
CK/8
011
CK/64
100
CK/256
101
CK/1024
1
1
0
External Pin PB0(T0), falling edge
1
1
1
External Pin PB0(T0), rising edge



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