• Silent Compression algorithm to further compress si
lence between speech.
• Flash Memory Management alogorithm to manage
down-graded Flash Memory to store compressed
speech data. With silent compression, one 4Mbit flash
memory could store up to 18 minutes speech.
• Support 4/8/16/32 Mbit Samsung Flash Memory or its
compatible parts
• Support both parallel and serial microprocessor inter
face.
• Codec Interface circuit (support both TP3054 and
MX93000)
• Host controllable LCD Module Interface
• Host writable message header (4 bytes) for identifica
-tion or index purpose
• Powerful Editing Function
• Varieties of operating function including Rewind, Fast
Forward, Repeat and message editing etc.
• Voice activated recording
• Use Flash memory to store user data (data bank)
• Upload/Download speech message data from/to
HOST
• VOCODER mode (VOice COmpressor/
DEcompressoR)
• Direct CODEC Play Mode (Play PCM/u-Law data re
ceived from HOST)
• Play Voice Prompt from ROM/FLASH memory
• DTMF tone genarator
2.GENERAL DESCRIPTION
This document describes how to implement an all-digital voice recorder using the MX93521 chip. The MX93521 is a
Digital Recorder Data Pump which is controlled by an external microprocessor to perform various recorder function.
The MX93521 is fully controlled by a HOST controller through a simple HOST interface protocol. The HOST could
initiate many digital recording functions such as record, play, repeat, search, skip, insertion, message managing
and self-diagnosis. Also, HOST could set MX93521 in VOCODER mode and use MX93521 as a speech compression/decompression data pump. The functions supported by MX93521 are listed as followed.
MODEFUNCTION PATH
RECORDCODEC-->(COMPRESS)-->FLASH
PLAYCODEC-->(DECOMPRESS)<--FLASH
RECORD (VOCODER)CODEC-->(COMPRESS)-->HOST
PLA Y (V OCODER)CODEC-->(DECOMPRESS)<--HOST
DIRECT CODEC PLA Y MODECODEC-->(PCM/u-Law)<--HOST
DOWNLOAD MESSAGEFLASH(MSG)-->HOST
UPLOAD MESSAGEFLASH(MSG)<--HOST
DATABANK ACCESSFLASH(DATA)<-- -->HOST
P/N:PM0426REV. 2.2, JAN 20, 1998
1
3.PIN CONFIGURATIONS
3.1 Pinout Assignments for MX93521 100-Pin PQFP (Parallel Mode)
VDSP23,43,69,84,41,39 20,40,66,81,38,365V power source
GN D24,44,53,70,8521,41,67,82Ground
FLL\I5451FLL\ low to set MX93521 running from single
low crystal
XTLI8 88 532.256Mhz Crystal input
XTLO898 632.256Mhz Crystal output
RST\I969 3Po wer on Reset, Schmite triggered
PACKB\OA1 41 1In serial mode, PACKB\ is N.C.
In parallel mode, PACKB\ becomes low when
MX93521 write data to BIO and high when
HOST read from BIO.
HOLD\I6764Hold DSP clock down and release bus
HOLDA\OA6663Ack to HOLD\ signal
EROMI9794Disable internal ROM, use external ROM only
SCLKI4037T ransmit/receive data clock
X32OOA131032.768Khz Crystal output
X32I12932.768Khz Crystal input
EAD0-EAD15OB61~55,52~45,4258~52,50,48~42,39Address Bus
ED0~ED15I/OB68,71~83,86~8765,68~80,83~84Data Bus
EDCE\OB6 562External data chip enable
EPCE\OB6 461Resered for future use
ERD\OB6 360Flash external read
EWR\OB6 259Flash external write
NC90~9387~90No connection
4.3 uP INTERF ACE(10 pins)
4.3.1 Serial Interface:(UPMODX=1)
SYMBOLTYPEPIN # (PQFP)PIN # (LQFP)DESCRIPTION
DA \O C373 4Data Availab le (Output port OPT17)
SOUTO C3330Serial Data Out (Output port OPT16)
BIO(7..0)OB25~3222~29Drive LCD Display
WP\OC10 097Flash memory write protection
SD ATAOC9996Serial data transfer (for MX93000)
SDEN\O C9895Serial data enable (for MX93000)
SPK-EO C9592Speaker enable,Hi-active
MIC-E\OC9491Microphone enable
2,3
ceived command from HOST)
P/N:PM0426
REV. 2.2, JAN 20, 1998
7
MX93521
4.6 IPT:INPUT POR T(8 pins)
SYMBOLTYPEPIN # (PQFP)PIN # (LQFP)DESCRIPTION
MTYPE1I2 219Memory type select 1
MTYPE2I2 118Memory type select 2
SHOLD\I2 017Power down detect
MTYPE0I1 916Memory type select 0
R/BI1 81 5Flash memory Ready/Busy
CODECTYPEI1 714Codec select (TP3054B or MX93000)
SINI1 61 3Serial data input
S/P\I151 2Serial/paralled interface
NOTE:O A:2mA,OB:4mA,OC:16mA output current
P/N:PM0426
REV. 2.2, JAN 20, 1998
8
5. HOST CONTROLLER INTERFACE
5.1 HOST CONTROLLER INTERFACE
5.1.1 Configuration
MX93521
HOST
HOST
OUT1
OUT2
IN1
IN2
OUT3
IN3
OUT1
OUT2
IN1
OUT3
D0-7
IN2
40
16
37
33
96
1
SERIAL MODE
33
37
14
16
96
32-25
1
40
SCLK
SIN
DA\
SOUT
RST\
RxCmd
SCLK
PHWRB\
PHRDB\
PACKB\
SIN
RST\
PHDB0-7
RxCmd
MX93521
PHILO\
MX93521
S/P\
S/P\
15
VCC
39
VCC
15
Gnd
P/N:PM0426
PARALLEL MODE
REV. 2.2, JAN 20, 1998
9
MX93521
5.1.2 Timing Diagrams
HOST Write Timing (Parallel Mode)
PHDB0-7
ts
PHWRB\
SCLK
(INT1\)
RxCmd
HOST Write Timing (Parallel Mode)
tp
HOST should cycle PHWRB\ after writing data to PHDB0-7.
MX93521 will read data from PHDB0-7 on the falling edge of SCLK (rising edge of PHWRB\).
Rxcmd will be toggled if command byte has been processed by MX93521
th
tp
The PHWRB\ signal will cause MX93521 to latch data from bus PHDB0-7 to MX93521 internal register. The invertted
signal of PHWRB\ will trigger MX93521 INT1\ to read and process the received data byte from internal register. Due
to the interrupt contention, there might be an up to 50 us delay between the rising edge of PHWRB\ and INT1\
actually being served. To keep from command overrun, HOST should check if RxCmd toggled or w ait 50 usec before
sending next command byte to MX93521.
HOST Read Timing (Parallel Mode)
PHDB0-7
ts
PACKB\
ta
PHRDB\
HOST Read Timing (Parallel Mode)
When MX93521 write data to PHDB0-7, P ACKB\ will become lo w. HOST needs to poll the status of PACKB\ continuously. When HOST detect low state on PACKB\, HOST should read out data from PHDB0-7. After HOST read the
data from PHDB0-7, PACKB\ will be reset to high.
The maxima delay between MX93521 write data to PHDB0-7 and PACKB\ become low is 10 ns.
The maxima delay between rising edge of PHRDB\ and PACKB\ become high is also 10 ns.
P/N:PM0426
REV. 2.2, JAN 20, 1998
10
HOST Write Timing (Serial Mode)
HOST output data SIN
HOST output clock SCLK
MX93521
ts
tp
tp
tp
RxCmd
DSP Sampling from SIN
HOST send data 61H tp DSP
startd01d10d20d30d4
0
61H
d5
d61d70stop
1
HOST Write Timing (Serial Mode)
RxCmd become low when start bit is received from HOST and toggle state when MX93521 received each follo wing
data bit or stop bit from HOST . Thus, instead of waiting f or a fixed period of time (50us) to send a command bit, HOST
could send the following command bit as soon as RxCmd toggled from pre vious state. The dela y between the falling
edge of SCLK and the RxCmd togglling time is range from 1 us to 50 us
P/N:PM0426
REV. 2.2, JAN 20, 1998
11
HOST Read Timing (Serial Mode)
DSP inform HOST
Data Available
DA\
>50us, clock rate
HOST output clock
SCLK
5-40us, SOUT response time
DSP output data
SOUT
HOST Sampling from
SOUT
DSP send data 49H
startx
to HOST
d0
d1
1
d2
0
d3
0
1
49H
HOST Read Timing (Serial Mode)
d4
MX93521
d5
0
0
d61d70stop
SOUT response time is 5-40us from the falling edge of SCLK
It is recommended that HOST sample SOUT right before the falling edge of SCLK
uP Interface Timing:
MinMax
Data setup time (ts)10ns
Data hold time (th)2ns
Data process time (tp)1us50us
PACKB\ acknowledge time (ta)5ns
CODECTYPEI1 7(1: MX93000, 0:TP3054)
DSPDRO38
DSPDXO34
CFSO35
CMCLKO36
SDA T AO99High
SDEN\O98High
SPK_EO9 5Lo w
MIC_E\O94High
P/N:PM0426
13
REV. 2.2, JAN 20, 1998
MX93521
5.2.4 uP Serial Mode Interface
MX93521uPLCD
RxCmdOIN3(optional) MX93521 Rxd Command Indicator
S/P\IVccHigh, Serial Mode
SCLKIOUT1Serial Clock
DA \OIN1Data Available
SOUTOIN2Serial Data Output
SHOLD\IOUT3DSP HOLD
SINIOUT2Serial Data Input
RST\IOUT4DSP RESET
BIO2OE
BIO3ORS
BIO4OD4
BIO5OD5
BIO6OD6
BIO7OD7
5.2.5 uP Parallel Mode Interface
MX93521uPLCD
S/P\IGN DLo w , P ar allel Mode
SCLKIOUT1\
PHRDB\IOUT2Read
PHWRB\IOUT1Write
SHOLD\IOUT3DSP HOLD
RST\IOUT4DSP RESET
PHILO\IVccHigh, Byte Mode
SINIIN 1SIN should be connected to PACKB\ externally
PACKB\OIN1Acknowledge
RxCmdOIN2(optional) MX93521 Rxd Command Indicator
PHDB0I/OD0
PHDB1I/OD1
PHDB2I/OD2
PHDB3I/OD3
PHDB4I/OD4
PHDB5I/OD5
PHDB6I/OD6
PHDB7I/OD7
When SHOLD\ is low , MX93521 will go to pow er down mode.
When SHOLD\ change from low to high, DSP will power up and send A CK0 to HOST
P/N:PM0426
14
REV. 2.2, JAN 20, 1998
MX93521
6. HOST INTERFACE SOFTWARE COMMAND SET SUMMARY
6.1 HOST TO MX93521 COMMANDS
When MX9521 received a command from HOST, it will always respond the command with a ac knowledge . The
valid commands and corresponded ackno wledge are described as below.
D7D6D5D4D3D2D1D0
00001BBB008HPOINT T O SPECIFIC MESSA GE
00010BBB010HGET CURRENT MESSAGE INFOMATION
00011BBB018HDELETE MESSAGE(S)
00100BBB020HREC/PLAY MISC. FUNCTION
00101BBB028HRECORD MESSAGE
00110BBB030HPLAY MESSAGE
00111BBB038HSKIP FORW ARD/BA CKWARD PLAY
01000BBB040HMISC. FUNCTION
01001BBB048HTONE GENERATOR
01011BBB058HMX93000 CODEC MISC. FUNCTION
01100BBB060HLED DISPLAY
01101BBB068HWRITE COMPRESSED VOICE D A TA TO MX93521
01110BBB070HLCD COMMAND
01111BBB078HLCD D A T A
10000BBB080HOUTPUT COUNTER
10001BBB088HDownload/Upload Message
10010BBB090HSet Silence level
DR-V4
10011BBB098HSet ROM/RAM wait state
10100BBB0A0HRead/Write RAM
10101BBB0A8HRead ROM
DR-V4
DR-V5
1011xBBB0BxHData Bank Functions
1100xBBB0CxHData Bank Functions
11010BBB0D0HData Bank Functions
11111BBB0F8HPlay Voice Prompt
DR-V4
BBB:BYTES SEND FOLLOWING THIS COMMAND
DR-V5
DR-V5
DR-V4
DR-V4
DR-V4
MX93521 T O HOST ACKNO WLEDGES (OK Messages)
ACK0: 0A0H, NO D A TA ACCOMPNIED THIS A CKNOWLEDGE
ACK1: 0A1H, 1 DATA ACCOMPNIED THIS ACKNO WLEDGE
ACK2: 0A2H, 2 DATA ACCOMPNIED THIS ACKNO WLEDGE
ACK6: 0A6H, 6 DATA ACCOMPNIED THIS ACKNO WLEDGE
MX93521 TO HOST A CKNOWLEDGES (ERR OR Messgaes)
ERR0(0E0H):Command ERROR
ERR1(0E1H):Out of memory , MX93521 cannot perform RECORD function
ERR2(0E2H):No message found, MX93521 cannot perform PLA Y function
ERR3(0E3H):No Flash Memory Detected when power on
ERR4(0E4H):MX93521 Busy
ERR5(0E5H):Vocoder Mode , Play b uff er full, data rejected
ERR6(0E6H):No previous or next message found
ERR7(0E7H):MX93000 Command Busy
ERR8(0E8H):No empty block could be allocated for data bank usage
FUNCTION:Move Message Pointer
RETURN:ACK0
RETURN:ERR6, IF REACH THE FIRST OR THE LAST MESSA GE IN THE MEMOR Y
DB7DB6DB5DB4DB3DB2DB1DB0
00001001
DMMMMMMM
IF CURRENT MESSAGE NUMBER IS N,
D=0, JUMP FORW ARDD=1, JUMP BACKW ARD
M=001H, POINT T O THE MESSA GE (N+1)M=001H, POINT T O THE MESSA GE (N-1)
M=002H, POINT T O THE MESSA GE (N+2)M=002H, POINT T O THE MESSA GE (N-2)
M=07FH, POINT T O THE LAST MESSA GEM=07FH, POINT TO THE FIRST MESSA GE
COMMAND 0AH
DR-V5
FUNCTION:P oint to specefic message
RETURN:ACK0
RETURN:ERR2, If no such message found in the FLASH memory
DB7DB6DB5DB4DB3DB2DB1DB0
00001010
MMMMMMMMMessage Number (High Byte)
MMMMMMMMMessage Number (Low Byte)
*The message pointer is point to the last message in the flash memory upon power on.
SAMPLES:
Forward to the next message09 H0 1H
Rewind to the previous message09 H81 H
Forward to the last message0 9 H7F H
Rewind to the the first message09 HF F H
Move Message P ointer to message #258 (102H)0AH01 H02 H
P/N:PM0426
REV. 2.2, JAN 20, 1998
17
MX93521
COMMAND 10H
FUNCTION:GET CURRENT MESSA GE INFOMA TION
RETURN:ACK6, DA TA1, DATA2, DAT A3, D AT A4, D A TA5, D A TA6 or ACK0
DB7DB6DB5DB4DB3DB2DB1DB0
0001000 0
D ATA1: HIGH BYTE OF CURRENT MESSAGE NUMBER
D ATA2: LOW BYTE OF CURRENT MESSAGE NUMBER
DATA 3: USER DA TA #1
DATA 4: USER DA TA #2
DATA 5: USER DA TA #3
DATA 6: USER DA TA #4
*RETURN ACK0 WHEN NO MESSAGE IN THE MEMOR Y
SAMPLES:
GET CURRENT MESSAGE INFOMATION10 H
COMMAND 11H
COMMAND 12H
COMMAND 13H
COMMAND 14H
FUNCTION:ATT ACH USER DA T A TO CURRENT MESSAGE
RETURN:ACK0 or ERR0
DB7DB6DB5DB4DB3DB2DB1DB0
00010BB B
USER DAT A #1
USER DAT A #2
USER DAT A #3
USER DAT A #4
* The USER D ATA is default to 0FFH
* Any data writen with this command will be AND with previous data
* When USER D ATA #1 is 055H. If write data 0AAH to it again, USER D ATA #1 will become 0H
* If no message in the FLASH memory , MX93521 will return ERR0
SAMPLES:
A TTACH D A TA 12H TO CURRENT MESSA GE11 H12H
A TTACH D A TA 12H/34H TO CURRENT MESSA GE12 H12H34H
A TTACH D A TA 12H/34H/56H T O CURRENT MESSAGE1 3H12H34H56 H
A TTACH D A TA 12H/34H/56H/78H TO CURRENT MESSA GE14 H12H34H56H78H
P/N:PM0426
REV. 2.2, JAN 20, 1998
18
Loading...
+ 39 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.