0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MX93521

MX93521

  • 厂商:

    MCNIX(旺宏电子)

  • 封装:

  • 描述:

    MX93521 - ALL DIGITAL VOICE RECORDER MACHINE BASED ON THE MX93521 VOCODER CHIP - Macronix Internatio...

  • 数据手册
  • 价格&库存
MX93521 数据手册
MX93521 ALL DIGITAL VOICE RECORDER MACHINE BASED ON THE MX93521 VOCODER CHIP 1. FEATURES • Excellent sound quality by adopting 4800bps CELP speech compression alogorithm. • 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. MODE RECORD PLAY RECORD (VOCODER) PLAY (VOCODER) DIRECT CODEC PLAY MODE DOWNLOAD MESSAGE UPLOAD MESSAGE DATABANK ACCESS FUNCTION PATH CODEC-->(COMPRESS)-->FLASH CODEC-->(DECOMPRESS)(COMPRESS)-->HOST CODEC-->(DECOMPRESS)(PCM/u-Law)HOST FLASH(MSG)50us, clock rate DSP output data SOUT HOST Sampling from SOUT DSP send data 49H to HOST x start d0 1 d1 0 d2 0 d3 1 49H d4 0 d5 0 d6 1 d7 0 stop HOST Read Timing (Serial Mode) 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: Data setup time (ts) Data hold time (th) Data process time (tp) PACKB\ acknowledge time (ta) Min 10ns 2ns 1us Max 50us 5ns P/N:PM0426 REV. 2.2, JAN 20, 1998 12 MX93521 5.2 MX93521 IO INTERFACE 5.2.1 Output Port LED1\ LED2\ UO0* UO1* UO2* O O O O O PIN 5 4 3 2 1 LED1 CONTROL LED2 CONTROL User Programmable Output Port User Programmable Output Port User Programmable Output Port Power down state High High High High High * User Programmable Output Port are only available in DR-V3 and DR-V4 version 5.2.2 Flash Memory Interface MX93521 MTYPE1 MTYPE2 MTYPE0 CLE ALE ERD\ CE2\ CE1\ EWR\ R\B WP\ ED0 ED1 ED2 ED3 ED4 ED5 ED6 ED7 I I I O O O O O O I O IO IO IO IO IO IO IO IO PIN 22 21 19 11 10 63 8 7 62 18 100 68 71 72 73 74 75 76 77 Flash GND GND Vcc CLE ALE RD\ CE2\ CE1\ WR\ R/B\ WP\ IO0 IO1 IO2 IO3 IO4 IO5 IO6 IO7 Power down state 0: SAMSUNG 0: SAMSUNG (1:KM29N16000, 0:KM29N040) Low Low High High Low 5.2.3 CODEC Interface MX93521 CODECTYPE DSPDR DSPDX CFS CMCLK SDATA SDEN\ SPK_E MIC_E\ P/N:PM0426 I O O O O O O O O PIN 17 38 34 35 36 99 98 95 94 Power down state (1: MX93000, 0:TP3054) High High Low High REV. 2.2, JAN 20, 1998 13 MX93521 5.2.4 uP Serial Mode Interface MX93521 RxCmd S/P\ SCLK DA\ SOUT SHOLD\ SIN RST\ BIO2 BIO3 BIO4 BIO5 BIO6 BIO7 O I I O O I I I O O O O O O uP IN3 Vcc OUT1 IN1 IN2 OUT3 OUT2 OUT4 LCD (optional) MX93521 Rxd Command Indicator High, Serial Mode Serial Clock Data Available Serial Data Output DSP HOLD Serial Data Input DSP RESET E RS D4 D5 D6 D7 5.2.5 uP Parallel Mode Interface MX93521 S/P\ SCLK PHRDB\ PHWRB\ SHOLD\ RST\ PHILO\ SIN PACKB\ RxCmd PHDB0 PHDB1 PHDB2 PHDB3 PHDB4 PHDB5 PHDB6 PHDB7 uP GND OUT1\ OUT2 OUT1 OUT3 OUT4 Vcc IN1 IN1 IN2 D0 D1 D2 D3 D4 D5 D6 D7 LCD Low, Parallel Mode Read Write DSP HOLD DSP RESET High, Byte Mode SIN should be connected to PACKB\ externally Acknowledge (optional) MX93521 Rxd Command Indicator I I I I I I I I O O I/O I/O I/O I/O I/O I/O I/O I/O When SHOLD\ is low, MX93521 will go to power down mode. When SHOLD\ change from low to high, DSP will power up and send ACK0 to HOST P/N:PM0426 REV. 2.2, JAN 20, 1998 14 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 acknowledge. The valid commands and corresponded acknowledge are described as below. D7 D6 D5 D4 D3 D2 D1 D0 0 0 0 0 1 B B B 008H 0 0 0 1 0 B B B 010H 0 0 0 1 1 B B B 018H 0 0 1 0 0 B B B 020H 0 0 1 0 1 B B B 028H 0 0 1 1 0 B B B 030H 0 0 1 1 1 B B B 038H 0 1 0 0 0 B B B 040H 0 1 0 0 1 B B B 048H 0 1 0 1 1 B B B 058H 0 1 1 0 0 B B B 060H 0 1 1 0 1 B B B 068H 0 1 1 1 0 B B B 070H 0 1 1 1 1 B B B 078H 1 0 0 0 0 B B B 080H 1 0 0 0 1 B B B 088H 1 0 0 1 0 B B B 090H 1 0 0 1 1 B B B 098H 1 0 1 0 0 B B B 0A0H 1 0 1 0 1 B B B 0A8H 1 0 1 1 x B B B 0BxH 1 1 0 0 x B B B 0CxH 1 1 0 1 0 B B B 0D0H 1 1 1 1 1 B B B 0F8H BBB:BYTES SEND FOLLOWING THIS COMMAND POINT TO SPECIFIC MESSAGE GET CURRENT MESSAGE INFOMATION DELETE MESSAGE(S) REC/PLAY MISC. FUNCTION RECORD MESSAGE PLAY MESSAGE SKIP FORWARD/BACKWARD PLAY MISC. FUNCTION TONE GENERATOR MX93000 CODEC MISC. FUNCTION LED DISPLAY WRITE COMPRESSED VOICE DATA TO MX93521 LCD COMMAND LCD DATA OUTPUT COUNTER Download/Upload Message DR-V5 Set Silence level DR-V4 Set ROM/RAM wait state DR-V5 Read/Write RAM DR-V4 Read ROM DR-V5 Data Bank Functions DR-V4 Data Bank Functions DR-V4 Data Bank Functions DR-V4 Play Voice Prompt DR-V4 MX93521 TO HOST ACKNOWLEDGES (OK Messages) ACK0: 0A0H, NO DATA ACCOMPNIED THIS ACKNOWLEDGE ACK1: 0A1H, 1 DATA ACCOMPNIED THIS ACKNOWLEDGE ACK2: 0A2H, 2 DATA ACCOMPNIED THIS ACKNOWLEDGE ACK6: 0A6H, 6 DATA ACCOMPNIED THIS ACKNOWLEDGE MX93521 TO HOST ACKNOWLEDGES (ERROR Messgaes) ERR0(0E0H): Command ERROR ERR1(0E1H): Out of memory, MX93521 cannot perform RECORD function ERR2(0E2H): No message found, MX93521 cannot perform PLAY function ERR3(0E3H): No Flash Memory Detected when power on ERR4(0E4H): MX93521 Busy ERR5(0E5H): Vocoder Mode, Play buffer 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 DR-V4 P/N:PM0426 REV. 2.2, JAN 20, 1998 15 MX93521 6.2 MX93521 Power On Initialization Flow Chart START Clear MX93521 internal RAM read systemsetup serial or parallel? TP3054 or MX93000? 4M or 16M Flash memory init LCD NO Flash memory ID correct? Is data link in Flash memory correct? YES NO YES Is check data link 2nd time? NO Format Flash memory & create data link Flash memory error send CMD E3H Flash memory OK send CMD A1H+xxH MX93521 Normal operation 0A1H+000H 0A1H+001H 0A1H+002H 0A1H+003H 0A1H+004H 0A1H+005H 0A1H+006H 0A1H+007H ERR3(0E3H) DETECT SAMSUNG KM29N040 FLASH MEMORY DETECT SAMSUNG KM29N16000 FLASH MEMORY RESERVED RESERVED RESERVED RESERVED RESERVED RESERVED NO MEMORY DETECTED P/N:PM0426 REV. 2.2, JAN 20, 1998 16 MX93521 6.3 HOST TO MX93521 COMMAND DESCRIPTIONS COMMAND 09H FUNCTION: RETURN: RETURN: DB7 0 D DB6 0 M Move Message Pointer ACK0 ERR6, IF REACH THE FIRST OR THE LAST MESSAGE IN THE MEMORY DB5 0 M DB4 0 M DB3 1 M DB2 0 M DB1 0 M DB0 1 M IF CURRENT MESSAGE NUMBER IS N, D=0, JUMP FORWARD M=001H, POINT TO THE MESSAGE (N+1) M=002H, POINT TO THE MESSAGE (N+2) M=07FH, POINT TO THE LAST MESSAGE D=1, JUMP BACKWARD M=001H, POINT TO THE MESSAGE (N-1) M=002H, POINT TO THE MESSAGE (N-2) M=07FH, POINT TO THE FIRST MESSAGE COMMAND 0AH DR-V5 FUNCTION: RETURN: RETURN: DB7 0 M M DB6 0 M M Point to specefic message ACK0 ERR2, If no such message found in the FLASH memory DB5 0 M M DB4 0 M M DB3 1 M M DB2 0 M M DB1 1 M M DB0 0 M M Message Number (High Byte) Message Number (Low Byte) *The message pointer is point to the last message in the flash memory upon power on. SAMPLES: Forward to the next message Rewind to the previous message Forward to the last message Rewind to the the first message Move Message Pointer to message #258 (102H) 09H 09H 09H 09H 0AH 01H 81H 7FH FFH 01H 02H P/N:PM0426 REV. 2.2, JAN 20, 1998 17 MX93521 COMMAND 10H FUNCTION: GET CURRENT MESSAGE INFOMATION RETURN: ACK6, DATA1, DATA2, DATA3, DATA4, DATA5, DATA6 or ACK0 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 0 1 0 0 0 0 DATA1: DATA2: DATA3: DATA4: DATA5: DATA6: HIGH BYTE OF CURRENT MESSAGE NUMBER LOW BYTE OF CURRENT MESSAGE NUMBER USER DATA #1 USER DATA #2 USER DATA #3 USER DATA #4 *RETURN ACK0 WHEN NO MESSAGE IN THE MEMORY SAMPLES: GET CURRENT MESSAGE INFOMATION 10H COMMAND 11H COMMAND 12H COMMAND 13H COMMAND 14H FUNCTION: RETURN: DB7 DB6 0 0 ATTACH USER DATA TO CURRENT MESSAGE ACK0 or ERR0 DB5 DB4 DB3 DB2 DB1 0 1 0 B B DB0 B USER DATA #1 USER DATA #2 USER DATA #3 USER DATA #4 * The USER DATA is default to 0FFH * Any data writen with this command will be AND with previous data * When USER DATA #1 is 055H. If write data 0AAH to it again, USER DATA #1 will become 0H * If no message in the FLASH memory, MX93521 will return ERR0 SAMPLES: ATTACH DATA 12H TO CURRENT MESSAGE ATTACH DATA 12H/34H TO CURRENT MESSAGE ATTACH DATA 12H/34H/56H TO CURRENT MESSAGE ATTACH DATA 12H/34H/56H/78H TO CURRENT MESSAGE 11H 12H 13H 14H 12H 12H 12H 12H 34H 34H 34H 56H 56H 78H P/N:PM0426 REV. 2.2, JAN 20, 1998 18 MX93521 COMMAND 19H FUNCTION: RETURN: DB7 DB6 0 0 D M DELETE MESSAGE(S) ACK0 after deletion completed DB5 DB4 DB3 0 1 1 M M M DB2 0 M DB1 0 M DB0 1 M IF CURRENT MESSAGE NUMBER IS N D=0, DELETE FORWARD M=001H, DELETE ONE MESSAGE AFTER MESSAGE #N (MSG #N WILL BE DELETED) M=002H, DELETE TWO MESSAGES AFTER MESSAGE #N (MSG #N, #N+1 WILL BE DELETED) M=07FH, DELETE ALL MESSAGES AFTER MESSAGE #N (MSG #N, #N+1,.., #LAST WILL BE DELETED) D=1, DELETE BACKWARD M=001H, DELETE ONE MESSAGE BEFORE MESSAGE #N (MSG #N WILL BE DELETED) M=002H, DELETE TWO MESSAGES BEFORE MESSAGE #N (MSG #N, #N-1 WILL BE DELETED) M=07FH, DELETE ALL MESSAGES BEFORE MESSAGE #N (MSG #N, #N-1,.., #1 WILL BE DELETED) SAMPLES: DELETE CURRENT MESSAGE DELETE CURRENT & NEXT MESSAGE DELETE CURRENT & PREVIOUS MESSAGE DELETE ALL MESSAGES AFTER & INCLUDE CURRENT MESSAGE DELETE ALL MESSAGES BEFORE & INCLUDE CURRENT MESSAGE COMMAND 21H FUNCTION: RETURN: DB7 DB6 0 0 M M REC/PLAY MISC FUNCTION DB5 1 M DB4 0 M DB3 0 M DB2 0 M DB1 0 M DB0 1 M 19H 19H 19H 19H 19H 01H 02H 82H 7FH FFH * THIS COMMAND ONLY VALID WHEN IN RECORD/PLAY MODE M 01H 01H 02H 04H 08H 10H 20H 40H 80H Function Stop Recording Stop Playing REC/PLAY PAUSE ON/OFF Turn on counter display on LCD Delete playing message Set REPEAT start point Set REPEAT end point Disable REPEAT mode Set Mark Acknowledge ACK2,CHKSUM_H,CHKSUM_L ACK0 ACK0 ACK0 ACK0 ACK0 ACK0 ACK0 ACK0 Mode REC PLAY REC/PLAY REC/PLAY PLAY PLAY PLAY PLAY REC/PLAY If HOST send command 21H/04H after REC or PLAY start, MX93521 will automatically display a 5-digit REC or PLAY counter MM:SS at current LCD cursor. MM is minute. SS is second. P/N:PM0426 REV. 2.2, JAN 20, 1998 19 MX93521 COMMAND 28H COMMAND 29H COMMAND 2AH COMMAND 2BH COMMAND 2CH FUNCTION : RECORD MSG BBB = 000, 001, 010, 011, 100 RETURN : ACK2, MSGNUM_H, MSGNUM_L RETURN : ACK1, FORMAT (VOCODER mode, FORMAT=81H when recording with new format) (VOCODER mode, FORMAT=80H when recording with old format) RETURN: ERR1, WHEN OUT OF FLASH MEMORY, CANNOT PERFORM RECORD DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 1 0 1 B B B USER DATA #1 USER DATA #2 USER DATA #3 USER DATA #4 * USER DATA will be stored in the flash memory * When RECORD, MX93521 will not switch MIC on automatically, HOST must turn on MIC before RECORD and turn off MIC after RECORD STOP SAMPLES: RECORD MESSAGE WITHOUT USER DATA RECORD MESSAGE WITH 1 USER DATA 12H RECORD MESSAGE WITH 2 USER DATA 12H, 34H RECORD MESSAGE WITH 3 USER DATA 12H, 34H, 56H RECORD MESSAGE WITH 4 USER DATA 12H, 34H, 56H, 78H 28H 29H 2AH 2BH 2CH 12H 12H 12H 12H 34H 34H 34H 56H 56H 78H COMMAND 30H COMMAND 31H FUNCTION: PLAY MESSAGE RETURN: ACK2, MSGNUM_H, MSGNUM_L, ACK0(Vocoder mode) RETURN: ERR2, No Message to play DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 1 1 0 0 0 1 M M M M M M M M LENGTH (sec / unit) M=000H, PLAY TILL THE END OF MESSAGE M=001H, PLAY CURRENT MESSAGE FOR 1 SEC M=080H, PLAY CURRENT MESSAGE FOR 128 SEC OR REACH THE END OF MESSAGE M=0FFH, PLAY CURRENT MESSAGE FOR 255 SEC OR REACH THE END OF MESSAGE * When PLAY, MX93521 will not switch SPKR on automatically, HOST must turn on SPKR before PLAY and turn off SPKR after PLAY STOP SAMPLES: PLAY MESSAGE TILL THE END OF MESSAGE PLAY MESSAGE TILL THE END OF MESSAGE PLAY FIRST 3 SEC OF CURRENT MESSAGE P/N:PM0426 30H 31H 31H 00H 03H REV. 2.2, JAN 20, 1998 20 MX93521 COMMAND 32H FUNCTION: Skip first M frames in the message with playback RETURN: ACK2,MSGNUM_H,MSGNUM_L DB7 DB6 DB5 DB4 DB3 DB2 DB1 0 0 0 1 1 0 1 H H H H H H H L L L L L L L SAMPLES: PLAY THIS MESSAGE WITH SKIP FIRST 200 ms * This setting will be clear after play end of this message. DB0 0 H L Frame number (Hi-byte) Frame number (Lo-byte) , 20ms/unit 32H 00H 0AH COMMAND 39H FUNCTION: JUMP TO MARK RETURN: ACK0 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0 0 0 1 1 1 0 0 1 D M M M M M M M D=0, FORWARD D=1, BACKWARD M=00H, Normal Playing M=01H, Forward/Rewind to the 1st found mark from current position M=02H, Forward/Rewind to the 2nd found mark from current position .. M=7FH, Forward/Backward to the 127th found mark from current position mark#1 mark#2 mark#3 mark#4 - Pos#A Pos#B If current playing position is at Pos#A, command 39H/01H will forward to mark#1 command 39H/02H will forward to mark#2 command 39H/03H will forward to mark#3 command 39H/04H will forward to mark#4 command 39H/05H will forward to the end of message command 39H/81H will rewind to the head of message command 39H/01H will forward to mark#3 command 39H/02H will forward to mark#4 command 39H/03H will forward to the end of message command 39H/81H will rewind to mark#2 command 39H/82H will rewind to mark#1 command 39H/83H will rewind to the head of message If current playing position is at Pos#B, * If two marks are set too close to each other(>=1 rxdata=(obit=1 decode_cmd( ) rxcent=0 rxcnt ++ rxcnt=0 rxdata=0 rbcnt=0 NO tbcnt-Received a complete Command from MX93521. Precess command which is stored in cmdin[0:7] CLK==1? YES NO SIN high SIN low set SCLK low NO YES obit==1? To send command to MX93521: Load command to cmdout[0:7] then set data2snd=1 After sending out all commands, dats2snd will be cleared to 0. clk=1 RETURN P/N:PM0426 REV. 2.2, JAN 20, 1998 48 MX93521 Appendix 3. Recommend commands sequence to implement a digital recorder (star* means function is optional) A3.1 Record Message (TP3054): Functions * Turn on SPKR * Beep * Turn off SPKR Turn on MIC * LED #1 flash * Append Recording * Overwrite Recording * Turn on Voice Activated Mode Start to Record * Clear LCD * Display [RECORD] on LCD * Move cursor to line #2, col #3 * Turn on message counter display on LCD HOST send 41H/04H 49H/0AH 41H/04H 41H/08H 61H/48H 41H/02H 41H/03H 41H/05H 28H 79H/01H 76H/52H/45H/43H/4FH/52H/44H 79H/C3H 21H/04H MX93521 Acknowledge ACK0 ACK0 ACK0 ACK0 ACK0 ACK0 ACK0 ACK0 ACK2,MSG#_H,MSG#_L ACK0 ACK0 ACK0 ACK0 A3.2 Stop Recording (TP3054): Functions Stop Recording Turn off MIC * LED #1 off * Turn on SPKR * Beep * Turn off SPKR HOST send 21H/01H 41H/08H 61H/00H 41H/04H 49H/0AH 41H/04H MX93521 Acknowledge ACK2,CHKSUM_H, CHKSUM_L ACK0 ACK0 ACK0 ACK0 ACK0 A3.3 Out of Memory, Received command 20H from MX93521 during Recording (TP3054): Functions HOST send MX93521 Acknowledge Turn off MIC 41H/08H ACK0 * LED #1 off 61H/00H ACK0 * Turn on SPKR 41H/04H ACK0 * Beep 49H/0AH ACK0 * Turn off SPKR 41H/04H ACK0 P/N:PM0426 REV. 2.2, JAN 20, 1998 49 MX93521 A3.4 Play Message (TP3054): Functions Move message pointer to specific message Turn on SPKR * Beep * LED #2 flash Start to Play * Send msg counter to HOST every 512 ms * Clear LCD * Display [PLAY] on LCD * Move cursor to line #2, col #3 * Turn on message counter display on LCD HOST send 09H/xxH 41H/04H 49H/0AH 61H/88H 30H 81H/04H 79H/01H 74H/50H/4CH/41H/59H 79H/C3H 21H/04H MX93521 Acknowledge ACK0/ERR6 ACK0 ACK0 ACK0 ACK2,MSG#_H,MSG#_L ACK0 ACK0 ACK0 ACK0 ACK0 A3.5 Function During Playing Message Functions * Fast Forward Playing (2x) * Rewind Playing (2x) * Set REPEAT start point * Set REPEAT end point * Disable REPEAT mode HOST send 3AH/01H/01H 3AH/81H/01H 21H/10H 21H/20H 21H/40H MX93521 Acknowledge ACK0 ACK0 ACK0 ACK0 ACK0 A3.6 Stop Playing Message (TP3054): Functions Stop Playing * LED #2 off * Beep Turn off SPKR HOST send 21H/01H 61H/00H 49H/0AH 41H/04H MX93521 Acknowledge ACK0 ACK0 ACK0 ACK0 A3.7 End of Message, Received command 10H from MX93521 during Playing (TP3054): Functions LED #2 off Beep Turn off SPKR HOST send 61H/00H 49H/0AH 41H/04H MX93521 Acknowledge ACK0 ACK0 ACK0 * * P/N:PM0426 REV. 2.2, JAN 20, 1998 50 MX93521 A3.8 Message Search Functions Turn on SPKR Move message pointer to the 1st msg Play current message for 3 second Move message pointer to the next message if received ACK0, goto Step #3 if received ERR6, goto Step #7 Turn off SPKR HOST send 41H/04H 09H/FFH 31H/03H 09H/01H MX93521 Acknowledge ACK0 ACK0/ERR6 ACK0 10H ACK0/ERR6 1 2 3 4 5 6 7 41H/04H ACK0 A3.9 Message Found Functions Stop playing Play current message Turn off SPKR HOST send 21H/01H 30H 41H/04H MX93521 Acknowledge ACK0 ACK0 ACK0 1 2 3 P/N:PM0426 REV. 2.2, JAN 20, 1998 51 MX93521 A3.10 The procedure for using flash memory as data bank memory HOST SEND 1 2 3 Request a empty block to be used as data block Set continuous read start address Continuous Read 20 bytes 0BCH, BLK_H, BLK_L, ADR_H, ADR_L 0B1H, 14H 0A0H 0A0H 037H,D1,D2,D3,D4,D5,D6,D7 037H,D1,D2,D3,D4,D5,D6,D7 036H,D1,D2,D3,D4,D5,D6 030H Continuous Read 298 bytes 0B2H, 01H,2AH 0A0H 037H,D1,D2,D3,D4,D5,D6,D7 037H,D1,D2,D3,D4,D5,D6,D7 ...... 034H,D1,D2,D3,D4 030H 4 Continuous Write 7 bytes Continuous Write 6 bytes Continuous Write 5 bytes Continuous Write 4 bytes Continuous Write 3 bytes Continuous Write 2 bytes Continuous Write 1 bytes 5 6 7 8 Erase Block Read 1 word from flash memory Write 1 byte to flash memory Write 2 bytes to flash memory 0C7H,D1,D2,D3,D4,D5,D6,D7 0C6H,D1,D2,D3,D4,D5,D6 0C5H,D1,D2,D3,D4,D5 0C4H,D1,D2,D3,D4 0C3H,D1,D2,D3 0C2H,D1,D2 0C1H,D1 CAH, BLK_H, BLK_L 0D4H, BLK_H, BLK_L, ADR_H, ADR_L 0A0H 0A0H 0A0H 0A0H 0A0H 0A0H 0A0H 0A0H 0A2H, DATA1, DATA2 0B8H MX93521 RESPONSE 0A2H, BLK_H, BLK_L 0D5H, BLK_H, BLK_L, ADR_H, ADR_L, D1 0A0H 0D6H, BLK_H, BLK_L, ADR_H, ADR_L, D1, 0A0H D2 Each block in flash memory is 4K byte. The first 16 bytes are reserved for MX93521 as data link data, HOST could read but could not write data to it. So, the host usable data are from address 10H-0FFFH. P/N:PM0426 REV. 2.2, JAN 20, 1998 52 MX93521 Appendix 4. Flow Chart of using MX93521 in VOCODER mode (Parallel Interface) A4.1 Record mode (Background) RECORD RESET MX93521 [BIT] WAIT4ACK=1 RCVD=DATA2SND=0 STOP1=STOP2=0 PAUSE1=PAUSE2=0 END_OF_REC=0 [BYTE] TXCNT=RXCNT=0 WAIT4ACK==0? NO YES WAIT4ACK==0? NO TOGGLE PAUSE? YES YES [VOCODER MODE ON] CMDOUT[0]=0x41 CMOUT[1]=0x01 DATA2SND=WAIT4ACK=1 NO PAUSE1=WATI4ACK=1 STOP RECORDING? YES NO PAUSE1=WATI4ACK=1 WAIT4ACK==0? NO END_OF_REC==1? NO YES [MIC ON] CMDOUT[0]=0x5A CMDOUT[1]=0x00 CMDOUT[2]=0x48 DATA2SND=WAIT4ACK=1 YES [VOCODER MODE OFF] CMDOUT[0]=0x41 CMDOUT[1]=0x01 DATA2SND=WAIT4ACK=1 Wait 10 msec for MX93000 to settle WAIT4ACK==0? NO WAIT4ACK==0? NO YES [SET MIC GAIN] CMDOUT[0]=0x5A CMDOUT[1]=0x02 CMDOUT[2]=0x04 DATA2SND=WAIT4ACK=1 YES RETURN WAIT4ACK==0? NO YES [START TO RECORD] CMDOUT[0]=0x28 DATA2SND=WAIT4ACK=1 P/N:PM0426 REV. 2.2, JAN 20, 1998 53 MX93521 A4.2 Play mode (Background) PLAY RESET MX93521 [BIT] WAIT4ACK=1 RCVD=DATA2SND=0 [BYTE] TXCNT=RXCNT=0 YES RCVD==1? NO YES WAIT4ACK==0? NO CMDIN[0]==0x10? YES [VOCODER MODE ON] CMDOUT[0]=0x41 CMOUT[1]=0x01 DATA2SND=WAIT4ACK=1 YES WAT4ACK==0? NO YES WAIT4ACK==0? NO CMDIN[0]==0xA0? NO YES [SPEAKER ON] CMDOUT[0]=0x5A CMDOUT[1]=0x00 CMDOUT[2]=0x03 DATA2SND=WAIT4ACK=1 YES NO CMDIN[0]==0xE5? YES [MX93521 BUSY] [RESEND PREVIOUS DATA] DELAY 2 msec DATA2SND=WAIT4ACK=1 Wait 10 msec for MX93000 to settle CMDIN[0]==0xA0? WAIT4ACK==0? NO (LOAD DATA FROM MEMORY TO BYTE[0..5]) (LOAD NO MORE THAN 6 BYTES AT A TIME) (BYTECNT=BYTES LOADED) CMDOUT[0]=0x68+BYTECNT FOR (i=0; i
MX93521 价格&库存

很抱歉,暂时无法提供与“MX93521”相匹配的价格&库存,您可以联系我们找货

免费人工找货