Figure 31-12
shows a block diagram of the SPI when operating in Slave Mode.
Figure 31-12. Slave Mode Functional Bloc Diagram
SPCK
NSS
SPI
Clock
SPIEN
SPIENS
SPIDIS
SPI_CSR0
SPI_RDR
RDRF
BITS
OVRES
RD
NCPHA
CPOL
LSB
MSB
Shift Register
MISO
MOSI
SPI_TDR
TDRE
TD
31.7.5
Write Protected Registers
To prevent any single software error that may corrupt SPI behavior, the registers listed below
can be write-protected by setting the WPEN bit in the SPI Write Protection Mode Register
(SPI_WPMR).
If a write access in a write-protected register is detected, then the WPVS flag in the SPI Write
Protection Status Register (SPI_WPSR) is set and the field WPVSRC indicates in which register
the write access has been attempted.
The WPVS flag is automatically reset after reading the SPI Write Protection Status Register
(SPI_WPSR).
List of the write-protected registers:
Section 31.8.2 "SPI Mode Register"
Section 31.8.9 "SPI Chip Select Register"
SAM4S Series [Preliminary]
650
11100B–ATARM–31-Jul-12
Need help?
Do you have a question about the SAM4SD32B and is the answer not in the manual?