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

ATMEGA48V-10AUR 参数 Datasheet PDF下载

ATMEGA48V-10AUR图片预览
型号: ATMEGA48V-10AUR
PDF下载: 下载PDF文件 查看货源
内容描述: [RISC Microcontroller, 8-Bit, FLASH, AVR RISC CPU, 10MHz, CMOS, PQFP32, 7 X 7 MM, 1 MM HEIGHT, 0.80 MM PITCH, GREEN, PLASTIC, MS-026ABA, TQFP-32]
分类和应用: 闪存微控制器
文件页数/大小: 376 页 / 4764 K
品牌: ATMEL [ ATMEL ]
 浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第160页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第161页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第162页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第163页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第165页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第166页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第167页浏览型号ATMEGA48V-10AUR的Datasheet PDF文件第168页  
Flag, SPIF is set. If the SPI Interrupt Enable bit, SPIE, in the SPCR Register is set, an interrupt  
is requested. The Slave may continue to place new data to be sent into SPDR before reading  
the incoming data. The last incoming byte will be kept in the Buffer Register for later use.  
Figure 18-2. SPI Master-slave Interconnection  
SHIFT  
ENABLE  
The system is single buffered in the transmit direction and double buffered in the receive direc-  
tion. This means that bytes to be transmitted cannot be written to the SPI Data Register before  
the entire shift cycle is completed. When receiving data, however, a received character must be  
read from the SPI Data Register before the next character has been completely shifted in. Oth-  
erwise, the first byte is lost.  
In SPI Slave mode, the control logic will sample the incoming signal of the SCK pin. To ensure  
correct sampling of the clock signal, the minimum low and high periods should be:  
Low periods: Longer than 2 CPU clock cycles.  
High periods: Longer than 2 CPU clock cycles.  
When the SPI is enabled, the data direction of the MOSI, MISO, SCK, and SS pins is overridden  
according to Table 18-1 on page 164. For more details on automatic port overrides, refer to  
“Alternate Port Functions” on page 77.  
Table 18-1. SPI Pin Overrides(Note:)  
Pin  
MOSI  
MISO  
SCK  
SS  
Direction, Master SPI  
User Defined  
Input  
Direction, Slave SPI  
Input  
User Defined  
Input  
User Defined  
User Defined  
Input  
Note:  
See “Alternate Functions of Port B” on page 79 for a detailed description of how to define the  
direction of the user defined SPI pins.  
The following code examples show how to initialize the SPI as a Master and how to perform a  
simple transmission. DDR_SPI in the examples must be replaced by the actual Data Direction  
Register controlling the SPI pins. DD_MOSI, DD_MISO and DD_SCK must be replaced by the  
actual data direction bits for these pins. E.g. if MOSI is placed on pin PB3, replace DD_MOSI  
with DDB3 and DDR_SPI with DDRB.  
164  
ATmega48/88/168  
2545M–AVR–09/07  
 复制成功!