st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 133
![no-image](/images/manufacturer_photos/0/6/637/stmicroelectronics_sml.jpg)
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
1.ST7PMC2S6.pdf
(371 pages)
- Current page: 133 of 371
- Download datasheet (7Mb)
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
10.4.5
Note:
Note:
Error flags
Master mode fault (MODF)
Master mode fault occurs when the master device’s SS pin is pulled low.
When a master mode fault occurs:
Clearing the MODF bit is done through a software sequence:
1.
2.
To avoid any conflicts in an application with multiple slaves, the SS pin must be pulled high
during the MODF bit clearing sequence. The SPE and MSTR bits may be restored to their
original state during or after this clearing sequence.
Hardware does not allow the user to set the SPE and MSTR bits while the MODF bit is set
except in the MODF bit clearing sequence.
In a slave device, the MODF bit can not be set, but in a multimaster configuration the device
can be in slave mode with the MODF bit set.
The MODF bit indicates that there might have been a multimaster conflict and allows
software to handle this using an interrupt routine and either perform a reset or return to an
application default state.
Overrun condition (OVR)
An overrun condition occurs when the master device has sent a data byte and the slave
device has not cleared the SPIF bit issued from the previously transmitted byte.
When an overrun occurs, the OVR bit is set and an interrupt request is generated if the SPIE
bit is set.
In this case, the receiver buffer contains the byte sent after the SPIF bit was last cleared. A
read to the SPIDR register returns this byte. All other bytes are lost.
The OVR bit is cleared by reading the SPICSR register.
Write collision error (WCOL)
A write collision occurs when the software tries to write to the SPIDR register while a data
transfer is taking place with an external device. When this happens, the transfer continues
uninterrupted and the software write is unsuccessful.
Write collisions can occur both in master and slave mode. See also
management on page
A ‘read collision’ never occurs since the received data byte is placed in a buffer in which
access is always synchronous with the CPU operation.
The WCOL bit in the SPICSR register is set if a write collision occurs.
No SPI interrupt is generated when the WCOL bit is set (the WCOL bit is a status flag only).
The MODF bit is set and an SPI interrupt request is generated if the SPIE bit is set.
The SPE bit is reset. This blocks all output from the device and disables the SPI
peripheral.
The MSTR bit is reset, thus forcing the device into slave mode.
A read access to the SPICSR register while the MODF bit is set.
A write to the SPICR register.
129.
Slave select
On-chip peripherals
133/371
Related parts for st7pmc2s6
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ST7-DVP3](/images/no-image3.png)
Part Number:
Description:
Low Cost, Real Time Emulator Series for ST7
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST7-EMU3](/images/no-image3.png)
Part Number:
Description:
Full-featured, real time emulator series for ST7
Manufacturer:
STMICROELECTRONICS [STMicroelectronics]
Datasheet:
![ST7-88](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![ST7-STICK](/images/manufacturer_photos/0/6/637/stmicroelectronics_tmb.jpg)
Part Number:
Description:
In-Circuit Programmer
Manufacturer:
STMicroelectronics
Datasheet:
![st7-56](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-40](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-48](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-30](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-34](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-36](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-28](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-24](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-20](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-16](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet:
![st7-10](/images/no-image3.png)
Part Number:
Description:
Power Transformer
Manufacturer:
Superworld Electronics
Datasheet: