The DSP has general-purpose and dedicated registers in each of its functional blocks, страница 11

Table B-9. SPROMCTL Register Bit Descriptions

Bit Position

Bit Name

Description

4:0

Reserved

5

SDA

SDA pin status.

Default = 0.

Note: This bit resets to zero.

6

SEN

SEN pin status.

Default = 0 (output driving 0).

Note: This bit resets to zero.

7

SCK

SCK pin status.

Default = 0 (output driving 0) Note: This bit resets to zero.

12:8

Reserved

13

SDAI

SDA pin input enable.

1=input Default=1 (input) 0=output.

Note: This bit resets to one.

14

SENI

SEN pin input enable.

1=input

0=output (default)

Note: This bit resets to zero.

15

SCKI

SCK pin input enable.

1=input

0=output (default)

Note: This bit resets to zero.

Host Mailbox Registers

The Host Mailbox registers control communication between the DSP and host (PCI host or USB Host), depending on which one is turned on. Only one can be active at time.

O ve rvie w

DSP Mailbox registers allow you to construct an efficient communications protocol between the PCI device driver and the DSP code. The mailbox functions consist of an InBox0, InBox1, OutBox0, OutBox1, a control register, and a status register.

InBoxes. The incoming mailboxes (InBox0 and InBox1) are 16 bits wide. They may be read or written by the PCI device or the DSP core. PCI writes to the InBoxes may generate DSP interrupts. DSP reads of InBoxes may generate PCI interrupts.

OutBoxes. The outgoing mailboxes (OutBox0 and OutBox1) are 16 bits wide. They may be read or written by the PCI device or the DSP core. DSP writes to the OutBoxes may generate PCI interrupts.

PCI reads of OutBoxes may generate DSP interrupts with special handling. The PC host must perform the following sequence when reading an OutBox: (1) read OutBox, (2) write a 1 to the OutBox Valid bit to clear it. (PCI reads of OutBoxes cannot generate interrupts directly, as they would be “read side-effects” which are prohibited by system design considerations in the PCI Specification.)

Control. This register consists of read/write interrupt enable control bits. (denoted R/W).

Status. This register consists of read/write-one-clear status bits (denoted R/WC). A read/write-one-clear bit is cleared when a one is written to it.

Writing a zero has no effect.

Table B-10 lists the Peripheral Device Control Register Space for PCI/USB Mailbox registers. For register bit names and descriptions for each register, see the topic “Using DSP and PCI Mailbox Registers” in Chapter 6 Dual DSP Cores.

Table B-10. PCI / USB Mailbox Registers

Register

Name

Description

PCI Address

USB Address

DSP

I/O

Page

DSP

I/O

Address

MBXSTAT

Mailbox Status

0x021-0x020

0x0021-0x0020

0x00

0x20

MBXCTL

Mailbox Control

0x023-0x022

0x0023-0x0022

0x00

0x22

MBX_IN0

Incoming Mailbox 0

PCI/USB to DSP mailbox

0x025-0x024

0x0025-0x0024

0x00

0x24

MBX_IN1

Incoming Mailbox 1

PCI/USB to DSP mailbox

0x027-0x026

0x0027-0x0026

0x00

0x26

MBX_OUT0

Outgoing Mailbox 0

DSP to PCI/USB mailbox

0x029-0x028

0x0029-0x0028

0x00

0x28

MBX_OUT1

Outgoing Mailbox 0

DSP to PCI/USB mailbox

0x02B-0x02A

0x002B-0x002A

0x00

0x2A

C a rdBus Func tion Ev e nt Re g iste rs