Atmel Evaluation Kit for AT32uC3A0512, 32-Bit AVR Microcontroller Atmel ATEVK1105 ATEVK1105 Data Sheet

Product codes
ATEVK1105
Page of 826
208
AT32UC3A
23.8.2
SPI Mode Register
Name:
 
MR
Access Type:
 
Read/Write 
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:
CSR0 defines peripheral chip select signals 0 to 3.
CSR1 defines peripheral chip select signals 4 to 7.
CSR2 defines peripheral chip select signals 8 to 11.
CSR3 defines peripheral chip select signals 12 to 14.
FDIV: Clock Selection 
0 = The SPI operates at MCK.
1 = The SPI operates at MCK/32.
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 to
MOSI.
31
30
29
28
27
26
25
24
DLYBCS
23
22
21
20
19
18
17
16
PCS
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
LLB
MODFDIS
FDIV
PCSDEC
PS
MSTR
32058K AVR32-01/12