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

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

HOST INTERFACE (HI)

Table 5-3 Host Mode Bit Definition

HM1

HM0

Mode

 

 

 

 

 

 

0

0

Interrupt Mode (DMA Off)

01 DMA Mode (24 Bit)

10 DMA Mode (16 Bit)

1

1

DMA Mode (8 Bit)

put pin. Also, in the non-DMA mode, the HACK input pin is used for the MC68000 Family vectored interrupt acknowledge input.

When HM1 or HM0 are set, the DMA mode is enabled, and the HREQ pin is used to request DMA transfers. When the DMA mode is enabled, the TREQ and RREQ bits select the direction of DMA transfers. The HACK input pin is used as a DMA transfer acknowledge input. If the DMA direction is from DSP to host, the contents of the selected register are enabled onto the host data bus when HACK is asserted. If the DMA direction is from host to DSP, the selected register is written from the host data bus when HACKis asserted.

The size of the DMA word to be transferred is determined by the DMA control bits, HM0 and HM1. The HI register selected during a DMA transfer is determined by a 2-bit address counter, which is preloaded with the value in HM1 and HM0. The address counter substitutes for the HA1 and HA0 bits of the HI during a DMA transfer. The host address bit (HA2) is forced to one during each DMA transfer. The address counter can be initialized with the INIT bit feature. After each DMA transfer on the host data bus, the address counter is incremented to the next register. When the address counter reaches the highest register

(RXL or TXL), the address counter is not incremented but is loaded with the value in HM1 and HM0. This allows 8-, 16or 24-bit data to be transferred in a circular fashion and eliminates the need for the DMA controller to supply the HA2, HA1, and HA0 pins. For 16or

24-bit data transfers, the DSP CPU interrupt rate is reduced by a factor of 2 or 3, respectively, from the host request rate – i.e., for every two or three host processor data transfers of one byte each, there is only one 24-bit DSP CPU interrupt.

Hardware, software, individual, and STOP resets clear HM1 and HM0.

5.3.3.2.7ICR Initialize Bit (INIT) Bit 7

The INIT bit is used by the host processor to force initialization of the HI hardware. Initialization consists of configuring the HI transmit and receive control bits and loading HM1 and HM0 into the internal DMA address counter. Loading HM1 and HM0 into the DMA address counter causes the HI to begin transferring data on a word boundary rather than

5 - 24 PORT B MOTOROLA

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

Freescale Semiconductor, Inc.

HOST INTERFACE (HI)

transferring only part of the first data word.

Freescale Semiconductor, Inc.

MOTOROLA PORT B 5 - 25

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

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

HOST INTERFACE (HI)

Table 5-4 HREQ Pin Definition

 

 

 

 

 

Transfer

TREQ

RREQ

 

After INIT Execution

 

Direction

 

 

 

 

 

Initialized

 

 

 

 

 

 

 

 

 

Interrupt Mode (HM1 = 0, HM0 = 0) INIT Execution

 

 

 

 

 

 

 

0

0

 

INIT = 0; Address Counter = 00

 

None

 

 

 

 

 

 

0

1

 

INIT = 0; RXDF = 0; HTDE = 1; Address

 

DSP to Host

 

 

 

Counter = 00

 

 

 

 

 

 

 

 

1

0

 

INIT = 0; TXDE = 1; HRDF = 0; Address

 

Host to DSP

 

 

 

Counter = 00

 

 

 

 

 

 

 

 

1

1

 

INIT = 0; RXDF = 0; HTDE = 1; TXDE =

 

Host to/from DSP

 

 

 

1; HRDF = 0; Address Counter = 00

 

 

 

 

 

 

 

 

 

 

DMA Mode (HM1 or HM0 = 1) INIT Execution

 

 

 

 

 

 

 

0

0

 

INIT = 0; Address Counter = HM1, HM0

 

None

 

 

 

 

 

 

0

1

 

INIT = 0; RXDF = 0; HTDE = 1; Address

 

DSP to Host

 

 

 

Counter = HM1, HM0

 

 

 

 

 

 

 

 

1

0

 

INIT = 0; TXDE = 1; HRDF = 0; Address

 

Host to DSP

 

 

 

Counter = HM1, HM0

 

 

 

 

 

 

 

 

1

1

 

Undefined (Illegal)

 

Undefined

 

 

 

 

 

 

There are two methods of initialization: 1) allowing the DMA address counter to be automatically set after transferring a word, and 2) setting the INIT bit, which sets the DMA address counter. Using the INIT bit to initialize the HI hardware may or may not be necessary, depending on the software design of the interface.

The type of initialization done when the INIT bit is set depends on the state of TREQ and RREQ in the HI. The INIT command, which is local to the HI, is designed to conveniently configure the HI into the desired data transfer mode. The commands are described in the following paragraphs and in Table 5-4. The host sets the INIT bit, which causes the HI hardware to execute the INIT command. The interface hardware clears the INIT bit when the command has been executed. Hardware, software, individual, and STOP resets clear INIT.

INIT execution always loads the DMA address counter and clears the channel according to TREQ and RREQ. INIT execution is not affected by HM1 and HM0.

The internal DMA counter is incremented with each DMA transfer (each HACK pulse) until it reaches the last data register (RXL or TXL). When the DMA transfer is completed, the counter is loaded with the value of the HM1 and HM0 bits. When changing the size of the

5 - 26 PORT B MOTOROLA

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

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