5 serial clock rate (scr), 2 ssp control register 1 (sscr1) – Intel PXA26X User Manual

Page 329

Advertising
background image

Intel® PXA26x Processor Family Developer’s Manual

8-11

Synchronous Serial Port Controller

8.7.1.5

Serial Clock Rate (SCR)

Use the 8-bit serial clock rate (SCR) bit-field to select the SSPC bit rate. The SSPC has 256-bit
rates, from 7.2 Kbps to 1.8432 Mbps. The serial clock generator uses the internal 3.6864-MHz
clock or an external clock provided through SSPEXTCLK. The clock is divided by 2, then divided
by the programmable SCR value (0 to 255) plus 1 to generate the serial clock (SSPSCLK). The
resultant clock is driven on the SSPSCLK pin and is used by the SSP’s transmit logic to drive data
on the SSPTXD pin and to latch data on the SSPRXD pin. Depending on the frame format selected,
each transmitted bit is driven on either SSPSCLK’s rising or falling edge and sampled on the
opposite clock edge.

8.7.2

SSP Control Register 1 (SSCR1)

The SSP Control Register 1 (SSCR1) contains bit fields that control SSP functions, as described in

Table 8-3

.

Table 8-3. SSP Control Register 1 (SSCR1) Bitmap and Definitions (Sheet 1 of 2)

0x4100 0004

SSP Control Register 1 (SSCR1)

Bit

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9

8

7

6

5

4

3

2

1

0

Reserved

RF

T

TF

T

MW

D

S

SP

H

SP

O

LB

M

TIE

RI

E

Reset

X

0x0

0x0

0

0

0

0

0

0

Bits

Name

Description

0

RIE

RECEIVE FIFO INTERRUPT ENABLE:

0 – Receive FIFO interrupt is disabled

1 – Receive FIFO interrupt is enabled

1

TIE

TRANSMIT FIFO INTERRUPT ENABLE:

0 – Transmit FIFO interrupt is disabled

1 – Transmit FIFO interrupt is enabled

2

LBM

LOOP-BACK MODE:

0 – Normal serial port operation enabled

1 – Output of transmit serial shifter internally connected to input of receive serial shifter

3

SPO

MOTOROLA SPI SSPSCLK POLARITY SETTING:

0 – The inactive or idle state of SSPSCLK is low.

1 – The inactive or idle state of SSPSCLK is high.

4

SPH

MOTOROLA SPI SSPSCLK PHASE SETTING:

0 – SSPSCLK is inactive one cycle at the start of a frame and 1/2 cycle at the end of a

frame.

1 – SSPSCLK is inactive 1/2 cycle at the start of a frame and one cycle at the end of a

frame.

5

MWDS

MICROWIRE TRANSMIT DATA SIZE:

0 – 8-bit command words are transmitted.

1 – 16-bit command words are transmitted.

Advertising