ST92185B STMicroelectronics, ST92185B Datasheet - Page 147

no-image

ST92185B

Manufacturer Part Number
ST92185B
Description
16k/24k/32k Rom Hcmos Mcu With On-screen-display
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ST92185B
Manufacturer:
ST
0
Part Number:
ST92185B1
Manufacturer:
ST
0
Part Number:
ST92185B2
Manufacturer:
ST
0
Part Number:
ST92185B2B1/EKO
Manufacturer:
ST
0
Part Number:
ST92185B2BJ1
Manufacturer:
ST
0
Part Number:
ST92185BJ2B1/0BE
Manufacturer:
ST
Quantity:
122
Part Number:
ST92185BJ2B1/0BE
Quantity:
87
Part Number:
ST92185BN4B1/PBI
Manufacturer:
ST
Quantity:
35
SERIAL PERIPHERAL INTERFACE (Cont’d)
The data on the SDA line is sampled on the low to
high transition of the SCL line.
SPI working with an I
To use the SPI with the I
line is used as SCL; the SDI and SDO lines, exter-
nally wire-ORed, are used as SDA. All output pins
must be configured as open drain (see
Table 2.
comprising 5 phases: Initialization, Start, Trans-
mission, Acknowledge and Stop. It should be not-
ed that only the first 8 bits are handled by the SPI
peripheral; the ACKNOWLEDGE bit must be man-
aged by software, by polling or forcing the SCL
and SDO lines via the corresponding I/O port bits.
During the transmission phase, the following I
bus features are also supported by hardware.
Clock Synchronization
In a multimaster I
masters generate their own clock, synchronization
is required. The first master which releases the
SCL line stops internal counting, restarting only
when the SCL line goes high (released by all the
other masters). In this manner, devices using dif-
Figure 91. SPI Arbitration
n
n
ST9-2-SCK
ST9-1-SCK
CONTROL
LOGIC
MSPI
illustrates the typical I
BHS
INTERNAL SERIAL
ST9-1
0
1
CLOCK
2
C-bus system, when several
1
1
2
INT 2
C-bus
2
C-bus protocol, the SCK
SCK
2
2
2
C-bus sequence,
Figure
ST92185B - SERIAL PERIPHERAL INTERFACE (SPI)
3
3
4).
2
SPIKE
C-
4
ferent clock sources and different frequencies can
be interfaced.
Arbitration Lost
When several masters are sending data on the
SDA line, the following takes place: if the transmit-
ter sends a “1” and the SDA line is forced low by
another device, the ARB flag (SPICR.5) is set and
the SDO buffer is disabled (ARB is reset and the
SDO buffer is enabled when SPIDR is written to
again). When BMS is set, the peripheral clock is
supplied through the INT2 line by the external
clock line (SCL). Due to potential noise spikes
(which must last longer than one INTCLK period to
be detected), RX or TX may gain a clock pulse.
Referring to
noise spike and therefore gains a clock pulse, it
will stop its transmission early and hold the clock
line low, causing device ST9-2 to freeze on the 7th
bit. To exit and recover from this condition, the
BMS bit must be reset; this will cause the SPI logic
to be reset, thus aborting the current transmission.
An End of Transmission interrupt is generated fol-
lowing this reset sequence.
4
5
5
6
Figure
SCK
6, if device ST9-1 detects a
INTERNAL SERIAL
6
7
INT 2
CLOCK
ST9-2
7
8
BHS
0
1
VR001410
LOGIC
CONTROL
MSPI
147/178

Related parts for ST92185B