18-8
MC9328MX1 Reference Manual
MOTOROLA
Serial Peripheral Interface Modules (SPI 1 and SPI 2)
18.3.3 Control Registers
The SPI control registers allow the user to enable the SPI modules, select their operating modes, specify
the divider value, phase, and polarity of the clock, configure the SS and SPI_RDY control signal (for
SPI 1), and define the transfer length.
CONTROLREG1
CONTROLREG2
SPI 1 Control Register
SPI 2 Control Register
Addr
0x00213008
0x00219008
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
TYPE
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0000
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
DATARATE
DRCTL
MODE SPIEN XCH SSPOL SSCTL PHA
POL
BIT_COUNT
TYPE
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
RESET
0
0
0
0
0
0/1
1
1.
In CONTROLREG2, the MODE bit is set to 1.
0
0
0
0
0
0
0
0
0
0
0x0000 / 0x0400
1
Table 18-6. SPI 1 Control Register and SPI 2 Control Register Description
Name
Description
Settings
Reserved
Bits 31–16
Reserved—These bits are reserved and should read 0.
DATARATE
Bits 15–13
Data Rate
—Selects the divide value of SCLK from the
PERCLK2 in the PLL and Clock Control Module.
000 = Divide by 4
001 = Divide by 8
010 = Divide by 16
011 = Divide by 32
100 = Divide by 64
101 = Divide by 128
110 = Divide by 256
111 = Divide by 512
DRCTL
Bits 12–11
SPI_RDY Control
—Selects the waveform of the
SPI_RDY input signal when the SPI 1 module operates
in master mode. In slave mode, DRCTL is ignored.
Because the SPI 2 module does not support the
SPI_RDY control signal function, DRCTL must be
written with 00 in CONTROLREG2.
00 = Ignore SPI_RDY
01 = Falling edge triggers input
10 = Active low level triggers input
11 = Reserved
MODE
Bit 10
SPI Mode Select
—Selects the mode for the SPI 1
module. In CONTROLREG2, MODE is set by the
hardware.
0 = Slave mode
1 = Master mode
Содержание DragonBall MC9328MX1
Страница 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Страница 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Страница 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Страница 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Страница 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Страница 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Страница 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Страница 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Страница 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Страница 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Страница 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Страница 542: ...20 64 MC9328MX1 Reference Manual MOTOROLA Multimedia Card Secure Digital Host Controller Module MMC SD ...
Страница 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Страница 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Страница 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Страница 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Страница 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Страница 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Страница 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Страница 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...