欢迎访问ic37.com |
会员登录 免费注册
发布采购

ATMEGA2560 参数 Datasheet PDF下载

ATMEGA2560图片预览
型号: ATMEGA2560
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器与256K字节的系统内可编程闪存 [8- BIT Microcontroller with 256K Bytes In-System Programmable Flash]
分类和应用: 闪存微控制器
文件页数/大小: 407 页 / 2985 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA2560的Datasheet PDF文件第228页浏览型号ATMEGA2560的Datasheet PDF文件第229页浏览型号ATMEGA2560的Datasheet PDF文件第230页浏览型号ATMEGA2560的Datasheet PDF文件第231页浏览型号ATMEGA2560的Datasheet PDF文件第233页浏览型号ATMEGA2560的Datasheet PDF文件第234页浏览型号ATMEGA2560的Datasheet PDF文件第235页浏览型号ATMEGA2560的Datasheet PDF文件第236页  
timing diagrams are shown in Figure 90. Data bits are shifted out and latched in on  
opposite edges of the XCKn signal, ensuring sufficient time for data signals to stabilize.  
The UCPOLn and UCPHAn functionality is summarized in Table 111. Note that chang-  
ing the setting of any of these bits will corrupt all ongoing communication for both the  
Receiver and Transmitter.  
Table 111. UCPOLn and UCPHAn Functionality-  
UCPOLn  
UCPHAn  
SPI Mode  
Leading Edge  
Sample (Rising)  
Setup (Rising)  
Sample (Falling)  
Setup (Falling)  
Trailing Edge  
Setup (Falling)  
Sample (Falling)  
Setup (Rising)  
Sample (Rising)  
0
0
1
1
0
1
0
1
0
1
2
3
Figure 90. UCPHAn and UCPOLn data transfer timing diagrams.  
UCPOL=0  
UCPOL=1  
XCK  
XCK  
Data setup (TXD)  
Data sample (RXD)  
Data setup (TXD)  
Data sample (RXD)  
XCK  
XCK  
Data setup (TXD)  
Data sample (RXD)  
Data setup (TXD)  
Data sample (RXD)  
Frame Formats  
A serial frame for the MSPIM is defined to be one character of 8 data bits. The USART  
in MSPIM mode has two valid frame formats:  
8-bit data with MSB first  
8-bit data with LSB first  
A frame starts with the least or most significant data bit. Then the next data bits, up to a  
total of eight, are succeeding, ending with the most or least significant bit accordingly.  
When a complete frame is transmitted, a new frame can directly follow it, or the commu-  
nication line can be set to an idle (high) state.  
The UDORDn bit in UCSRnC sets the frame format used by the USART in MSPIM  
mode. The Receiver and Transmitter use the same setting. Note that changing the set-  
ting of any of these bits will corrupt all ongoing communication for both the Receiver and  
Transmitter.  
16-bit data transfer can be achieved by writing two data bytes to UDRn. A UART trans-  
mit complete interrupt will then signal that the 16-bit value has been shifted out.  
232  
ATmega640/1280/1281/2560/2561  
2549A–AVR–03/05  
 复制成功!