ATmega1281 Atmel Corporation, ATmega1281 Datasheet - Page 232

no-image

ATmega1281

Manufacturer Part Number
ATmega1281
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATmega1281

Flash (kbytes)
128 Kbytes
Pin Count
64
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
54
Ext Interrupts
17
Usb Speed
No
Usb Interface
No
Spi
3
Twi (i2c)
1
Uart
2
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
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
2
Pwm Channels
8
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATmega1281-16AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega1281-16AU
Manufacturer:
ATMEL
Quantity:
982
Part Number:
ATmega1281-16AUR
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega1281-8MC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATmega1281V-8AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
ATmega1281V-8AUR
Manufacturer:
Atmel
Quantity:
10 000
23. USART in SPI Mode
23.1
23.2
2549N–AVR–05/11
Overview
USART MSPIM vs. SPI
The Universal Synchronous and Asynchronous serial Receiver and Transmitter (USART) can be
set to a master SPI compliant mode of operation. The Master SPI Mode (MSPIM) has the follow-
ing features:
Setting both UMSELn1:0 bits to one enables the USART in MSPIM logic. In this mode of opera-
tion the SPI master control logic takes direct control over the USART resources. These
resources include the transmitter and receiver shift register and buffers, and the baud rate gen-
erator. The parity generator and checker, the data and clock recovery logic, and the RX and TX
control logic is disabled. The USART RX and TX control logic is replaced by a common SPI
transfer control logic. However, the pin control logic and interrupt generation logic is identical in
both modes of operation.
The I/O register locations are the same in both modes. However, some of the functionality of the
control registers changes when using MSPIM.
The AVR USART in MSPIM mode is fully compatible with the AVR SPI regarding:
However, since the USART in MSPIM mode reuses the USART resources, the use of the
USART in MSPIM mode is somewhat different compared to the SPI. In addition to differences of
the control register bits, and that only master operation is supported by the USART in MSPIM
mode, the following features differ between the two modules:
Full Duplex, Three-wire Synchronous Data Transfer
Master Operation
Supports all four SPI Modes of Operation (Mode 0, 1, 2, and 3)
LSB First or MSB First Data Transfer (Configurable Data Order)
Queued Operation (Double Buffered)
High Resolution Baud Rate Generator
High Speed Operation (fXCKmax = fCK/2)
Flexible Interrupt Generation
Master mode timing diagram
The UCPOLn bit functionality is identical to the SPI CPOL bit
The UCPHAn bit functionality is identical to the SPI CPHA bit
The UDORDn bit functionality is identical to the SPI DORD bit
The USART in MSPIM mode includes (double) buffering of the transmitter. The SPI has no
buffer
The USART in MSPIM mode receiver includes an additional buffer level
The SPI WCOL (Write Collision) bit is not included in USART in MSPIM mode
The SPI double speed mode (SPI2X) bit is not included. However, the same effect is
achieved by setting UBRRn accordingly
Interrupt timing is not compatible
Pin control differs due to the master only operation of the USART in MSPIM mode
ATmega640/1280/1281/2560/2561
232

Related parts for ATmega1281