126/317
5 - Peripherals
When one master controls two or more slaves, a method must be used to distinguish between
the two slaves. Several methods are available. The one shown below uses the SS pin of each
slave to control which slave is active at any given time. These pins are each driven by a sep-
arate output pin of the master controller:
05-spi2
MOSI
MISO
MOSI
MISO
SCK
SCK
SS
SS
V
DD
permanent
MASTER
8-bit shift register
SPI Clock
generator
8-bit shift register
SLAVE 1
Single master system for a dialogue with SPIs
between three microcontrollers
MSTR=1
MSTR=0
MOSI
MISO
SCK
SS
8-bit shift register
SLAVE 2
MSTR=0
Output1
Output2
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...