參數(shù)資料
型號(hào): ST72T85A5Q6
廠商: 意法半導(dǎo)體
英文描述: 8-BIT MCU FOR RDS WITH 48K ROM, 3K RAM, ADC, TWO TIMERS, TWO SPIs, I2C AND SCI INTERFACES
中文描述: 8位微控制器48,000鐵路發(fā)展策略光盤,3K內(nèi)存,ADC,兩個(gè)定時(shí)器,2個(gè)SPI,I2C和脊髓損傷接口
文件頁(yè)數(shù): 51/117頁(yè)
文件大?。?/td> 748K
代理商: ST72T85A5Q6
第1頁(yè)第2頁(yè)第3頁(yè)第4頁(yè)第5頁(yè)第6頁(yè)第7頁(yè)第8頁(yè)第9頁(yè)第10頁(yè)第11頁(yè)第12頁(yè)第13頁(yè)第14頁(yè)第15頁(yè)第16頁(yè)第17頁(yè)第18頁(yè)第19頁(yè)第20頁(yè)第21頁(yè)第22頁(yè)第23頁(yè)第24頁(yè)第25頁(yè)第26頁(yè)第27頁(yè)第28頁(yè)第29頁(yè)第30頁(yè)第31頁(yè)第32頁(yè)第33頁(yè)第34頁(yè)第35頁(yè)第36頁(yè)第37頁(yè)第38頁(yè)第39頁(yè)第40頁(yè)第41頁(yè)第42頁(yè)第43頁(yè)第44頁(yè)第45頁(yè)第46頁(yè)第47頁(yè)第48頁(yè)第49頁(yè)第50頁(yè)當(dāng)前第51頁(yè)第52頁(yè)第53頁(yè)第54頁(yè)第55頁(yè)第56頁(yè)第57頁(yè)第58頁(yè)第59頁(yè)第60頁(yè)第61頁(yè)第62頁(yè)第63頁(yè)第64頁(yè)第65頁(yè)第66頁(yè)第67頁(yè)第68頁(yè)第69頁(yè)第70頁(yè)第71頁(yè)第72頁(yè)第73頁(yè)第74頁(yè)第75頁(yè)第76頁(yè)第77頁(yè)第78頁(yè)第79頁(yè)第80頁(yè)第81頁(yè)第82頁(yè)第83頁(yè)第84頁(yè)第85頁(yè)第86頁(yè)第87頁(yè)第88頁(yè)第89頁(yè)第90頁(yè)第91頁(yè)第92頁(yè)第93頁(yè)第94頁(yè)第95頁(yè)第96頁(yè)第97頁(yè)第98頁(yè)第99頁(yè)第100頁(yè)第101頁(yè)第102頁(yè)第103頁(yè)第104頁(yè)第105頁(yè)第106頁(yè)第107頁(yè)第108頁(yè)第109頁(yè)第110頁(yè)第111頁(yè)第112頁(yè)第113頁(yè)第114頁(yè)第115頁(yè)第116頁(yè)第117頁(yè)
51/117
ST7285C
SERIAL PERIPHERAL INTERFACE
(Cont’d)
4.4.8 Serial Peripheral Status Register (SPSR)
Address: see Memory Map
Reset Value: 00h
Read Only
The status flags which generate a Serial Peripher-
al Interface (SPI) interrupt may be blocked by the
SPIE control bit in the Serial Peripheral Control
Register. The WCOL bit does not cause an inter-
rupt. The Serial Peripheral Status register bits are
defined as follows:
Bit-7 =
SPIF
Serial Peripheral Data Transfer Flag
The Serial Peripheral Data Transfer Flag bit noti-
fies the user that a data transfer between the de-
vice and an external device has been completed.
With the completion of the data transfer, SPIF is
set, and if SPIE is set, a Serial Peripheral Interrupt
is generated. During the clock cycle SPIF is being
set, a copy of the received data byte in the shift
register is moved to a buffer. When the data regis-
ter is read, it is the buffer that is read. In the event
of an overrun condition, when the Master device
has sent several bytes of data and the Slave de-
vice has not responded to the first SPIF, only the
first byte sent is contained in the receive buffer,
and all other bytes are lost.
Data transfer is initiated by the Master device writ-
ing to its Serial Peripheral Data I/O Register.
Clearing the SPIF bit is accomplished by a soft-
ware sequence which accesses the Serial Periph-
eral Status Register while SPIF is set, followed by
a write or read operation on the Serial Peripheral
Data I/O Register.
In the Master device, while SPIF isset, all writes to
the Serial Peripheral Data I/O Register are inhibit-
ed until the Serial Peripheral Status Register is
read.
In the Slave device, SPIF can be cleared (using a
similar sequence) during a second transmission;
however, it must be cleared before the second
SPIF bit in order to prevent an overrun condition.
The SPIF bit is cleared on Reset.
Bit-6 =
WCOL
Write Collision status bit
The Write Collision Status bit informs the user that
an attempt was made to write to the Serial Periph-
eral Data I/O Register while a data transfer was
taking place with an external device. The transfer
continues uninterrupted, and therefore a write will
be unsuccessful. A ”read collision” cannot occur,
since the received data byte is placed in a buffer in
which access is always synchronous with the
MCU operation. If a ”write collision” occurs, WCOL
is set but no SPI interrupt is generated. The WCOL
bit is a status flag only.
Clearing the WCOL bit is accomplished by a soft-
ware sequence of accessing the Serial Peripheral
Status Register while WCOL is set, followed by:
1) A read of the Serial Peripheral Data I/O Register
prior to the SPIF bit being set, or
2) A read or write of the Serial Peripheral Data I/O
Register after the SPIF bit is set.
A write to the Serial Peripheral Data I/O Register
(SPDR) prior to the SPIF bit being set, will result in
generation of another WCOL status flag. Both the
SPIF and WCOL bits will be cleared in the same
sequence. If a second transfer has started while
trying to clear the (previously set) SPIF and WCOL
bits with a clearing sequence comprising a write to
the Serial Peripheral Data I/O Register, only the
SPIF bit will be cleared.
A collision of a write to the Serial Peripheral Data
I/O Register while an external data transfer is tak-
ing place can occur both in the Master mode and
the Slave mode, although with proper program-
ming the Master device should have sufficient in-
formation to preclude this collision.
Collision in the Master device is defined as a write
of the Serial Peripheral Data I/O Register while the
internal rate clock (SCK) is in the process of trans-
fer. The signal on theSS pin is always at a logic
high level on the Master device.
Collision in a Slave device is defined in two sepa-
rate modes. A problem arises in a Slave device
when the CPHA control bit is reset. When CPHA is
reset, data is latched on the occurence 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 it
attempts to write the Serial Peripheral Data I/O
Register after itsSS pin has been pulled low. If the
CPHA bit is reset, theSS pin on the Slave device
freezes the data in its Serial Peripheral Data I/O
Register and does not allow it to be altered.
The Master device must raise the SS pin of the
Slave device to a logic high level between each
byte it transfers to the Slave device
7
0
SPIF
WCOL
-
MODF
-
-
-
-
相關(guān)PDF資料
PDF描述
ST730C08L3 PHASE CONTROL THYRISTORS
ST730C08L3L PHASE CONTROL THYRISTORS
ST730C12L0 PHASE CONTROL THYRISTORS
ST730C12L0L PHASE CONTROL THYRISTORS
ST730C12L1 PHASE CONTROL THYRISTORS
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
ST730 制造商:IRF 制造商全稱:International Rectifier 功能描述:PHASE CONTROL THYRISTORS Hockey Puk Version
ST7-30 制造商:SUPERWORLD 制造商全稱:Superworld Electronics 功能描述:POWER TRANSFORMER
ST-7300 制造商:GC Electronics 功能描述:
ST730186-3 制造商:KEMET Corporation 功能描述: 制造商:KET 功能描述:
ST730268-1 制造商:KEMET Corporation 功能描述: 制造商:KET 功能描述: