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