ATmega640 Atmel Corporation, ATmega640 Datasheet - Page 148

no-image

ATmega640

Manufacturer Part Number
ATmega640
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega640

Flash (kbytes)
64 Kbytes
Pin Count
100
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
86
Ext Interrupts
32
Usb Speed
No
Usb Interface
No
Spi
5
Twi (i2c)
1
Uart
4
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
16
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
8
Eeprom (bytes)
4096
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
6
Output Compare Channels
16
Input Capture Channels
4
Pwm Channels
15
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega640-16AU
Manufacturer:
OSRAM
Quantity:
12 000
Part Number:
ATmega640-16AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega640-16AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega640-16AU
Quantity:
80
Part Number:
ATmega640-16AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega640-16CU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega640-16CUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega640V-8AU
Manufacturer:
PHILIPS
Quantity:
56
Part Number:
ATmega640V-8AU
Manufacturer:
Atmel
Quantity:
10 000
17.9
Table 17-2.
2549N–AVR–05/11
Mode
10
11
12
13
14
15
0
1
2
3
4
5
6
7
8
9
Modes of Operation
WGMn3
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
Waveform Generation Mode Bit Description
WGMn2
(CTCn)
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
non-PWM modes refer to
page
page
A change of the COMnx1:0 bits state will have effect at the first compare match after the bits are
written. For non-PWM modes, the action can be forced to have immediate effect by using the
FOCnx strobe bits.
The mode of operation, that is, the behavior of the Timer/Counter and the Output Compare pins,
is defined by the combination of the Waveform Generation mode (WGMn3:0) and Compare Out-
put mode (COMnx1:0) bits. The Compare Output mode bits do not affect the counting sequence,
while the Waveform Generation mode bits do. The COMnx1:0 bits control whether the PWM out-
put generated should be inverted or not (inverted or non-inverted PWM). For non-PWM modes
the COMnx1:0 bits control whether the output should be set, cleared or toggle at a compare
match.
Note:
For detailed timing information refer to
159, and for phase correct and phase and frequency correct PWM refer to
160.
(PWMn1)
WGMn1
See “Compare Match Output Unit” on page 147.
1. The CTCn and PWMn1:0 bit definition names are obsolete. Use the WGMn2:0 definitions.
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
However, the functionality and location of these bits are compatible with previous versions of
the timer.
(PWMn0)
WGMn0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Table 17-3 on page
PWM, Phase and Frequency
PWM, Phase Correct, 10-bit
PWM,Phase and Frequency
PWM, Phase Correct, 8-bit
PWM, Phase Correct, 9-bit
(1)
ATmega640/1280/1281/2560/2561
PWM, Phase Correct
PWM, Phase Correct
Mode of Operation
Fast PWM, 10-bit
Fast PWM, 8-bit
Fast PWM, 9-bit
Timer/Counter
(Reserved)
Fast PWM
Fast PWM
“Timer/Counter Timing Diagrams” on page
Normal
Correct
Correct
CTC
CTC
159. For fast PWM mode refer to
0xFFFF
OCRnA
OCRnA
0x00FF
0x01FF
0x03FF
0x00FF
0x01FF
0x03FF
OCRnA
OCRnA
ICRn
ICRn
ICRn
ICRn
TOP
Update of
OCRn
Immediate
Immediate
Immediate
BOTTOM
BOTTOM
BOTTOM
BOTTOM
BOTTOM
BOTTOM
BOTTOM
TOP
TOP
TOP
TOP
TOP
x
at
Table 17-4 on
Table 17-5 on
156.
TOVn Flag
BOTTOM
BOTTOM
BOTTOM
BOTTOM
BOTTOM
BOTTOM
BOTTOM
Set on
MAX
MAX
MAX
TOP
TOP
TOP
TOP
TOP
148

Related parts for ATmega640