ST72325R6-AUTO STMicroelectronics, ST72325R6-AUTO Datasheet - Page 142

no-image

ST72325R6-AUTO

Manufacturer Part Number
ST72325R6-AUTO
Description
8-bit Mcu For Automotive With 16 To 60 Kbyte Flash, Adc, Css, 5 Timers, Spi, Sci, I2c Interface
Manufacturer
STMicroelectronics
Datasheet
Serial peripheral interface (SPI)
14.8.3
Note:
142/250
Table 68.
Data I/O register (SPIDR)
The SPIDR register is used to transmit and receive data on the serial bus. In a master
device, a write to this register will initiate transmission/reception of another byte.
During the last clock cycle the SPIF bit is set, a copy of the received data byte in the shift
register is moved to a buffer. When the user reads the serial peripheral data I/O register, the
buffer is actually being read.
While the SPIF bit is set, all writes to the SPIDR register are inhibited until the SPICSR
register is read.
SPIDR
Bit
4
3
2
1
0
7
MODF
Name
SOD
SSM
SSI
-
SPICSR register description (continued)
Mode Fault flag
Reserved, must be kept cleared
SPI Output Disable
SS Management
SS Internal Mode
This bit is set by hardware when the SS pin is pulled low in master mode (see
Master mode fault (MODF) on page
SPIE = 1 in the SPICSR register. This bit is cleared by a software sequence (An
access to the SPICR register while MODF = 1 followed by a write to the SPICR
register).
0: No master mode fault detected
1: A fault in master mode has been detected
This bit is set and cleared by software. When set, it disables the alternate function of
the SPI output (MOSI in master mode / MISO in slave mode).
0: SPI output enabled (if SPE = 1)
1: SPI output disabled
This bit is set and cleared by software. When set, it disables the alternate function of
the SPI SS pin and uses the SSI bit value instead. See
page
0: Hardware management (SS managed by external pin)
1: Software management (internal SS signal controlled by SSI bit. External SS pin
free for general-purpose I/O)
This bit is set and cleared by software. It acts as a ‘chip select’ by controlling the
level of the SS slave select signal when the SSM bit is set.
0: Slave selected
1: Slave deselected
6
132.
5
4
D[7:0]
RW
Function
137). An SPI interrupt can be generated if
3
2
Slave select management on
Reset value: Undefined
ST72325xxx-Auto
1
0

Related parts for ST72325R6-AUTO