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

ST92F150JDV1Q6 参数 Datasheet PDF下载

ST92F150JDV1Q6图片预览
型号: ST92F150JDV1Q6
PDF下载: 下载PDF文件 查看货源
内容描述: 8月16日- BIT单电压闪存单片机系列内存, E3 TMEMULATED EEPROM , CAN 2.0B和J1850 BLPD [8/16-BIT SINGLE VOLTAGE FLASH MCU FAMILY WITH RAM, E3 TMEMULATED EEPROM, CAN 2.0B AND J1850 BLPD]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管可编程只读存储器电动程控只读存储器电可擦编程只读存储器时钟
文件页数/大小: 426 页 / 3830 K
品牌: STMICROELECTRONICS [ ST ]
 浏览型号ST92F150JDV1Q6的Datasheet PDF文件第251页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第252页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第253页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第254页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第256页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第257页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第258页浏览型号ST92F150JDV1Q6的Datasheet PDF文件第259页  
SERIAL PERIPHERAL INTERFACE (SPI)  
SERIAL PERIPHERAL INTERFACE (Cont’d)  
10.7.4.4 Write Collision Error  
When the CPHA bit is reset:  
A write collision occurs when the software tries to  
write to the SPDR register while a data transfer is  
taking place with an external device. When this  
happens, the transfer continues uninterrupted and  
the software write will be unsuccessful.  
Data is latched on the occurrence of the first clock  
transition. The slave device does not have any  
way of knowing when that transition will occur;  
therefore, the slave device collision occurs when  
software attempts to write the SPDR register after  
its SS pin has been pulled low.  
Write collisions can occur both in master and slave  
mode.  
For this reason, the SS pin must be high, between  
each data byte transfer, to allow the CPU to write  
in the SPDR register without generating a write  
collision.  
Note: a "read collision" will never occur since the  
received data byte is placed in a buffer in which  
access is always synchronous with the MCU oper-  
ation.  
In Slave mode  
In Master mode  
When the CPHA bit is set:  
Collision in the master device is defined as a write  
of the SPDR register while the internal serial clock  
(SCK) is in the process of transfer.  
The slave device will receive a clock (SCK) edge  
prior to the latch of the first data transfer. This first  
clock edge will freeze the data in the slave device  
SPDR register and output the MSBit on to the ex-  
ternal MISO pin of the slave device.  
The SS pin signal must be always high on the  
master device.  
The SS pin low state enables the slave device but  
the output of the MSBit onto the MISO pin does  
not take place until the first data transfer clock  
edge.  
WCOL Bit  
The WCOL bit in the SPSR register is set if a write  
collision occurs.  
No SPI interrupt is generated when the WCOL bit  
is set (the WCOL bit is a status flag only).  
Clearing the WCOL bit is done through a software  
sequence (see Figure 124).  
Figure 124. Clearing the WCOL bit (Write Collision Flag) Software Sequence  
Clearing sequence after SPIF = 1 (end of a data byte transfer)  
Read SPSR  
st  
1 Step  
THEN  
SPIF =0  
WCOL=0  
nd  
2
Step  
Read SPDR  
Clearing sequence before SPIF = 1 (during a data byte transfer)  
Read SPSR  
st  
1 Step  
THEN  
Note: Writing in SPDR register  
instead of reading in it do not re-  
set WCOL bit  
nd  
2
Step  
Read SPDR  
WCOL=0  
255/426  
9
 复制成功!