Table 14-7. Dr Register; Table 14-8. Dr Fields; Data Register – Receive/Transmit Fifo Register (Dr) - Sharp LH79524 User Manual

Table of Contents

Advertisement

LH79524/LH79525 User's Guide
14.2.2.3 Data Register – Receive/Transmit FIFO Register (DR)
DR is the 16-bit-wide Receive/Transmit FIFO register.
• When DR is read, the entry in the receive FIFO (pointed to by the current FIFO read
pointer) is accessed. As data values are removed by the SSP's receive logic from the
incoming data frame, they are placed into the entry in the receive FIFO (pointed to by
the current FIFO write pointer).
• When DR is written to, the entry in the transmit FIFO (pointed to by the write pointer), is
written with the DR data. Data values are removed from the transmit FIFO one value at
a time by the transmit logic. Each value is loaded into the transmit serial shifter, then
serially shifted out onto the SSPTX pin at the programmed bit rate.
When a data size of less than 16 bits is selected, software must right-justify data written to
the transmit FIFO. The transmit logic ignores the unused bits. Received data less than 16
bits is automatically right-justified in the 16-bit wide receive buffer. Software should ignore
(by masking) the receive buffer upper unused bits.
When the SSP is programmed for National Microwire frame format in master mode, the
default size for transmit data is eight bits (the most-significant byte is ignored). The receive
data size is controlled by software. When the SSP is the slave device, it will receive 8 bits
of control data and transmit 4 to 16 bits of data. The transmit FIFO and the receive FIFO
are not cleared, even when the SSE bit in Control Register 1 is set to 0 (refer to
Section 14.2.2.2). This allows the software to fill the transmit FIFO before enabling the SSP.
BIT
FIELD
RESET
RW
BIT
FIELD
RESET
RW
ADDR
BITS
31:16
15:0
31
30
29
28
27
0
0
0
0
0
RO
RO
RO
RO
RO
15
14
13
12
11
0
0
0
0
0
RW
RW
RW
RW
RW
NAME
///
Reserved Reading returns 0. Write the reset value.
Transmit/Receive FIFO Right-justify data when the SSP is programmed for
a data size that is smaller than 16 bits. Unused bits at the top are ignored by
transmit logic. The receive logic automatically right-justifies.
DATA
Read = Receive FIFO top entry
Write = Transmit FIFO top entry

Table 14-7. DR Register

26
25
24
23
///
0
0
0
0
RO
RO
RO
RO
10
9
8
7
DATA
0
0
0
0
RW
RW
RW
RW
0xFFFC6000 + 0x008

Table 14-8. DR Fields

DESCRIPTION
Version 1.0
Synchronous Serial Port
22
21
20
19
18
0
0
0
0
0
RO
RO
RO
RO
RO
6
5
4
3
2
0
0
0
0
0
RW
RW
RW
RW
RW
17
16
0
0
RO
RO
1
0
0
0
RW
RW
14-13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lh79525

Table of Contents