Spi 1 Test Register; Spi 1 Sample Period Control Register; Table 13-5 Spi 1 Test Register Description - Motorola MC68VZ328 User Manual

Motorola mc68vz328 integrated processor user's manual
Table of Contents

Advertisement

SPI 1 Programming Model
13.3.5

SPI 1 Test Register

The configurable SPI test (SPITEST) register indicates the state machine status of SPI 1 as well as the
number of words currently in the TxFIFO and RxFIFO. The bit position assignments for this register are
shown in the following register display. The settings for this register are described in Table 13-5.
SPITEST
BIT
14
13
15
TYPE
0
0
0
RESET
Name
Reserved
Reserved
Bits 15–12
SSTATUS
State Machine Status—This field indicates the state
Bits 11–8
machine status. These bits are used for test purposes only.
RXCNT
RxFIFO Counter—This field indicates the number of data
Bits 7–4
words in the RxFIFO.
TXCNT
TxFIFO Counter—This field indicates the number of data
Bits 3–0
words in the TxFIFO.
13.3.6

SPI 1 Sample Period Control Register

This register controls the time inserted between data transactions in master mode. The time inserted
between samples can be from 0 to about 1 second at the resolution of the data rate clock (SPICLK1) or the
CLK32 signal. Unless a different crystal is used, the CLK32 signal is 32.768 kHz. The bit position
assignments for this register are shown in the following register display. The settings for this register are
described in Table 13-6 on page 13-11.
13-10
SPI 1 Test Register
12
11
10
9
SSTATUS
rw
rw
rw
0
0
0
0
Table 13-5. SPI 1 Test Register Description
Description
MC68VZ328 User's Manual
8
7
6
5
RXCNT
rw
rw
rw
rw
0
0
0
0
0x0000
These bits are reserved and
should be set to 0.
See description.
0000 = RXFIFO is empty.
0001 = 1 data word in RXFIFO.
0010 = 2 data words in RXFIFO.
0011 = 3 data words in RXFIFO.
0100 = 4 data words in RXFIFO.
0101 = 5 data words in RXFIFO.
0110 = 6 data words in RXFIFO.
0111 = 7 data words in RXFIFO.
1000 = 8 data words in RXFIFO.
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.
0x(FF)FFF708
BIT
4
3
2
1
TXCNT
rw
rw
rw
rw
0
0
0
0
Setting
0
rw
0

Advertisement

Table of Contents
loading

Table of Contents