Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Сигнальный МП Motorola DSP56002.pdf
Скачиваний:
22
Добавлен:
26.05.2014
Размер:
2 Мб
Скачать
☆

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

GENERAL PURPOSE I/O CONFIGURATION

 

 

ENABLED BY

DIRECTION

INPUT/OUTPUT

 

 

BITS IN

SELECTED BY

DATA

 

 

X:$FFE0

X:$FFE2

X:$FFE4

 

PB0

BC0/BC1

BD0

PB0

 

PB1

BC0/BC1

BD1

PB1

 

PB2

BC0/BC1

BD2

PB2

P

PB3

BC0/BC1

BD3

PB3

PB4

BC0/BC1

BD4

PB4

O

PB5

BC0/BC1

BD5

PB5

R

PB6

BC0/BC1

BD6

PB6

T

PB7

BC0/BC1

BD7

PB7

 

B

PB8

BC0/BC1

BD8

PB8

PB9

BC0/BC1

BD9

PB9

 

 

PB10

BC0/BC1

BD10

PB10

 

PB11

BC0/BC1

BD11

PB11

 

PB12

BC0/BC1

BD12

PB12

 

PB13

BC0/BC1

BD13

PB13

 

PB14

BC0/BC1

BD14

PB14

Figure 5-3 Parallel Port B Pinout

If a pin is configured as a GPIO output and the processor reads the PBD, the processor sees the contents of the PBD rather the logic level on the pin, which allows the PBD to be used as a general purpose 15-bit register. If the processor writes to the PBD, the data is latched there and appears on the pin during the following instruction cycle (see Section 5.2.2 Port B General Purpose I/O Timing).

If a pin is configured as a host pin, the Port B GPIO registers can be used to help in debugging the HI. If the PBDDR bit for a given pin is cleared (configured as an input), the

PBD will show the logic level on the pin, regardless of whether the HI function is using the pin as an input or an output.

If the PBDDR is set (configured as an output) for a given pin that is configured as a host pin, when the processor reads the PBD, it sees the contents of the PBD rather than the logic level on the pin - another case which allows the PBD to act as a general purpose register.

Note: The external host processor should be carefully synchronized to the DSP56002 to assure that the DSP and the external host will properly read status bits transmitted between them. There is more discussion of such port usage considerations in sections Section 5.3.2.7 Host Port Usage Considerations – DSP Side and Section

5.3.6.5Host Port Usage Considerations – Host Side.

5.2.1Programming General Purpose I/O

Port B is a memory-mapped peripheral as are all of the DSP56002 peripherals (see

Figure 5-5). The standard MOVE instruction transfers data between Port B and a register; as a result, MOVE takes two instructions to perform a memory-to-memory data

MOTOROLA PORT B 5 - 5

For More Information On This Product, Go to: www.freescale.com

Freescale Semiconductor, Inc.

GENERAL PURPOSE I/O CONFIGURATION

Freescale Semiconductor, Inc.

 

Port Control

Data Direction

Pin Function

 

Register Bit

Register Bit

 

 

 

0

0

Port Input Pin

 

PORT B DATA (PBD)

 

PIN

 

 

 

 

REGISTER BIT

 

 

 

 

 

(GPIO

 

 

 

POSITION)

 

DATA DIRECTION

 

 

PORT

REGISTER (PBDDR) BIT

 

 

 

 

 

REGISTERS

 

 

 

 

PORT B CONTROL

 

 

 

REGISTER (PBC) BIT

 

(INPUT

 

 

 

POSITION)

 

PORT INPUT DATA BIT

 

 

 

HI OUTPUT DATA BIT

 

 

PERIPHERAL

HI DATA DIRECTION BIT

 

 

LOGIC

 

 

 

 

HI INPUT DATA BIT

 

 

Figure 5-4 Port B I/O Pin Control Logic

transfer and uses a temporary holding register. The MOVEP instruction is specifically designed for I/O data transfer as shown in Figure 5-6. Although the MOVEP instruction may take twice as long to execute as a MOVE instruction, only one MOVEP is required for a memory-to-memory data transfer, and MOVEP does not use a temporary register. Using the MOVEP instruction allows a fast interrupt to move data to/from a peripheral to memory and execute one other instruction or move the data to an absolute address. MOVEP is the only memory-to-memory move instruction; however, one of the operands must be in the top 64 locations of either X: or Y: memory.

The bit-oriented instructions that use I/O short addressing (BCHG, BCLR, BSET, BTST, JCLR, JSCLR, JSET, and JSSET) can also be used to address individual bits for faster

I/O processing. The digital signal processor (DSP) does not have a hardware data strobe to strobe data out of the GPIO port. If a strobe is needed, it can be implemented using software to toggle one of the GPIO pins.

5 - 6 PORT B MOTOROLA

For More Information On This Product, Go to: www.freescale.com

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

GENERAL PURPOSE I/O CONFIGURATION

 

 

23

16

15

 

 

 

8

7

 

 

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFFF

 

 

 

 

 

 

 

 

 

 

 

INTERRUPT PRIORITY REGISTER (IPR)

 

 

X:$FFFE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT A — BUS CONTROL REGISTER (BCR)

 

 

X:$FFFD

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PLL CONTROL REGISTER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFFC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OnCE GDB REGISTER

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFFB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFFA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI HI - REC/XMIT DATA REGISTER (SRX/STX)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI MID - REC/XMIT DATA REGISTER (SRX/STX)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI LOW - REC/XMIT DATA REGISTER (SRX/STX)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI TRANSMIT DATA ADDRESS REGISTER (STXA)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI CONTROL REGISTER (SCCR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI INTERFACE STATUS REGISTER (SSR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFF0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SCI INTERFACE CONTROL REGISTER (SCR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFEF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SSI RECIEVE/TRANSMIT DATA REGISTER (RX/TX)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFEE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SSI STATUS/TIME SLOT REGISTER (SSISR/TSR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SSI CONTROL REGISTER B (CRB)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFEC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SSI CONTROL REGISTER A (CRA)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFEB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HOST RECEIVE/TRANSMIT REGISTER (HRX/HTX)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFEA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE9

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HOST STATUS REGISTER (HSR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HOST CONTROL REGISTER (HCR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RESERVED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT C — DATA REGISTER (PCD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT B — DATA REGISTER (PBD)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT C — DATA DIRECTION REGISTER (PCDDR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT B — DATA DIRECTION REGISTER (PBDDR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT C — CONTROL REGISTER (PCC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFE0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PORT B — CONTROL REGISTER (PBC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFDF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TIMER COUNT REGISTER (TCR)

 

 

X:$FFDE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TIMER CONTROL/STATUS REGISTER (TCSR)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

X:$FFC0

RESERVED

= Read as random number; write as don’t care.

Figure 5-5 On-Chip Peripheral Memory Map

MOTOROLA PORT B 5 - 7

For More Information On This Product, Go to: www.freescale.com

Соседние файлы в предмете Радиоприемные устройства