Preliminary product inf o rmation describes product s whi ch are in production, b ut for which full character iza t i on da t a i s not yet available. Advance p roduct information describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information
contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided “AS IS” without warranty of any
kind (express or imp lied ). N o r espo ns ibility is a ss ume d b y Cirru s Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third
parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, trademarks, or trade secrets. No part of this publication may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise)
without the prior written consent of Cirrus Log ic, In c. Items from any Cirrus Logic web si te or disk may be printe d for use by the user. However, no part of the
printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mech ani cal , photo graphic, or otherwise) without the pr i or wri t ten consent of Cirrus Logic, Inc.Furtherm ore, no part of this p ubl i cat i on may be used as a basis for manufacture or
sale of any items without the pri or written consent of Cir rus Lo gi c, Inc. Sil i con Laboratories is a trademark of Silicon Laboratories, Inc. AltoCom is a tra dema r k
of AltoCom, Inc. Lattice Semiconductor is a trademark of Lattice Semiconductor Corporation. The names of products of Cirrus Logic, Inc. or other vendors and
suppliers appearing in t his document may be tradema rks or service m arks of their r espective owner s which may b e registered i n some jurisdi ctions. A list of
Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
2AN187REV1
AN187
1. INTRODUCTION
As the world of PDAs and other hand-held devices evolves, more and more of these products desire the support of an analog
modem to communicate with the Internet. Today, the use of modems constitutes only a small market share. However, the desire
for modem support is growing dramatically. Due to this fact, this application note has been created.
This application note describes how the ARM720T™ processor, DRAM controller, and the Digital Audio Interface (DAI)
integrated into the Cirrus Logic EP72/7312 embedded processor can be used to implement a V.90 softmodem solution.
Used in conjunction with the EP72/7312 are the following components:
nV.90 softmodem and driver code
nSilicon Laboratories™ Si3034 DAA chip set
nA simple PLD, used to implement the interface logic between the DAI and the Si3035 chip set.
Schematics and a timing diagram are provided to explain the characteristics of this interface.
2. EP72/7312 DIGITAL AUDIO INTERFACE (DAI)
Within the EP212 is an integrated Digital Audio Interface (DAI). This interface was implemented to support high quality stereo
audio transmission and reception. However, it can be used to support other functions, like a softmodem. The interface consists
of five signals:
nLRCKLeft/right frame sync; output only
nSCLKBit clock; equals ½ MCLK; there are 128 bits-per-frame; output only
nMCLK2x oversampled clock; input when in Slave mode
nSDOUTDigital audio data out; output
nSDINDigital audio data in; input
An example of the timing interface generated by the DAI for a typical audio application is shown in Figure 1.
The data uses the MSB/Left Justified format. This means that the data is clocked in/out immediately after the frame sync
(LRCK) changes levels. The data is left ju stified, with the MSB first. This is sl ightly different than the I2S format, where th e
data is delayed by one clock after the frame sync changes levels. Each frame is 128 bits long. Thus each channel (i.e., left and
right) is 64 bits wide. The frame size and duty cycle of the signal LRCK cannot be configured in the EP72/7312. 'The frame
size in the EP7312 can be configured for either 128 or 64 bits per frame, but this is not relevent for this application.
Figure 1. Example Timing Interface Generated by the DAI
Figure 1 Parameters: MSB/Left Justified format
Mclock = 256
, bit rate = 128
fs
fs
AN187REV13
AN187
SCLK is derived from MCLK. It is ½ MCLK. In the default mode, the DAI is in the Master mode. In this mode it generates its
own MCLK clock. It is 9.216 MHz. Thus SCLK becomes 4.608 MHz. For applications that need SCLK to be different speed,
the DAI can be configured to be in the Slave mode. In this mode, MCLK is provided from an external source via the MCLK
pin. When in the Slave mode, the DAI will receive its master clock from the MCLK pin, and then divide it in half to create
SCLK. In this application of the softmodem, we will need to use this Slave mode, and provid e a 4.096 MHz clock sour ce into
the MCLK pin. SCLK and LRCK are always configured as outputs regardless of the DAI mode setting. The data is latched in
on the positive going edge of the SCLK, and is clocked out on the negative going edge.
3. SI3034 DAA CHIP SET
The Silicon Laboratories Si3034 is an integrated Direct Access Arrangement (DAA) that provides a programmable line
interface to meet global telephone line interface requirements. Programmable features inclu de AC and DC terminations, ringer
impedance and ringer threshold. Also supported is bil ling tone detection, polarity reversal, pulse dialing, and on-hook line
monitoring. Available in two 16-pin small outline packages, it eliminates the need for an analog front-end (AFE), an isolation
transformer, relays, opto-isolators, and a 2- to 4-wire hybrid circuit. This Si3034 chip set runs at either 3.3v or 5V, and
dramatically reduces the number of discrete external components required to achieve compliance with global regulatory
requir.ements. If only compliance to North American and Japanese standards are required, the Si3035 DAA may be used instead
of the Si3034 global DAA
The DAA communication interface consists of the signals described in Table 1.
NOTE: There are other signals on the DAA as well. Please refer to the
ation and configuration.
The Si3034/35 transfers data in a 16-bit h alfword format. D ata is transf erred using the sam e MSB/Left J ustified format as the
EP72/7312's DAI. It uses a 256-bit frame size. In this 256-bit frame are two 128-bit-long time slots: primary and secondary.
The two time slots are delineated by the rising edge of nFSYNC. Thus nFSYNC toggles twice per frame. The primary time slot
is used to transfer telephony data. The secondary time slot is used as a control channel between the Host and the DAA. It can
be used to change the default configuration settings of the chip set. Refer to the Si3034 or the Si3035 Data Sheet for more
information.
The data is latched on the negative going edge of SCLK, and is clocked out on the positive going edge. This is the opposite of
the DAI.
NOTE: Carefully follow the instructions in the
in your system design.
Signal NamePurposeActivity
nFSYNCFrame Sync Output in Master
SCLKBit ClockOutput when in
Si3034/35 Data Sheet
mode, input in
Slave mode
Master mode, no
connect in Slave
mode
Si3034
to program and implement the device properly
or
Si3035 Data Sheet
for their oper-
MCLKMaster
clock
SD0Data out
SDIData in
Table 1. DAA Interface Signals
4AN187REV1
1x SCLK, used as
input to create bit
clock
AN187
4. INTERFACING THE EP72/7312 TO THE SI3034
The EP7312 can generate a 4.096 MHz internal clock. But, in the EP7212, the DAI interface can only provide a fixed internal
clock source of 9.216 MHz when in Master mode. Because this is incompatible with the clock rate needed by the DAA, the DAI
has to be configured for Slave mode. An external clock source of 4.096 MHz is thus connected to the DAI MCLK pin, which
internally will be halved to create its SCLK. Since the DAI and DAA logic need to be synchronized, SCLK outputting from the
DAI can be used (after inverted) as the MCLK input into the DAA.
For the modem to support the V.90 protocol it needs to transfer each sample of data at a rate of 8 kHz. This means that each
frame must be transferred at this rate. Since the frame size of the DAA is 256 bits-per-frame, this equates to a bit rate of 2.048
MHz. Therefore, a clock source of 2.048 MHz should b e connected to the MC LK pin of the DAA. In order to achieve the correct
frame rate from a 2.048 MHz MCLK input, the DAA also needs to be configured in Slave mode.
With the DAA running in Slave mode, MCLK and nFSYNC have to be supplied to the DAA. It has already been stated above
how MCLK gets created, however no w th e creat ion of nF SYNC need s t o be d iscus s ed. Th e nF SY NC si gnal requires nFSYNC
to be low during the 16 bit data transfer, and high all other times. This does not comply with the I2S like interface. So a circuit
has been created to shape the frame sync signal generated by the DAI (i.e. LRCK), to meet the timing requirements of the frame
sync signal input required by the DAA (i.e. nFSYNC). This circuit counts 16 bit cycles after LRCK goes high, and forces the
created nFSYNC signal high after these 16 cycles. It keeps nFSYNC high, until LRCK goes high again. This circuit has been
implemented using a low cost small CPLD. The Lattice ispMACH 4A CPLD (exact part number: M4A3-32/32-10VC) device
is used. To meet the setup time spec of the internal D-FFs, LRCK must be delayed. This is accomplished by using two spare
74LVX14 inverters in series with LRCK prior to it entering the CPLD.
In high volume (500k), the device is between 50 cents and $1.00.
To allow for the lowest speed ispMACH device (i.e., 10ns), SCLK created for the DAA is delayed through the CPLD. This
allows the critical spec for the DAA (i.e., Td1 and Td 2; Delay Time, SCLK high to nFSYNC high, and SCLK high to nFSYNC
low, respectively) to be met easily. The resulting signal is called SCLK_DLYD. I t should be connected to the DAA’s MCLK pin.
A schematic breakdown of the entire circuit is provided in Figure 1, “Circuit Schematic,” on page 6. The schematics for the
CPLD only is shown in Figure 2, “CPLD Schematic,” on page 7.
NOTE: It is required to connect nSCLK to two separate input pins on the CPLD: 1). The input clock, and 2). A gen-
eral purpose input. This was nece ssary to be a ble to route nSCL K in and out of the device to create the
signal SCLK_DLYD.
The CPLD equations compiled from the schematics are provided in , and the timing diagram is provided in Figure 3,
“EP72/7312 to Si3035 Interface Signals,” on page 10. The user should read carefully through the ispMACH Data Sheet to
program and implement the device properly in the system design.
AN187REV15
6AN187REV1
Figure 1. Circuit Schematic
AN187
7AN187REV1
nSCLK
LRCK_DLYD
I4
DQ
I17
11
I22
I6
nSCLK
27
I11
_also
I21
DQ
I18
18
I24
I12
I7
6
I13
SCLK_DLYD
I23
I3
DQ
I19
I5
I10
DQ
I16
I8
Figure 2. CPLD Schematic
I9
I14
DQ
I2
3
I15
nFSYNC
I20
AN187
5. PLD EQUATIONS; SOFTMODEM VIA EP72/7312 DAI TO THE SI3034
DAA CHIP SET