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

MC9S12P64CFT 参数 Datasheet PDF下载

MC9S12P64CFT图片预览
型号: MC9S12P64CFT
PDF下载: 下载PDF文件 查看货源
内容描述: 微控制器 [Microcontrollers]
分类和应用: 微控制器外围集成电路时钟
文件页数/大小: 566 页 / 7414 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC9S12P64CFT的Datasheet PDF文件第409页浏览型号MC9S12P64CFT的Datasheet PDF文件第410页浏览型号MC9S12P64CFT的Datasheet PDF文件第411页浏览型号MC9S12P64CFT的Datasheet PDF文件第412页浏览型号MC9S12P64CFT的Datasheet PDF文件第414页浏览型号MC9S12P64CFT的Datasheet PDF文件第415页浏览型号MC9S12P64CFT的Datasheet PDF文件第416页浏览型号MC9S12P64CFT的Datasheet PDF文件第417页  
Serial Peripheral Interface (S12SPIV5)  
drive the MOSI and SCK lines. In this case, the SPI immediately switches to slave mode, by  
clearing the MSTR bit and also disables the slave output buffer MISO (or SISO in bidirectional  
mode). So the result is that all outputs are disabled and SCK, MOSI, and MISO are inputs. If a  
transmission is in progress when the mode fault occurs, the transmission is aborted and the SPI is  
forced into idle state.  
This mode fault error also sets the mode fault (MODF) flag in the SPI status register (SPISR). If  
the SPI interrupt enable bit (SPIE) is set when the MODF flag becomes set, then an SPI interrupt  
sequence is also requested.  
When a write to the SPI data register in the master occurs, there is a half SCK-cycle delay. After  
the delay, SCK is started within the master. The rest of the transfer operation differs slightly,  
depending on the clock format specified by the SPI clock phase bit, CPHA, in SPI control register 1  
(see Section 12.4.3, “Transmission Formats”).  
NOTE  
A change of the bits CPOL, CPHA, SSOE, LSBFE, XFRW, MODFEN,  
SPC0, or BIDIROE with SPC0 set, SPPR2-SPPR0 and SPR2-SPR0 in  
master mode will abort a transmission in progress and force the SPI into idle  
state. The remote slave cannot detect this, therefore the master must ensure  
that the remote slave is returned to idle state.  
12.4.2 Slave Mode  
The SPI operates in slave mode when the MSTR bit in SPI control register 1 is clear.  
Serial clock  
In slave mode, SCK is the SPI clock input from the master.  
MISO, MOSI pin  
In slave mode, the function of the serial data output pin (MISO) and serial data input pin (MOSI)  
is determined by the SPC0 bit and BIDIROE bit in SPI control register 2.  
SS pin  
The SS pin is the slave select input. Before a data transmission occurs, the SS pin of the slave SPI  
must be low. SS must remain low until the transmission is complete. If SS goes high, the SPI is  
forced into idle state.  
The SS input also controls the serial data output pin, if SS is high (not selected), the serial data  
output pin is high impedance, and, if SS is low, the first bit in the SPI data register is driven out of  
the serial data output pin. Also, if the slave is not selected (SS is high), then the SCK input is  
ignored and no internal shifting of the SPI shift register occurs.  
Although the SPI is capable of duplex operation, some SPI peripherals are capable of only  
receiving SPI data in a slave mode. For these simpler devices, there is no serial data out pin.  
NOTE  
When peripherals with duplex capability are used, take care not to  
simultaneously enable two receivers whose serial outputs drive the same  
system slave’s serial data output line.  
S12P-Family Reference Manual, Rev. 1.13  
Freescale Semiconductor  
413  
 复制成功!