ATmega328 Atmel Corporation, ATmega328 Datasheet - Page 142

no-image

ATmega328

Manufacturer Part Number
ATmega328
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega328

Flash (kbytes)
32 Kbytes
Pin Count
32
Max. Operating Frequency
20 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
2
Eeprom (bytes)
1024
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
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega328-AU
Manufacturer:
SAMSUNG
Quantity:
15 000
Part Number:
ATmega328-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328-AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328-PU
Manufacturer:
USB
Quantity:
3 200
Part Number:
ATmega328P-10AU
Manufacturer:
IDT
Quantity:
493
Part Number:
ATmega328P-15AZ
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-15AZ
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
ATmega328P-20MU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega328P-AN
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-ANR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega328P-AU
Manufacturer:
KINGBRIGHT
Quantity:
37 000
Part Number:
ATmega328P-AU
Manufacturer:
ATMEL
Quantity:
1 250
Part Number:
ATmega328P-AU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega328P-AU
Manufacturer:
MICROCHIP/微芯
Quantity:
2 000
Company:
Part Number:
ATmega328P-AU
Quantity:
3 268
Company:
Part Number:
ATmega328P-AU
Quantity:
6 688
ATmega48A/PA/88A/PA/168A/PA/328/P
• Bit 5 – ICF1: Timer/Counter1, Input Capture Flag
This flag is set when a capture event occurs on the ICP1 pin. When the Input Capture Register
(ICR1) is set by the WGM13:0 to be used as the TOP value, the ICF1 Flag is set when the coun-
ter reaches the TOP value.
ICF1 is automatically cleared when the Input Capture Interrupt Vector is executed. Alternatively,
ICF1 can be cleared by writing a logic one to its bit location.
• Bit 4, 3 – Reserved
These bits are unused bits in the ATmega48A/PA/88A/PA/168A/PA/328/P, and will always read
as zero.
• Bit 2 – OCF1B: Timer/Counter1, Output Compare B Match Flag
This flag is set in the timer clock cycle after the counter (TCNT1) value matches the Output
Compare Register B (OCR1B).
Note that a Forced Output Compare (FOC1B) strobe will not set the OCF1B Flag.
OCF1B is automatically cleared when the Output Compare Match B Interrupt Vector is exe-
cuted. Alternatively, OCF1B can be cleared by writing a logic one to its bit location.
• Bit 1 – OCF1A: Timer/Counter1, Output Compare A Match Flag
This flag is set in the timer clock cycle after the counter (TCNT1) value matches the Output
Compare Register A (OCR1A).
Note that a Forced Output Compare (FOC1A) strobe will not set the OCF1A Flag.
OCF1A is automatically cleared when the Output Compare Match A Interrupt Vector is exe-
cuted. Alternatively, OCF1A can be cleared by writing a logic one to its bit location.
• Bit 0 – TOV1: Timer/Counter1, Overflow Flag
The setting of this flag is dependent of the WGM13:0 bits setting. In Normal and CTC modes,
the TOV1 Flag is set when the timer overflows. Refer to
Table 16-4 on page 138
for the TOV1
Flag behavior when using another WGM13:0 bit setting.
TOV1 is automatically cleared when the Timer/Counter1 Overflow Interrupt Vector is executed.
Alternatively, TOV1 can be cleared by writing a logic one to its bit location.
142
8271D–AVR–05/11

Related parts for ATmega328