Symphony DSP56724/DSP56725 Multi-Core Audio Processors, Rev. 0
9-50
Freescale Semiconductor
Enhanced Serial Audio Interface (ESAI, ESAI_1, ESAI_2, ESAI_3)
9.5
ESAI Initialization Examples
9.5.1
Initializing the ESAI Using Individual Reset
•
The ESAI should be in its individual reset state (PCRC = $000 and PRRC = $000). In the individual
reset state, both the transmitter and receiver sections of the ESAI are simultaneously reset. The
TPR bit in the TCR register may be used to reset the transmitter section only. The RPR bit in the
RCR register may be used to reset the receiver section only.
•
Configure the control registers (TCCR, TCR, RCCR, RCR) according to the operating mode, but
do not enable transmitters (TE5–TE0 = $0) or receivers (RE3–RE0 = $0). It is possible to set the
interrupt enable bits which are in use during the operation (no interrupt occurs).
•
Enable the ESAI by setting the PCRC register and PRRC register bits according to pins which are
in use during operation.
•
Write the first data to be transmitted to the transmitters which are in use during operation.
This step is needed even if DMA is used to service the transmitters.
•
Enable the transmitters and receivers.
•
From now on ESAI can be serviced either by polling, interrupts, or DMA.
Operation proceeds as follows:
•
For internally generated clock and frame sync, these signals are active immediately after ESAI is
enabled (step 3 above).
•
Data is received only when one of the receive enable (REx) bits is set and after the occurrence of
frame sync signal (either internally or externally generated).
•
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.
9.5.2
Initializing Only the ESAI Transmitter Section
•
It is assumed that the ESAI is operational; that is, at least one pin is defined as an ESAI pin.
11
10
9
8
7
6
5
4
3
2
1
0
X:$FFFFBD PD11 PD10
PD9
PD8
PD7
PD6
PD5
PD4
PD3
PD2
PD1
PD0
23
22
21
20
19
18
17
16
15
14
13
12
Reserved bit—read as zero; should be written with zero for future compatibility.
Figure 9-21. PDRC Register
Содержание Symphony DSP56724
Страница 22: ...Symphony DSP56724 DSP56725 Multi Core Audio Processors Rev 0 1 10 Freescale Semiconductor Introduction ...
Страница 52: ...Symphony DSP56724 DSP56725 Multi Core Audio Processors Rev 0 2 30 Freescale Semiconductor Signal Descriptions ...
Страница 112: ...Symphony DSP56724 DSP56725 Multi Core Audio Processors Rev 0 7 12 Freescale Semiconductor Clock Generation Module CGM ...
Страница 244: ...Symphony DSP56724 DSP56725 Multi Core Audio Processors Rev 0 14 6 Freescale Semiconductor Shared Bus Arbiter ...
Страница 246: ...Symphony DSP56724 DSP56725 Multi Core Audio Processors Rev 0 15 2 Freescale Semiconductor Shared Memory Shared Memory ...