參數(shù)資料
型號: ST52501LF3
英文描述: MAX 7000 CPLD 128 MC 100-PQFP
中文描述: 8位紅外驅(qū)動重癥監(jiān)護(hù)病房。定時(shí)器/脈寬調(diào)制。 I2C總線。的SPI。脊髓損傷。低電壓
文件頁數(shù): 3/106頁
文件大?。?/td> 1355K
代理商: ST52501LF3
Figure 14.5 Clearing the WCOL bit (Write Collision Flag) Software Sequence
14.4.6 Overrun Condition.
An overrun condition occurs when the master
device has sent several data bytes and the slave
device hasn’t cleared the SPIF bit issued from the
previous data byte transmitted.
In this case, the receiver buffer contains the byte
sent after the SPIF bit was last cleared. A read to
the SPI_IN register returns this byte. All other
bytes are lost.
This condition is not detected by the SPI
peripheral.
14.4.7 Single Master and Multimaster Configu-
rations.
There are two types of SPI systems:
– Single Master System
– Multimaster System
Single Master System
A typical single master system may be configured,
using an ICU as the master and four ICUs as
The master device selects the individual slave
devices by using four pins of a parallel port to
control the four SS pins of the slave devices.
The SS pins are pulled high during reset since the
master device ports will be forced to be inputs at
that time, thus disabling the slave devices.
Note: In order to prevent a bus conflict on the
MISO line the master allows only one active slave
device during a transmission.
For more security, the slave device may respond to
the master with the data byte received. Then the
master will receive the previous byte back from the
slave device if all MISO and MOSI pins are
connected and the slave has not written its
SPI_OUT register.
Other transmission security methods can use ports
for handshake lines or data bytes with command
fields.
Multi-master System
A multi-master system may also be configured by
the user. Transfer of master control could be
implemented using a handshake method through
the I/O ports or by an exchange of code messages
through the serial peripheral interface system.
The multi-master system is principally handled by
the MSTR bit in the SPI_CR register and the
MODF bit in the SPI_STATUS_CR register.
Clearing sequence after SPIF = 1 (end of a data byte transfer)
1st Step
Read SPI_STATUS_CR
Read SPI_IN
Write SPI_IN
2nd Step
SPIF =0
WCOL=0
SPIF =0
WCOL=0 if no transfer has started
WCOL=1 if a transfer has started
Clearing sequence before SPIF = 1 (during a data byte transfer)
1st Step
2nd Step
WCOL=0
before the 2nd step
Read SPI_STATUS_CR
Read SPI_IN
Note: Writing in SPI_OUT regis-
ter instead of reading in SPI_IN
do not reset WCOL bit
Read SPI_STATUS_CR
OR
THEN
相關(guān)PDF資料
PDF描述
ST52501LG1 MAX 7000 CPLD 128 MC 160-PQFP
ST52501LG2 MAX 7000 CPLD 128 MC 100-TQFP
ST52501LG3 MAX 7000 CPLD 128 MC 100-TQFP
ST52501LK1 MAX 7000 CPLD 160 MC 84-PLCC
ST52501LK2 MAX 7000 CPLD 160 MC 100-TQFP
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST52501LG1 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH IR DRIVER. TIMER/PWM. I2C. SPI. SCI. LOW VOLTAGE
ST52501LG2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH IR DRIVER. TIMER/PWM. I2C. SPI. SCI. LOW VOLTAGE
ST52501LG3 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH IR DRIVER. TIMER/PWM. I2C. SPI. SCI. LOW VOLTAGE
ST52501LK1 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH IR DRIVER. TIMER/PWM. I2C. SPI. SCI. LOW VOLTAGE
ST52501LK2 制造商:未知廠家 制造商全稱:未知廠家 功能描述:8-BIT ICU WITH IR DRIVER. TIMER/PWM. I2C. SPI. SCI. LOW VOLTAGE