Electronic Components Datasheet Search
  English  ▼

X  

ATMEGA640 Datasheet(PDF) 160 Page - ATMEL Corporation

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

ATMEGA640 Datasheet(HTML) 160 Page - ATMEL Corporation

Back Button ATMEGA640 Datasheet HTML 156Page - ATMEL Corporation ATMEGA640 Datasheet HTML 157Page - ATMEL Corporation ATMEGA640 Datasheet HTML 158Page - ATMEL Corporation ATMEGA640 Datasheet HTML 159Page - ATMEL Corporation ATMEGA640 Datasheet HTML 160Page - ATMEL Corporation ATMEGA640 Datasheet HTML 161Page - ATMEL Corporation ATMEGA640 Datasheet HTML 162Page - ATMEL Corporation ATMEGA640 Datasheet HTML 163Page - ATMEL Corporation ATMEGA640 Datasheet HTML 164Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 160 / 449 page
background image
160
ATmega640/1280/1281/2560/2561
2549K–AVR–01/07
Register Description
TCCR1A – Timer/Counter 1
Control Register A
TCCR3A – Timer/Counter 3
Control Register A
TCCR4A – Timer/Counter 4
Control Register A
TCCR5A – Timer/Counter 5
Control Register A
• Bit 7:6 – COMnA1:0: Compare Output Mode for Channel A
• Bit 5:4 – COMnB1:0: Compare Output Mode for Channel B
• Bit 3:2 – COMnC1:0: Compare Output Mode for Channel C
The COMnA1:0, COMnB1:0, and COMnC1:0 control the output compare pins (OCnA,
OCnB, and OCnC respectively) behavior. If one or both of the COMnA1:0 bits are writ-
ten to one, the OCnA output overrides the normal port functionality of the I/O pin it is
connected to. If one or both of the COMnB1:0 bits are written to one, the OCnB output
overrides the normal port functionality of the I/O pin it is connected to. If one or both of
the COMnC1:0 bits are written to one, the OCnC output overrides the normal port func-
tionality of the I/O pin it is connected to. However, note that the Data Direction Register
(DDR) bit corresponding to the OCnA, OCnB or OCnC pin must be set in order to
enable the output driver.
When the OCnA, OCnB or OCnC is connected to the pin, the function of the COMnx1:0
bits is dependent of the WGMn3:0 bits setting. Table 83 shows the COMnx1:0 bit func-
tionality when the WGMn3:0 bits are set to a normal or a CTC mode (non-PWM).
• Bit 1:0 – WGMn1:0: Waveform Generation Mode
Combined with the WGMn3:2 bits found in the TCCRnB Register, these bits control the
counting sequence of the counter, the source for maximum (TOP) counter value, and
what type of waveform generation to be used, see Table 82. Modes of operation sup-
ported by the Timer/Counter unit are: Normal mode (counter), Clear Timer on Compare
match (CTC) mode, and three types of Pulse Width Modulation (PWM) modes. For
more information on the different modes, see “Modes of Operation” on page 149.
Bit
7654
3
2
1
0
(0x80)
COM1A1
COM1A0
COM1B1
COM1B0
COM1C1
COM1C0
WGM11
WGM10
TCCR1A
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0000
0
0
0
0
Bit
7654
3
2
1
0
(0x90)
COM3A1
COM3A0
COM3B1
COM3B0
COM3C1
COM3C0
WGM31
WGM30
TCCR3A
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0000
0
0
0
0
Bit
7654
3
2
1
0
(0xA0)
COM4A1
COM4A0
COM4B1
COM4B0
COM4C1
COM4C0
WGM41
WGM40
TCCR4A
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0000
0
0
0
0
Bit
7654
3
2
1
0
(0x120)
COM5A1
COM5A0
COM5B1
COM5B0
COM5C1
COM5C0
WGM51
WGM50
TCCR5A
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0000
0
0
0
0



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