|
SAM7X128_14 Datasheet, PDF (258/662 Pages) ATMEL Corporation – ARM-based Flash MCU | |||
|
◁ |
28.7.2 SPI Mode Register
Name:
SPI_MR
Access Type:
Read-write
31
30
29
23
22
21
â
â
â
15
14
13
â
â
â
7
6
5
LLB
â
â
28
27
DLYBCS
20
19
â
12
11
â
â
4
3
MODFDIS
26
25
18
17
PCS
10
9
â
â
2
1
PCSDEC
PS
24
16
8
â
0
MSTR
⢠MSTR: Master/Slave Mode
0 = SPI is in Slave mode.
1 = SPI is in Master mode.
⢠PS: Peripheral Select
0 = Fixed Peripheral Select.
1 = Variable Peripheral Select.
⢠PCSDEC: Chip Select Decode
0 = The chip selects are directly connected to a peripheral device.
1 = The four chip select lines are connected to a 4- to 16-bit decoder.
When PCSDEC equals one, up to 15 Chip Select signals can be generated with the four lines using an external 4- to 16-bit
decoder. The Chip Select Registers define the characteristics of the 15 chip selects according to the following rules:
SPI_CSR0 defines peripheral chip select signals 0 to 3.
SPI_CSR1 defines peripheral chip select signals 4 to 7.
SPI_CSR2 defines peripheral chip select signals 8 to 11.
SPI_CSR3 defines peripheral chip select signals 12 to 14.
⢠MODFDIS: Mode Fault Detection
0 = Mode fault detection is enabled.
1 = Mode fault detection is disabled.
⢠LLB: Local Loopback Enable
0 = Local loopback path disabled.
1 = Local loopback path enabled.
LLB controls the local loopback on the data serializer for testing in Master Mode only. (MISO is internally connected on MOSI.)
⢠PCS: Peripheral Chip Select
This field is only used if Fixed Peripheral Select is active (PS = 0).
If PCSDEC = 0:
PCS = xxx0
NPCS[3:0] = 1110
PCS = xx01
NPCS[3:0] = 1101
SAM7X Series [DATASHEET]
6120KâATARMâ11-Feb-14
258
|
▷ |