1
Copyright
Cirrus Logic, Inc. 2000
(All Rights Reserved)
P.O. Box 17847, Austin, Texas 78760
(512) 445 7222 FAX: (512) 445 7581
http://www.cirrus.com
AN187
Application Note
USING THE EP72/7312 TO IMPLEMENT A SOFT MODEM
OCT ‘00
AN187REV1
AN187
2AN187REV1
TABLE OF CONTENTS
1. INTRODUCTION ....................................................................................................... 3
2. EP72/7312 DIGITAL AUDIO INTERFACE (DAI) ................................................ 3
3. SI3034 DAA CHIP SET .............................................................................................. 4
4. INTERFACING THE EP72/7312 TO THE SI3034 ................................................. 4
5. PLD EQUATIONS; SOFTMODEM VIA EP72/7312 DAI TO
THE SI3034 DAA CHIP SET ..................................................................................... 8
6. SILICON LABORATORIES CONTACT INFORMATION ............................... 10
LIST OF FIGURES
Figure 1. Example Timing Interface Generated by the DAI............................................... 3
Figure 1. Circuit Schematic................................................................................................. 6
Figure 2. CPLD Schematic ................................................................................................. 7
Figure 2. EP72/7312 to Si3035 Interface Signals............................................................. 10
LIST OF TABLES
Table 1. DAA Interface Signals.......................................................................................... 4
Table 2. PLD Equations...................................................................................................... 8
Contacting Cirrus Logic Support
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at:
http://www.cirrus.com/corporate/contacts/sales.cfm
Prelimi nar y product inf o rmatio n descr i bes products whi ch are in p roduction, b ut for which f ul l character iza ti on data is not yet avai l able. Advance p r odu ct i nfor -
mation 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 ( ex pres s or i mplie d). No re spon sibility is as sume d by 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 publi-
cation 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 wri tten cons ent 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 (electroni c, mech ani cal , phot o -
graphic, or ot herwi se) wi t hou t the pri or writ ten consent of Ci rrus Logic, Inc.F urt h erm ore, no part of t hi s p ubl i c ati on may be used as a basis for manufactur e or
sale of any items wit hout the prior writt en consent of Cir rus Lo gi c, Inc. Sil i con Laborator i es i s a tr ade mar k of Silicon Laborat ori e s, Inc. AltoCom is a tr a demark
of AltoCom, Inc. Lattice Semiconductor is a trademark of Lattice Semiconductor Corporation. The names of products of Cirrus Logic, Inc. or other vendors and
supplier s appearing i n this documen t may be tra demarks or servi ce marks of thei r respect ive owners which may b e registere d in some j urisdiction s. A list of
Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
AN187
AN187REV1 3
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:
nLRCK Left/right frame sync; output only
nSCLK Bit clock; equals ½ MCLK; there are 128 bits-per-frame; output only
nMCLK 2x oversampled clock; input when in Slave mode
nSDOUT Digital audio data out; output
nSDIN Digital audio da ta in; inp ut
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 justified, with the MSB first. This i s slightly different than the I2S fo rmat, 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 con f igured 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 = 256fs, bit rate = 128fs
LRCK
SCLK
Left Channel Right Channel
SDATA +3 +2 +1 LSB+5 +4
MSB-1-2-3-4-5 +3 +2 +1 LSB+5 +4
MSB-1 -2 -3 -4
SDATA +3 +2 +1 LSB+5 +4
MSB-1-2-3-4-5 +3 +2 +1 LSB+5 +4
MSB-1 -2 -3 -4
SDATAI +3 +2 +1 LSB+5 +4MSB-1-2-3-4-5 +3 +2 +1 LSB+5 +4MSB-1 -2 -3 -4
O
128 clocks
AN187
4AN187REV1
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 S CLK 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 soft modem, we will need to use this Slave mode , and provide a 4.096 MHz clock source 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 telepho ne line interface req uirem ents. Progr ammable features include AC and DC termin ations, ringer
impedance and ringer threshold. Also supported is billing 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 com pliance 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
Si3034
or
Si3035 Data Sheet
for their oper-
ation and confi gurati on.
The Si3034/35 transfers d ata in a 1 6-bit halfwo rd format. D ata is trans ferred u sing the same MS B/Left J ustified format as th e
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 th e rising edge of nFSYNC. Thus n FSYNC 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
Si3034/35 Data Sheet
to program and implement the device properly
in your system design.
Signal Name Purpose Activity
nFSYNC Frame Sync Output in Master
mode, input in
Slave mode
SCLK Bit Clock Output when in
Master mode, no
co nnect in Slave
mode
MCLK Master
clock 1x SCLK, used as
input to create bit
clock
SD0 Data out
SDI Data in
Table 1. DAA Interface Signals
AN187
AN187REV1 5
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 o rder to achieve the co rrect
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 creat ed, h owever no w the creation of nF SYNC need s to be discussed. Th e nF SY NC si gnal requires n FSYNC
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 shap e the frame sync signal generated by th e DAI (i.e. LRCK), to meet the timing requ irements 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 th e DAA (i.e., Td 1 and Td2; 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. It 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 necessary to be able to route nSCLK in and out of the de vice 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.
6 AN187REV1
AN187
Figure 1. Circuit Schematic
7AN187REV1
AN187
I23
6
I20
3
I24
18
I22
11
I21
27
I3
I4
I5
I6 I7
I8 I9
I10
I11 I12 I13
I14 I15
I16
DQ
I17
DQ
I18
DQ
I19
DQ
I2
DQ
nSCLK_also
nSCLK SCLK_DLYD
LRCK_DLYD
nFSYNC
Figure 2. CPLD Schematic
AN187
8AN187REV1
5. PLD EQUATIONS; SOFTMODEM VIA EP72/7312 DAI TO THE SI3034
DAA CHIP SET
P-Terms Fan-in Fan-out Type Name
(attributes) Equations
1/1 1 1 pin SCLK_DLYD SCLK_DLYD = (N_22)
Reverse Polarity — !SCLK_DLYD = (!N_22)
1/1 1 1 pin nFSYNC nFSYNC = (N_20)
Reverse Polarity — !nFSYNC = (!N_20)
1/1 1 1 node N_21 N_21 = (nSCLK)
Reverse Polarity — !N_21 = (!nSCLK)
1/1 1 1 node N_22 N_22 = (nSCLK_also)
Reverse Polarity — !N_22 = (!nSCLK_also)
1/1 1 1 node N_19 N_19 = (LRCK_DLYD)
Reverse Polarity — !N_19 = (!LRCK_DLYD)
2/1 1 1 node N_20 N_20 = (N_17 # !N_19)
Reverse Polarity — !N_20 = (!N_17 & N_19)
2/2 2 1 node N_1 N_1 = (N_15 & !N_13 # !N_15 & N_13)
Reverse Polarity — !N_1 = (!N _15 & !N_13 #
N_15 & N_13)
1/2 2 1 node N_2 N_2 = (N_15 & N_13)
Reverse Polarity — !N_2 = (!N_15 # !N_13)
1/2 2 1 node N_3 N_3 = (N_19 & N_1)
Reverse Polarity — !N_3 = (!N_19 # !N_1)
2/2 2 1 node N_4 N_4 = (N_2 & !N_16 # !N_2 & N_16)
Reverse Polarity — !N_4 = (!N_2 & !N_16
# N_2 & N_16)
1/2 2 1 node N_5 N_5 = (N_19 & N_4)
Reverse Polarity — !N_5 = (!N_19 # !N_4)
2/1 2 1 node N_6 N_6 = (N_7 # N_17)
Reverse Polarity — !N_6 = (!N_7 & !N_17)
1/4 4 1 node N_7 N_7 = (N_16 & N_15 & N_13 & N_12)
Reverse Polarity — !N_7 = (!N_13 # !N_15
# !N_16 # !N_12)
1/2 2 1 node N_8 N_8 = (N_19 & N_6)
Reverse Polarity — !N_8 = (!N_19 # !N_6)
Ta ble 2. PLD Equa tions
AN187
AN187REV1 9
2/2 2 1 node N_9 N_9 = (N_11 & !N_12 # !N_11 & N_12)
Reverse Polarity — !N_9 = (!N_11 & !N_12 #
N_11 & N_12)
1/2 2 1 node N_10 N_10 = (N_19 & N_9)
Reverse Polarity — !N_10 = (!N_19
# !N_9)
1/3 3 1 node N_11 N_11 = (N_16 & N_15 & N_13)
Reverse Polarity — !N_11 = (!N_15 # !N_16 #
!N_13)
1/1 1 1 node N_12.D N_12.D = (N_10)
Reverse Polarity — !N_12.D = (!N_10)
1/1 1 1 node N_12.C N_12.C = (N_21)
Reverse Polarity — !N_12.C = (!N_21)
1/1 1 1 node N_13.D N_13.D = (N_14)
Reverse Polarity — !N_13.D = (!N_14)
1/1 1 1 node N_13.C N_13.C = (N_21)
Reverse Polarity — !N_13.C = (!N_21)
1/2 2 1 node N_14 N_14 = (!N_13 & N_19)
Reverse Polarity — !N_14 = (N_13 # !N_19)
1/1 1 1 node N_15.D N_15.D = (N_3)
Reverse Polarity — !N_15.D = (!N_3)
1/1 1 1 node N_15.C N_15.C = (N_21)
Reverse Polarity — !N_15.C = (!N_21)
1/1 1 1 node N_16.D N_16.D = (N_5)
Reverse Polarity — !N_16.D = (!N_5)
1/1 1 1 node N_16.C N_16.C = (N_21)
Reverse Polarity — !N_16.C = (!N_21)
1/1 1 1 node N_17.D N_17.D = (N_8)
Reverse Polarity — !N_17.D = (!N_8)
1/1 1 1 node N_17.C N_17.C = (N_21)
Reverse Polarity — !N_17.C = (!N_21)
33/42
Best P Term
Total: 31
Total Pins: 5
Total Nodes: 21
Average P-
Term/Output: 1
P-Terms Fan-in Fan-out Type Name
(attributes) Equations
Ta ble 2. PLD Equa tions (Continued)
AN187
10 AN187REV1
6. SILICON LABORATORIES CONTACT INFORMATION
Silicon Laboratories, Inc.
4635 Boston Lane
Austin, Texas 78735
Phone: 1-877-444-3032
Email: SiDAAinfo@silabs.com
Web site: www.silabs.com
LRCK
LRCK_DLYD
D15 D14 D1 D0
D15 D14 D1
nSCLK
nFSYNC
SDOUT
SDIN
SCLK
16 cycle
s
64 cycle
s
64 cycle
s
Figure 3. EP72/7312 to Si3035 Interface Signals
• Notes •