Скачиваний:
33
Добавлен:
27.04.2015
Размер:
1.66 Mб
Скачать

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

Digital Audio Transmitter

DAX Programming Considerations

Note: For proper operation of the DAX, the DSP core clock frequency must be at least five times higher than the DAX bit shift clock frequency (64 × Fs).

8.5.11DAX State Machine

The DAX state machine generates a set of sequencing signals used in the DAX.

8.6DAX PROGRAMMING CONSIDERATIONS

8.6.1Initiating A Transmit Session

To initiate the DAX operation, follow this procedure:

1.Write the audio data in the XADRA/XADRB registers

2.Write the non-audio data and transmit mode to the corresponding bits in the XCTR register; ensure that the XEN bit remains cleared

3.Set the XEN bit in the XCTR; transmission begins

8.6.2Transmit Register Empty Interrupt Handling

When the XIEN bit is set and the DAX is active, a Transmit Audio Data register Empty interrupt (XADE = 1) is generated once at the beginning of every frame transmission. Typically, within an XADE interrupt, one frame of audio data to be transmitted in the next frame is stored in the XADRA and the XADRB by two consecutive MOVEP instructions within a fast interrupt routine. This clears the XADE bit in the XSTR.

8.6.3Block Transferred Interrupt Handling

An interrupt with the XBLK vector indicates the end of a block transmission and can require some computation to provide the next non-audio data structures that are to be transmitted within the next block. Within the routine, the next audio data can be stored in the XADRA/XADRB registers, and the next non-audio data can also be stored in the XCTR.

8-14

DSP56011 User’s Manual

MOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Freescale Semiconductor, Inc.

Digital Audio Transmitter

DAX Programming Considerations

8.6.4DAX Operation During Stop

The DAX operation cannot continue when the DSP is in the Stop state since no DSP clocks are active. While the DSP is in the Stop state, the DAX will remain in the individual reset state and the status flags are initialized as described for resets. No DAX control bits are affected. It is recommended that the DAX be disabled, by clearing the XEN bit in the XCTR, before the DSP enters the Stop state.

Freescale Semiconductor, Inc.

MOTOROLA DSP56011 User’s Manual 8-15

For More Information On This Product,

Go to: www.freescale.com

Freescale Semiconductor, Inc.

Digital Audio Transmitter

DAX Programming Considerations

Freescale Semiconductor, Inc.

8-16

DSP56011 User’s Manual

MOTOROLA

For More Information On This Product,

Go to: www.freescale.com

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