![Texas Instruments TMS470R1 series Скачать руководство пользователя страница 9](http://html.mh-extra.com/html/texas-instruments/tms470r1-series/tms470r1-series_reference-manual_1097090009.webp)
SPI Operation Modes
Serial Peripheral Interface (SPI) Module (SPNU195E)
3
2
SPI Operation Modes
The SPI operates in a master or slave mode. The MASTER bit (SPICTRL2.3)
selects the configuration of the SPISIMO and SPISOMI pins and the
CLKMOD bit (SPICTRL2.5) determines whether an internal or external clock
source will be used.
The slave chip select (SPISCS) pin is used when communicating with
multiple slave devices. When the master (SPI sending out the clock stream)
writes to SPIDAT1, the SPISCS pin is automatically driven low to select the
slave connected to that signal. Writing to SPIDAT0 will not drive SPISCS low,
thus allowing the master to communicate with all slave devices connected to
the same SPI bus.
In addition, a handshaking mechanism, provided by the SPIENA pin, enables
the slave to delay the generation of the clock signal supplied by the master
as long as it is not prepared for the next exchange of data.
Figure 1.
SPI Module Block Diagram (Five Pin Mode Shown)
SPICTRL2.3
Master
16 bit shift register
Charlen
SPICTRL1.4:0
SPICTRL2.1
Clock polarity
SPIBUF
SPIEMU
16
RXINT
SPICTRL2.0
RCVR
SPICTRL2.2
OVRN INT EN
SPICTRL2.3
SPICTRL2.1
RXINT
Clock
SPICTRL2.0
PRESCALE
SPICTRL1.12:5
SPISOMI
to CIM
SPIENA
CLKMOD
SPICTRL2.5
SPISCS
ICLK from System
SPISIMO
SPICLK
16
SPIDAT1
SPIDAT0
/