Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
БЭМЗ полищук доки / Склад / Datasheet_LM3S6965.pdf
Скачиваний:
10
Добавлен:
21.12.2020
Размер:
6.13 Mб
Скачать

Synchronous Serial Interface (SSI)

Offset

Name

Type

Reset

Description

See

page

 

 

 

 

 

0x008

SSIDR

R/W

0x0000.0000

SSI Data

371

0x00C

SSISR

RO

0x0000.0003

SSI Status

372

0x010

SSICPSR

R/W

0x0000.0000

SSI Clock Prescale

374

0x014

SSIIM

R/W

0x0000.0000

SSI Interrupt Mask

375

0x018

SSIRIS

RO

0x0000.0008

SSI Raw Interrupt Status

377

0x01C

SSIMIS

RO

0x0000.0000

SSI Masked Interrupt Status

378

0x020

SSIICR

W1C

0x0000.0000

SSI Interrupt Clear

379

0xFD0

SSIPeriphID4

RO

0x0000.0000

SSI Peripheral Identification 4

380

0xFD4

SSIPeriphID5

RO

0x0000.0000

SSI Peripheral Identification 5

381

0xFD8

SSIPeriphID6

RO

0x0000.0000

SSI Peripheral Identification 6

382

0xFDC

SSIPeriphID7

RO

0x0000.0000

SSI Peripheral Identification 7

383

0xFE0

SSIPeriphID0

RO

0x0000.0022

SSI Peripheral Identification 0

384

0xFE4

SSIPeriphID1

RO

0x0000.0000

SSI Peripheral Identification 1

385

0xFE8

SSIPeriphID2

RO

0x0000.0018

SSI Peripheral Identification 2

386

0xFEC

SSIPeriphID3

RO

0x0000.0001

SSI Peripheral Identification 3

387

0xFF0

SSIPCellID0

RO

0x0000.000D

SSI PrimeCell Identification 0

388

0xFF4

SSIPCellID1

RO

0x0000.00F0

SSI PrimeCell Identification 1

389

0xFF8

SSIPCellID2

RO

0x0000.0005

SSI PrimeCell Identification 2

390

0xFFC

SSIPCellID3

RO

0x0000.00B1

SSI PrimeCell Identification 3

391

14.5Register Descriptions

The remainder of this section lists and describes the SSI registers, in numerical order by address offset.

366

November 16, 2008

Preliminary

LM3S6965 Microcontroller

Register 1: SSI Control 0 (SSICR0), offset 0x000

SSICR0 is control register 0 and contains bit fields that control various functions within the SSI module. Functionalitysuchasprotocolmode,clockrate,anddatasizeareconfiguredinthisregister.

SSI Control 0 (SSICR0)

SSI0 base: 0x4000.8000

Offset 0x000

Type R/W, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

SCR

 

 

 

SPH

SPO

 

FRF

 

 

DSS

 

Type

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

R/W

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:16

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

15:8

SCR

R/W

0x0000

SSI Serial Clock Rate

 

 

 

 

The value SCR is used to generate the transmit and receive bit rate of

 

 

 

 

the SSI. The bit rate is:

 

 

 

 

BR=FSSIClk/(CPSDVSR * (1 + SCR))

 

 

 

 

where CPSDVSR is an even value from 2-254 programmed in the

 

 

 

 

SSICPSR register, and SCR is a value from 0-255.

7

SPH

R/W

0

SSI Serial Clock Phase

 

 

 

 

This bit is only applicable to the Freescale SPI Format.

 

 

 

 

The SPH controlbitselectstheclockedgethatcapturesdataandallows

 

 

 

 

it to change state. It has the most impact on the first bit transmitted by

 

 

 

 

either allowing or not allowing a clock transition before the first data

 

 

 

 

capture edge.

 

 

 

 

Whenthe SPH bitis0,dataiscapturedonthefirstclockedgetransition.

 

 

 

 

If SPH is 1, data is captured on the second clock edge transition.

6

SPO

R/W

0

SSI Serial Clock Polarity

 

 

 

 

This bit is only applicable to the Freescale SPI Format.

When the SPO bit is 0, it produces a steady state Low value on the

SSIClk pin. If SPO is 1, a steady state High value is placed on the

SSIClk pin when data is not being transferred.

November 16, 2008

367

Preliminary

Synchronous Serial Interface (SSI)

Bit/Field

Name

