Motorola MC68VZ328 User Manual

Page 243

Advertising
background image

SPI 1 Programming Model

Serial Peripheral Interface 1 and 2

13-7

SSCTL
Bit 6

SS Waveform Select—In master mode, this
bit selects the output wave form for the SS sig-
nal. In slave mode, this bit controls RxFIFO
advancement.

Master Mode:
0 = SS stays low between SPI 1 bursts
1 = Insert pulse between SPI 1 bursts
Slave Mode:
0 = RxFIFO advanced by Bit Count
1 = RxFIFO advanced by SS rising edge

PHA
Bit 5

Phase—This bit controls the clock/data phase
relationship.

0 = Phase 0 operation
1 = Phase 1 operation

POL
Bit 4

Polarity—This bit controls the polarity of the
SCLK signal.

0 = Active high polarity (0 = idle)
1 = Active low polarity (1 = idle)

BIT COUNT
Bits 3–0

Bit Count—This field selects the length of the
transfer. A maximum of 16 bits can be trans-
ferred.

In master mode, a 16-bit data word is loaded
from TxFIFO to the shift register, and only the
least significant n bits (n = BIT COUNT) are
shifted out. The next 16-bit word is then loaded
to the shift register.

In slave mode, when the SSCTL bit is 0, this
field controls the number of bits received as a
data word loaded to RxFIFO. When the
SSCTL bit is 1, this field is ignored.

0000 = 1-bit transfer
0001 = 2-bit transfer
.
.
.
1110 = 15-bit transfer
1111 = 16-bit transfer

Table 13-3. SPI 1 Control/Status Register Description (Continued)

Name

Description

Setting

Advertising