st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 128

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
On-chip peripherals
Figure 54. Serial peripheral interface block diagram
Functional description
A basic example of interconnections between a single master and a single slave is illustrated in
Figure
The MOSI pins are connected together and the MISO pins are connected together. In this way data is
transferred serially between master and slave (most significant bit first).
The communication is always initiated by the master. When the master device transmits data to a slave
device via MOSI pin, the slave device responds by sending data to the master device via the MISO pin.
This implies full duplex communication with both data out and data in synchronized with the same clock
signal (which is provided by the master device via the SCK pin).
To use a single data line, the MISO and MOSI pins must be connected at each node (in this case only
simplex communication is possible).
Four possible data/clock timing relationships may be chosen (see
slave must be programmed with the same timing mode.
128/371
MOSI
MISO
SCK
SS
55.
SOD
bit
SPIDR
8-bit shift register
Read buffer
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
Serial clock generator
Master control
Data/address bus
Read
Write
7
7
SPIF WCOL
SPIE
SPE
Figure 58 on page
SPI state control
OVR
SPR2
Interrupt
request
MODF
MSTR
CPOL
SPICSR
0
132) but master and
CPHA
SOD
SS
SPICR
SPR1
SSM
1
0
SPR0
SSI
0
0

Related parts for st7pmc2s6