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

MC908MR32CFUE 参数 Datasheet PDF下载

MC908MR32CFUE图片预览
型号: MC908MR32CFUE
PDF下载: 下载PDF文件 查看货源
内容描述: [MC908MR32CFUE ]
分类和应用:
文件页数/大小: 308 页 / 4411 K
品牌: FREESCALE [ Freescale ]
 浏览型号MC908MR32CFUE的Datasheet PDF文件第219页浏览型号MC908MR32CFUE的Datasheet PDF文件第220页浏览型号MC908MR32CFUE的Datasheet PDF文件第221页浏览型号MC908MR32CFUE的Datasheet PDF文件第222页浏览型号MC908MR32CFUE的Datasheet PDF文件第224页浏览型号MC908MR32CFUE的Datasheet PDF文件第225页浏览型号MC908MR32CFUE的Datasheet PDF文件第226页浏览型号MC908MR32CFUE的Datasheet PDF文件第227页  
Serial Peripheral Interface Module (SPI)  
Resetting the SPI  
These sources in the SPI status and control register can generate CPU interrupt  
requests:  
SPI receiver full bit (SPRF) — The SPRF bit becomes set every time a byte  
transfers from the shift register to the receive data register. If the SPI  
receiver interrupt enable bit, SPRIE, is also set, SPRF can generate either  
an SPI receiver/error or CPU interrupt.  
SPI transmitter empty (SPTE) — The SPTE bit becomes set every time a  
byte transfers from the transmit data register to the shift register. If the SPI  
transmit interrupt enable bit, SPTIE, is also set, SPTE can generate either  
an SPTE or CPU interrupt request.  
15.8 Resetting the SPI  
Any system reset completely resets the SPI. Partial resets occur whenever the SPI  
enable bit (SPE) is low. Whenever SPE is low:  
The SPTE flag is set.  
Any transmission currently in progress is aborted.  
The shift register is cleared.  
The SPI state counter is cleared, making it ready for a new complete  
transmission.  
All the SPI port logic is defaulted back to being general-purpose I/O.  
These items are reset only by a system reset:  
All control bits in the SPCR  
All control bits in the SPSCR (MODFEN, ERRIE, SPR1, and SPR0)  
The status flags SPRF, OVRF, and MODF  
By not resetting the control bits when SPE is low, the user can clear SPE between  
transmissions without having to set all control bits again when SPE is set back high  
for the next transmission.  
By not resetting the SPRF, OVRF, and MODF flags, the user can still service these  
interrupts after the SPI has been disabled. The user can disable the SPI by writing  
0 to the SPE bit. The SPI can also be disabled by a mode fault occurring in an SPI  
that was configured as a master with the MODFEN bit set.  
15.9 Queuing Transmission Data  
The double-buffered transmit data register allows a data byte to be queued  
and transmitted. For an SPI configured as a master, a queued data byte is  
transmitted immediately after the previous transmission has completed. The SPI  
transmitter empty flag (SPTE) indicates when the transmit data buffer is ready to  
accept new data. Write to the transmit data register only when the SPTE bit is high.  
MC68HC908MR32 • MC68HC908MR16 — Rev. 6.0  
MOTOROLA Serial Peripheral Interface Module (SPI)  
Data Sheet  
223  
 复制成功!