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

ATMEGA16M1-15MZ 参数 Datasheet PDF下载

ATMEGA16M1-15MZ图片预览
型号: ATMEGA16M1-15MZ
PDF下载: 下载PDF文件 查看货源
内容描述: [IC MCU 8BIT 16KB FLASH 32QFN]
分类和应用: 微控制器
文件页数/大小: 318 页 / 7595 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第134页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第135页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第136页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第137页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第139页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第140页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第141页浏览型号ATMEGA16M1-15MZ的Datasheet PDF文件第142页  
15.2.4 SPI Control Register – SPCR  
Bit  
7
SPIE  
R/W  
0
6
5
DORD  
R/W  
0
4
MSTR  
R/W  
0
3
CPOL  
R/W  
0
2
CPHA  
R/W  
0
1
SPR1  
R/W  
0
0
SPR0  
R/W  
0
SPE  
R/W  
0
SPCR  
Read/Write  
Initial Value  
• Bit 7 – SPIE: SPI Interrupt Enable  
This bit causes the SPI interrupt to be executed if SPIF bit in the SPSR register is set and the if the global interrupt enable bit  
in SREG is set.  
• Bit 6 – SPE: SPI Enable  
When the SPE bit is written to one, the SPI is enabled. This bit must be set to enable any SPI operations.  
• Bit 5 – DORD: Data Order  
When the DORD bit is written to one, the LSB of the data word is transmitted first.  
When the DORD bit is written to zero, the MSB of the data word is transmitted first.  
• Bit 4 – MSTR: Master/Slave Select  
This bit selects master SPI mode when written to one, and slave SPI mode when written logic zero. If SS is configured as an  
input and is driven low while MSTR is set, MSTR will be cleared, and SPIF in SPSR will become set. The user will then have  
to set MSTR to re-enable SPI master mode.  
• Bit 3 – CPOL: Clock Polarity  
When this bit is written to one, SCK is high when idle. When CPOL is written to zero, SCK is low when idle. Refer to  
Figure 15-3 and Figure 15-4 for an example. The CPOL functionality is summarized below:  
Table 15-2. CPOL Functionality  
CPOL  
Leading Edge  
Rising  
Trailing Edge  
Falling  
0
1
Falling  
Rising  
• Bit 2 – CPHA: Clock Phase  
The settings of the clock phase bit (CPHA) determine if data is sampled on the leading (first) or trailing (last) edge of SCK.  
Refer to Figure 15-3 and Figure 15-4 for an example. The CPOL functionality is summarized below:  
Table 15-3. CPHA Functionality  
CPHA  
Leading Edge  
Sample  
Trailing Edge  
Setup  
0
1
Setup  
Sample  
138  
ATmega16/32/64/M1/C1 [DATASHEET]  
7647O–AVR–01/15  
 
 
 
 复制成功!