參數(shù)資料
型號: ST7DALI
廠商: 意法半導體
元件分類: ADC
英文描述: 8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI, DALI
中文描述: 8位單電壓閃存存儲器,數(shù)據(jù)EEPROM,模數(shù)轉換器,定時器,SPI和大理微控制器
文件頁數(shù): 84/141頁
文件大?。?/td> 2175K
代理商: ST7DALI
ST7DALI
84/141
1
SERIAL PERIPHERAL INTERFACE
(Cont’d)
11.5.5 Error Flags
11.5.5.1 Master Mode Fault (MODF)
Master mode fault occurs when the master device
has its SS pin pulled low.
When a Master mode fault occurs:
– The MODF bit is set and an SPI interrupt re-
quest is generated if the SPIE bit is set.
– The SPE bit is reset. This blocks all output
from the Device and disables the SPI periph-
eral.
– The MSTR bit is reset, thus forcing the Device
into slave mode.
Clearing the MODF bit is done through a software
sequence:
1. A read access to the SPICSR register while the
MODF bit is set.
2. A write to the SPICR register.
Notes:
To avoid any conflicts in an application
with multiple slaves, the SS pin must be pulled
high during the MODF bit clearing sequence. The
SPE and MSTR bits may be restored to their orig-
inal state during or after this clearing sequence.
Hardware does not allow the user to set the SPE
and MSTR bits while the MODF bit is set except in
the MODF bit clearing sequence.
In a slave device, the MODF bit can not be set, but
in a multi master configuration the
Device
can be in
slave mode with the MODF bit set.
The MODF bit indicates that there might have
been a multi-master conflict and allows software to
handle this using an interrupt routine and either
perform to a reset or return to an application de-
fault state.
11.5.5.2 Overrun Condition (OVR)
An overrun condition occurs, when the master de-
vice has sent a data byte and the slave device has
not cleared the SPIF bit issued from the previously
transmitted byte.
When an Overrun occurs:
– The OVR bit is set and an interrupt request is
generated if the SPIE bit is set.
In this case, the receiver buffer contains the byte
sent after the SPIF bit was last cleared. A read to
the SPIDR register returns this byte. All other
bytes are lost.
The OVR bit is cleared by reading the SPICSR
register.
11.5.5.3 Write Collision Error (WCOL)
A write collision occurs when the software tries to
write to the SPIDR 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.
Write collisions can occur both in master and slave
mode. See also
Section 11.5.3.2 Slave Select
Management
.
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 CPU oper-
ation.
The WCOL bit in the SPICSR 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 50
).
Figure 50. Clearing the WCOL bit (Write Collision Flag) Software Sequence
Clearing sequence after SPIF = 1 (end of a data byte transfer)
1st Step
Read SPICSR
Read SPIDR
2nd Step
SPIF =0
WCOL=0
Clearing sequence before SPIF = 1 (during a data byte transfer)
1st Step
2nd Step
WCOL=0
Read SPICSR
Read SPIDR
Note:
Writing to the SPIDR regis-
ter instead of reading it does not
reset the WCOL bit
RESULT
RESULT
相關PDF資料
PDF描述
ST7FDALIF2M6 8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI, DALI
ST7PDALIF2M6 8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI, DALI
ST7FLCD1 8-bit MCU for LCD Monitors with 60 KBytes Flash, 2 KBytes RAM, 2 DDC Ports and Infrared Controller
ST7FLIT19B 8-Bit MCU With Single Voltage Flash Memory, Data EEPROM, ADC, 5 Timers, SPI(內部RC,PLL,ADC,ROP,ICP, IAP,SPI的8位MCU)
ST7FLITE10F1B6 8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, 4 TIMERS, SPI
相關代理商/技術參數(shù)
參數(shù)描述
ST7DALI-EVAL 功能描述:開發(fā)板和工具包 - 其他處理器 Eval for ST7DALI RoHS:否 制造商:Freescale Semiconductor 產品:Development Systems 工具用于評估:P3041 核心:e500mc 接口類型:I2C, SPI, USB 工作電源電壓:
ST7-DVP3 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:Low Cost, Real Time Emulator Series for ST7
ST7EA 100 功能描述:微調電阻器 - 表面貼裝 ST7EA101 RoHS:否 制造商:Murata 產品:Single-Turn Trimmer Potentiometers 產品類型:Single Turn 轉數(shù):1 元件類型:Cermet 錐度:Linear 電阻:10 kOhms 電壓額定值: 端接類型:SMD/SMT 功率額定值:250 mW (1/4 W) 容差:20 % 溫度系數(shù):150 PPM / C
ST-7EA 100(101) 制造商:Copal Electronics 功能描述:100 }20% (B) }100ppm/ 0.25W/70 0W/125 6.4~3.4~6.1mm +125 -55 6.4mm 3.4mm 6.1mm
ST-7EA 100k(104) 制造商:Copal Electronics 功能描述:100k }20% (B) }100ppm/ 0.25W/70 0W/125 6.4~3.4~6.1mm +125 -55 6.4mm 3.4mm 6.1mm