Programming Model
MOTOROLA
Serial Peripheral Interface Modules (SPI 1 and SPI 2)
18-13
18.3.6 Sample Period Control Registers
The SPI sample period control registers allow the user to select the clock source for the counter and to set
the wait between data transactions. The wait is only applicable when the SPI module is operating in master
mode.
TXCNT
Bits 3–0
TXFIFO Counter
—Indicates the number of data words in the
TXFIFO.
0000 = TXFIFO is empty
0001 = 1 data word in TXFIFO
0010 = 2 data words in TXFIFO
0011 = 3 data words in TXFIFO
0100 = 4 data words in TXFIFO
0101 = 5 data words in TXFIFO
0110 = 6 data words in TXFIFO
0111 = 7 data words in TXFIFO
1000 = 8 data words in TXFIFO
PERIODREG1
PERIODREG2
SPI 1 Sample Period Control Register
SPI 2 Sample Period Control Register
Addr
0x00213014
0x00219014
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
CSRC
WAIT
TYPE
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
rw
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0000
Table 18-9. SPI 1 Sample Period Control Register and
SPI 2 Sample Period Control Register Description
Name
Description
Settings
Reserved
Bits 31–16
Reserved—These bits are reserved and should read 0.
CSRC
Bit 15
Clock Source
—Selects the clock source for the counter.
0 = Bit clock
1 = 32.768 kHz clock
WAIT
Bits 14–0
Wait
—Determines the number of clocks inserted between data
transactions (when operating in master mode).
0x0000 = 0 clock
0x0001 = 1 clock
0x0002 = 2 clocks
…
0x7FFF = 32768 clocks
Table 18-8. SPI 1 Test Register and SPI 2 Test Register Description (Continued)
Name
Description
Settings
Summary of Contents for DragonBall MC9328MX1
Page 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Page 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Page 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Page 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Page 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Page 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Page 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Page 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Page 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Page 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Page 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Page 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Page 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Page 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Page 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Page 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Page 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Page 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Page 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...