Type

Reset

Description

5:4

FRF

R/W

0x0

SSI Frame Format Select

 

 

 

 

The FRF values are defined as follows:

 

 

 

 

Value Frame Format

 

 

 

 

0x0 Freescale SPI Frame Format

 

 

 

 

0x1 Texas Instruments Synchronous Serial Frame Format

 

 

 

 

0x2

MICROWIRE Frame Format

 

 

 

 

0x3

Reserved

3:0

DSS

R/W

0x00

SSI Data Size Select

 

 

 

 

The DSS values are defined as follows:

 

 

 

 

Value

Data Size

 

 

 

 

0x0-0x2 Reserved

 

 

 

 

0x3

4-bit data

 

 

 

 

0x4

5-bit data

 

 

 

 

0x5

6-bit data

 

 

 

 

0x6

7-bit data

 

 

 

 

0x7

8-bit data

 

 

 

 

0x8

9-bit data

 

 

 

 

0x9

10-bit data

 

 

 

 

0xA

11-bit data

 

 

 

 

0xB

12-bit data

 

 

 

 

0xC

13-bit data

 

 

 

 

0xD

14-bit data

 

 

 

 

0xE

15-bit data

 

 

 

 

0xF

16-bit data

368

November 16, 2008

Preliminary

LM3S6965 Microcontroller

Register 2: SSI Control 1 (SSICR1), offset 0x004

SSICR1 is control register 1 and contains bit fields that control various functions within the SSI module. Master and slave mode functionality is controlled by this register.

SSI Control 1 (SSICR1)

SSI0 base: 0x4000.8000

Offset 0x004

Type R/W, reset 0x0000.0000

 

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

 

 

 

 

 

 

 

 

reserved

 

 

 

 

 

 

 

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

 

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

 

 

 

 

 

 

reserved

 

 

 

 

 

SOD

MS

SSE

LBM

Type

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

RO

R/W

R/W

R/W

R/W

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Bit/Field

Name

Type

Reset

Description

31:4

reserved

RO

0x00

Software should not rely on the value of a reserved bit. To provide

 

 

 

 

compatibility with future products, the value of a reserved bit should be

 

 

 

 

preserved across a read-modify-write operation.

3

SOD

R/W

0

SSI Slave Mode Output Disable

 

 

 

 

This bit is relevant only in the Slave mode (MS=1). In multiple-slave

 

 

 

 

systems, it is possible for the SSI master to broadcast a message to all

 

 

 

 

slavesinthesystemwhileensuringthatonlyoneslavedrivesdataonto

 

 

 

 

theserialoutputline. Insuchsystems,theTXDlinesfrommultipleslaves

 

 

 

 

could be tied together. To operate in such a system, the SOD bit can be

 

 

 

 

configured so that the SSI slave does not drive the SSITx pin.

 

 

 

 

The SOD values are defined as follows:

 

 

 

 

Value Description

 

 

 

 

0 SSI can drive SSITx output in Slave Output mode.

 

 

 

 

1 SSI must not drive the SSITx output in Slave mode.

2

MS

R/W

0

SSI Master/Slave Select

This bit selects Master or Slave mode and can be modified only when

SSI is disabled (SSE=0).

The MS values are defined as follows:

Value Description

0 Device configured as a master.

1 Device configured as a slave.

November 16, 2008

369

Preliminary

Synchronous Serial Interface (SSI)

Bit/Field

Name

Type

Reset

Description

 

1

SSE

R/W

0

SSI Synchronous Serial Port Enable

 

 

 

 

Setting this bit enables SSI operation.

 

 

 

 

The SSE values are defined as follows:

 

 

 

 

Value

Description

 

 

 

 

0

SSI operation disabled.

 

 

 

 

1

SSI operation enabled.

 

 

 

 

 

Note:

This bit must be set to 0 before any control registers

 

 

 

 

 

 

are reprogrammed.

0

LBM

R/W

0

SSI Loopback Mode

 

 

 

 

Setting this bit enables Loopback Test mode.

 

 

 

 

The LBM values are defined as follows:

 

 

 

 

Value

Description

 

 

 

 

0

Normal serial port operation enabled.

 

 

 

 

1

Outputofthetransmitserialshiftregisterisconnectedinternally

 

 

 

 

 

to the input of the receive serial shift register.

370

November 16, 2008

Preliminary

Соседние файлы в папке Склад