English
Language : 

EP7212 Datasheet, PDF (39/136 Pages) Cirrus Logic – HIGH-PERFORMANCE, LOW-POWER SYSTEM-ON-CHIP WITH LCD CONTROLLER AND DIGITAL AUDIO INTERFACE(DAI)
EP7212
3.13.1 Codec Sound Interface
The codec interface allows direct connection of a
telephony type codec to the EP7212. It provides all
the necessary clocks and timing pulses. It also per-
forms a parallel to serial conversion or vice versa
on the data stream to or from the external codec de-
vice. The interface is full duplex and contains two
separate data FIFOs (16 deep by 8-bits wide, one
for the receive data, another for the transmit data).
Data is transferred to or from the codec at
64 kbits/s. The data is either written to or read from
the appropriate 16-byte FIFO. If enabled, a codec
interrupt (CSINT) will be generated after every
8 bytes are transferred (FIFO half full/empty). This
means the interrupt rate will be every 1 msec, with
a latency of 1 msec.
Transmit and receive modes are enabled by assert-
ing high both the CDENRX and CDENTX codec
enable bits in the SYSCON1 register.
NOTE:
Both the CDENRX and CDENTX enable bits
should be asserted in tandem for data to be
transmitted or received. The reason for this
is that the interrupt generation will occur
1 msec after one of the FIFOs is enabled.
For example: If the receive FIFO gets
enabled first and the transmit FIFO at a later
time, the interrupt will occur 1 msec after the
receive FIFO is enabled. After the first inter-
rupt occurs, the receive FIFO will be half full.
However, it will not be possible to know how
full the transmit FIFO will be since it was
enabled at a later time. Thus, it is possible to
unintentionally overwrite data already in the
transmit FIFO (See Figure 6).
After the CDENRX and CDENTX enable bits get
asserted, the corresponding FIFOs become en-
abled. When both FIFOs are disabled, the FIFO sta-
Type
SPI / Microwire 1
SPI / Microwire 2
DAI Interface
Codec Interface
Comments
Master mode only
Master / slave mode
CD quality DACs and ADCs
Only for use in the PLL clock mode
Referred To As
ADC Interface
SSI2 Interface
DAI Interface
Codec Interface
Table 21. Serial Interface Options
Max. Transfer Speed
128 kbits/s
512 kbits/s
1.536 Mbits/s
64 kbits/s
Pin
No.
LQFP
63
65
66
67
68
External
Pin Name
SSICLK
SSITXFR
SSITXDA
SSIRXDA
SSIRXFR
SSI2
Slave Mode
(Internal Name)
SSICLK = serial bit
clock; Input
SSKTXFR = TX
frame sync; Input
SSITXDA = TX
data; Output
SSIRXDA = RX
data; Input
SSIRXFR = RX
frame sync; Input
SSI2
Master Mode
Output
Output
Output
Input
Output
Codec
Internal Name
PCMCLK =
Output
PCMSYNC = Output
PCMOUT = Output
PCMIN = Input
p/u
(use a 10k pull-up)
DAI
Internal Name
SCLK =
Output
LRCK = Output
SDOUT = Output
SDIN = Input
MCLK
Strength
1
1
1
1
Table 22. Serial-Pin Assignments
DS474PP1
39