ATmega16U2 Atmel Corporation, ATmega16U2 Datasheet - Page 151

no-image

ATmega16U2

Manufacturer Part Number
ATmega16U2
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega16U2

Flash (kbytes)
16 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
22
Ext Interrupts
21
Usb Transceiver
1
Usb Speed
Full Speed
Usb Interface
Device
Spi
2
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.5
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
5
Input Capture Channels
1
Pwm Channels
4
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATMEGA16U2
Manufacturer:
ATMEL
Quantity:
853
Part Number:
ATMEGA16U2
Manufacturer:
ST
0
Part Number:
ATmega16U2-AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega16U2-MU
Manufacturer:
RALINK
Quantity:
2 400
Company:
Part Number:
ATmega16U2-MU
Quantity:
250
Table 18-1.
18.3.2
7799D–AVR–11/10
Operating Mode
Asynchronous Normal mode
(U2Xn = 0)
Asynchronous Double Speed
mode (U2Xn = 1)
Synchronous Master mode
Double Speed Operation (U2Xn)
Equations for Calculating Baud Rate Register Setting
Table 18-1
ing the UBRRn value for each mode of operation using an internally generated clock source.
Note:
Some examples of UBRRn values for some system clock frequencies are found in
page
The transfer rate can be doubled by setting the U2Xn bit in UCSRnA. Setting this bit only has
effect for the asynchronous operation. Set this bit to zero when using synchronous operation.
Setting this bit will reduce the divisor of the baud rate divider from 16 to 8, effectively doubling
the transfer rate for asynchronous communication. Note however that the Receiver will in this
case only use half the number of samples (reduced from 16 to 8) for data sampling and clock
recovery, and therefore a more accurate baud rate setting and system clock are required when
this mode is used. For the Transmitter, there are no downsides.
172.
BAUD
f
UBRRn
OSC
1. The baud rate is defined to be the transfer rate in bit per second (bps)
contains equations for calculating the baud rate (in bits per second) and for calculat-
Equation for Calculating Baud Rate
BAUD
BAUD
BAUD
Baud rate (in bits per second, bps)
System Oscillator clock frequency
Contents of the UBRRHn and UBRRLn Registers, (0-4095)
=
=
=
----------------------------------------- -
16 UBRRn
-------------------------------------- -
8 UBRRn
-------------------------------------- -
2 UBRRn
(
(
(
f
f
f
OSC
OSC
OSC
+
+
+
1
1
1
)
)
)
(1)
ATmega8U2/16U2/32U2
Equation for Calculating UBRR Value
UBRRn
UBRRn
UBRRn
=
=
=
----------------------- - 1
16BAUD
------------------- - 1
8BAUD
------------------- - 1
2BAUD
f
f
f
OSC
OSC
OSC
Table 18-9 on
151

Related parts for ATmega16U2