ESAI Initialization Examples
DSP56364 24-Bit Digital Signal Processor Users Manual, Rev. 2
Freescale Semiconductor 6-51
6.6.2 Initializing Just the ESAI Transmitter Section
• It is assumed that the ESAI is operational; that is, at least one pin is defined as an ESAI pin.
• The transmitter section should be in its personal reset state (TPR = 1).
• Configure the control registers TCCR and TCR according to the operating mode, making sure to
clear the transmitter enable bits (TE0 - TE5). TPR must remain set.
• Take the transmitter section out of the personal reset state by clearing TPR.
• Write first data to the transmitters which will be used during operation. This step is needed even if
DMA is used to service the transmitters.
• Enable the transmitters by setting their TE bits.
• Data is transmitted only when the transmitter enable (TEx) bit is set and after the occurrence of
frame sync signal (either internally or externally generated). The transmitter outputs remain
tri-stated after TEx bit is set until the frame sync occurs.
• From now on the transmitters are operating and can be serviced either by polling, interrupts, or
DMA.
6.6.3 Initializing Just the ESAI Receiver Section
• It is assumed that the ESAI is operational; that is, at least one pin is defined as an ESAI pin.
• The receiver section should be in its personal reset state (RPR = 1).
• Configure the control registers RCCR and RCR according to the operating mode, making sure to
clear the receiver enable bits (RE0 - RE3). RPR must remain set.
• Take the receiver section out of the personal reset state by clearing RPR.
• Enable the receivers by setting their RE bits.
• From now on the receivers are operating and can be serviced either by polling, interrupts, or DMA.