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

MC9S12P64CFT 参数 Datasheet PDF下载

MC9S12P64CFT图片预览
型号: MC9S12P64CFT
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 566 页 / 7414 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S12P64CFT的Datasheet PDF文件第419页浏览型号MC9S12P64CFT的Datasheet PDF文件第420页浏览型号MC9S12P64CFT的Datasheet PDF文件第421页浏览型号MC9S12P64CFT的Datasheet PDF文件第422页浏览型号MC9S12P64CFT的Datasheet PDF文件第424页浏览型号MC9S12P64CFT的Datasheet PDF文件第425页浏览型号MC9S12P64CFT的Datasheet PDF文件第426页浏览型号MC9S12P64CFT的Datasheet PDF文件第427页  
Serial Peripheral Interface (S12SPIV5)  
NOTE  
Care must be taken when expecting data from a master while the slave is in  
wait or stop mode. Even though the shift register will continue to operate,  
the rest of the SPI is shut down (i.e., a SPIF interrupt will not be generated  
until exiting stop or wait mode). Also, the byte from the shift register will  
not be copied into the SPIDR register until after the slave SPI has exited wait  
or stop mode. In slave mode, a received byte pending in the receive shift  
register will be lost when entering wait or stop mode. An SPIF flag and  
SPIDR copy is generated only if wait mode is entered or exited during a  
tranmission. If the slave enters wait mode in idle mode and exits wait mode  
in idle mode, neither a SPIF nor a SPIDR copy will occur.  
12.4.7.3 SPI in Stop Mode  
Stop mode is dependent on the system. The SPI enters stop mode when the module clock is disabled (held  
high or low). If the SPI is in master mode and exchanging data when the CPU enters stop mode, the  
transmission is frozen until the CPU exits stop mode. After stop, data to and from the external SPI is  
exchanged correctly. In slave mode, the SPI will stay synchronized with the master.  
The stop mode is not dependent on the SPISWAI bit.  
12.4.7.4 Reset  
The reset values of registers and signals are described in Section 12.3, “Memory Map and Register  
Definition”, which details the registers and their bit fields.  
If a data transmission occurs in slave mode after reset without a write to SPIDR, it will transmit  
garbage, or the data last received from the master before the reset.  
Reading from the SPIDR after reset will always read zeros.  
12.4.7.5 Interrupts  
The SPI only originates interrupt requests when SPI is enabled (SPE bit in SPICR1 set). The following is  
a description of how the SPI makes a request and how the MCU should acknowledge that request. The  
interrupt vector offset and interrupt priority are chip dependent.  
The interrupt flags MODF, SPIF, and SPTEF are logically ORed to generate an interrupt request.  
12.4.7.5.1  
MODF  
MODF occurs when the master detects an error on the SS pin. The master SPI must be configured for the  
MODF feature (see Table 12-3). After MODF is set, the current transfer is aborted and the following bit is  
changed:  
MSTR = 0, The master bit in SPICR1 resets.  
The MODF interrupt is reflected in the status register MODF flag. Clearing the flag will also clear the  
interrupt. This interrupt will stay active while the MODF flag is set. MODF has an automatic clearing  
process which is described in Section 12.3.2.4, “SPI Status Register (SPISR)”.  
S12P-Family Reference Manual, Rev. 1.13  
Freescale Semiconductor  
423  
 复制成功!