| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
API4000M API4000M 4-channel Sound Generator which consists Melody
Top Searches for this datasheetSERIES VOICE MODULE API4000M API4000M 4-channel Sound Generator which consists Melody-Controller Micro-Controller. API4000M directly drive Speaker Power Amplifier inside, Ports connect with other units. API4000M give 24Bit parallel Address 8Bit parallel Data connecting with Memory from outside, process data maximum 128M bits, commendatory apply product which high quality voice music synthesizer. FEATURE 4-channel Sound Generator with Melody 2.7V 4bit ADPCM 24bit Address Bus, 8bit Data Instruction Input/Output Data Port Built-In Power Amplifier PART VOICE DURATIONS API4000M2 API4000M4 API4000M8 min. min. min. 25mm 42mm Ver1.1 ABSOLUTE MAXIMUM RATING Supply Voltage Input Voltage Range Operating Temperature Range SERIES VOICE MODULE API4000M (GND- 0.3V) (VDD 0.3V) ELECTRICAL CHARACTERISTICS VDD=4.5V GND=0V ,Ta=+25 unless otherwise noted PARAMETER Standby Current Operating Current Input voltage Input high voltage output voltage output high voltage CONDITIONS Chip Shut Down Sound Speaker Input Pins exclude AmpIn Input Pins exclude AmpIn Iout -0.1mA Output Pins Iout 0.1mA Output Pins UNITS DESCRIPTION Name VDDD VDDA GNDD GNDA AMPOUT AMPIN OSC1 OSC2 PIO3 PIO0 Description Digital Positive Power Supply Analog Positive Power Supply Digital Negative Power Supply Analog Negative Power Supply Power Amplifier Output Power Amplifier Input Oscillator Input Oscillator Output Data Input Data Input/Output Pins Data Input/Output Pins Data Output Pins Memory Chip Enable Active Memory Data Enable Active Memory Data Input Pins Memory Address Output Pins Ver1.1 Functional Description Micro-Controller SERIES VOICE MODULE API4000M Micro-Controller inside API4000M 8Bit Processor, groups Data Bank each Register, Function processing Data: Addition Subtraction logical Moving Shift other Basic Function. also Address Jump Data Input Data Output Sound Control Melod yControl other Advanced Function. Here list instruction API4000M, each instruction Format Description. JUMP Instruction Format JUMP INTR1, JUMP JUMP JUMP JUMP JUMP JUMP (1). Code Code instruction. (2). Cycle Time executive instruction, 1Cycle clock period. (3). Bytes Size instruction, Byte Bits. (4). Address Program, e.g. P123n 9999. (5). INTR1 signal. (6). INTR2 Song signal. (7). INTR3 Sound signal. (8). INTR4 Change Instrument signal. INTR2, INTR3, INTR4, ADDR, CO0, CO1, Code Cycle Bytes Instruction Description INTR1 Program Address(PC) will jump INTR2 Program Address (PC)will jump INTR3 Program Address (PC)will jump INTR4 Program Address(PC) will jump Program Address(PC) direct jump carry 0,Program Address(PC) will jump carry 1,Program Address(PC) will jump Register Data Instruction Format ADDC ADDD ANDD MOVD SUBDC SUBD (1). Number Register,e.g. (2). Data decimal value during 255. Data Data Data Data Data Data Code Cycle Bytes Instruction Description value adds Data,only Carry don't change value Data C=?) Data value logical Data,set solution Data) Data. value subduct Data, only return Carry don't change value Rn.(Rn-Data Data Ver1.1 Single Register Operation Instruction Format SHIFTL SHIFTR Code Cycle Bytes SERIES VOICE MODULE API4000M Instruction Description Each Shift left Bit,shift i.e. D7D6D5D4D3D2D1D00. Each Shift right Bit,shift i.e. 0D7D6D5D4D3D2D1D0. value subduct 1,set solution Rn-1) value 1,set solution Rn.(Rn Rn+1) Operation between Registers Instruction Format ADDR ADDRI ADDRC SUBR SUBRI SUBRC ANDR MOVR Code Cycle Bytes Instruction Description amount Rn.(Rn, Carry, amount Rn+Rm) Rn+Rm+C) only Carry don't change value (Rn+Rm subduct difference (Rn, Rn-Rm) subduct Carry, difference Rn-Rm-C) subduct only Carry don't change value (Rn-Rm logical solution value Sound Melody Control Instruction Format LDSPADB LDSPADF LDMYAD PLAYSP GAIN (1). Code Channel, (2). Code Sound,sort sequence,n 9999. (3). Code Melody Song, sort sequence 9999. (4). Data Code Sound Sample Rate, value during reference B.Sound Processor more description. (5). Reference Melody Processor more description Tempo Code. (6). Volume during 63,0 mute,63 volume. TEMPO Data Code Cycle Bytes Instruction Description start address Sound. address Sound. start address Melody. Play Sound(PS4). Tempo value Melody (PS5). volume output sound (PS6). Ver1.1 Input Output Data Instruction Format INPUT INPUT INPUT Code Cycle Bytes SERIES VOICE MODULE API4000M Instruction Description Data Port Rn.( Data Port Data Port value Data Port value Data Port value Data Port value Data Port value Data Port (1). Data Port Reference Data Port more description. System Control Instruction Format CLINTR INTRE SHUTDN Code Cycle Bytes Instruction Description Clear Interrupt Signal Make system receive interrupt signal. System shutdown. (1). Before executiving SHUTDN Instruction, sure executive INTRE Instruction first assure system restarted after shutdown. Sound Processor Sound Processor API4000M bits ADPCM construction, Sound Channel play music mixed different type sound.Sample Rate Sound during 4KHz 32Khz, each Channel different Sample Rate.Each Channel group Address Register Sound Data, each group Address Register Start Address Register Address Register Sound Data. Each Sound Channel Controlled Instruction PLAYSP, Controlled Melody Processor.Before Play Sound, Address Sound Data must first. following description about setting with Channel, Address, Sample Rate. Channel Channel Instruction LDSPADB, LDSPADF, PLAYSP. Each Channel group, can't play together. folloeing Table. Table Channel Group Ver1.1 SERIES VOICE MODULE API4000M Address Sound Instruction LDSPADB LDSPADF, which mean Start Address Address Memory Sound Data. When Sound Coding, compiler (API4000SE) will define Address each Sound, Address used when program compiling. want Address Sound, just choice Sound. Sample Rate Data Instruction PLAYSP mean Code Sample Rate, each code equivalent Sample Rate. There type Sample Rate during 4KHz 32KHz, there Pitch Table C.Melody Processor. e.g. LDSPADB LDSPADF PLAYSP LDSPADB LDSPADF PLAYSP LDSPADB S123 LDSPADF S123 PLAYSP LDSPADB S888 LDSPADF S888 PLAYSP CH1A Start Address Sound9 CH1A Address Sound9 Play Sound9 CH1, Sample Rate 16KHz CH2B Start Address Sound21 CH2B Address Sound21 Play Sound21 CH2,Sample Rate 16KHz CH3A Start Address Sound123 CH3A Address Sound123 Play Sound123 CH3, Sample Rate 4KHz CH4B Start Address Sound888 CH4B Address Sound888 Play Sound888 CH4, Sample Rate 4KHz Melody Processor Melody Processor inside API4000M Wave Table construction simulate tone from musical instrument, coinstantaneous play Channel. Each Channel banks Wave Table, group reference Address treble tone, group reference Address bass tone. treble tone range during B3(71) B4(83), reference value B3(71); bass tone range during E1(40) A#3(70), reference value A#2(58). Each Melody Note Data byte form, byte consists 5bits Beat Data, 2bits Channel Data, Control Data, byte consists 5bits Pitch Data, Bank Data, 2bits Control Data. Melody Processor processor type Beats, There Beat Table Table C.1. processible Pitch range during E1(40) B4(83), total type Note, Table list about Pitch Data, Note, Sample Rate. Tempo Melody Function TEMPO value from Code value Tempo, Table about their reference. Instruction LDMYAD used Start Address Melody Data Memory, Code Melody, Melody compiling, compiler(API4000ME) will define Data Address each Melody, Data Address coding. Melody Code Address Melody. Melody's playing controlled Instruction There description about control D.Input Output Data. Melody's change instrument signal defined Melody Data, will active interrupt signal "Change Instrument" "Song End", program detects such signal, will correspondent action. Ver1.1 Beat Table Beats/sec Pitch Table Pitch Code Note Bank (KHz) 10.1 10.7 11.3 12.0 12.7 Pitch Code 1/16 2/16 3/16 4/16 5/16 6/16 7/16 8/16 Beats/sec 9/16 10/16 11/16 12/16 13/16 14/16 15/16 16/16 SERIES VOICE MODULE Beats/sec 18/16 20/16 22/16 24/16 26/16 28/16 30/16 32/16 Beats/sec 36/16 40/16 44/16 48/16 52/16 56/16 60/16 64/16 API4000M Note Bank Bank (KHz) 13.5 14.3 15.1 16.0 17.0 18.0 19.1 20.2 21.4 22.7 24.0 25.4 28.6 30.3 32.0 (1). Pitch Code Note number (2). Bank treble tone; Bank bass tone. (3). Sample Rate when Oscillator Frequency API4000M 2816KHz. Tempo Table Tempo Code Tempo Code Tempo Code Tempo Code (1). value Tempo when Oscillator Frequency API4000M 2816KHz. Ver1.1 INTEGRATED CIRCUITS INC. Input Output Data SERIES VOICE MODULE API4000M Instruction INPUT OUTPUT, Data pass inside API4000M, connect with outside. following description about each Data Port's act. Input Data Port Input Data Port value consists Input PIO3 PIO0 PI0, Following their correspondent. bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Input PIO3 PIO2 PIO1 PIO0 PIO3 PIO0 Pin, bit7 bit4 bit2 bit0 will Unknown State. Input Data Port make Melody change Channel code instrument Instrument Code, Each following act. Item (1). Inst4~Inst0 Code Instrument, total type, Melody Compiling. (2). C1,C0 Code Channel C1=1,C0=1 C1=0,C0=0 C1=0,C0=1 C1=1,C0=0 bit7 bit6 bit5 bit4 Inst4 bit3 Inst3 bit2 Inst2 bit1 Inst1 bit0 Inst0 Input Data Port display State each channel, each following act. bit7 Bit6 bit5 bit4 bit3 bit2 bit1 bit0 Item (1). displayed Channel happen Sound End, state means Soind End. Output Data Port Output Data Port consists Output PIO3 PIO0 PO0, each after API4000M power initial state each following act. bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Output PIO3 PIO2 PIO1 PIO0 PIO3 PIO0 Input Pin, bit7 bit4 will affect PIO3 PIO0 state. Ver1.1 SERIES VOICE MODULE API4000M Output Data Port consists Output PI0, each following act. bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0 Output Input Pin, bit2 bit0 will affect state. Output Data Port Each Pin's PIO3 PIO0, Following their correspondent. bit7 Bit3 bit6 bit2 PIO3 Pull-low Input Pin, input trigger. Pull-low Input Pin, with input trigger. Floating Input Pin, input trigger. Output Pin. PIO1 Pull-low Input Pin, input trigger. Pull-low Input Pin, with input trigger. Floating Input Pin, input trigger. bit5 bit4 PIO2 Pull-low Input Pin, input trigger. Pull-low Input Pin, with input trigger. Floating Input Pin, input trigger. Output Pin. PIO0 Pull-low Input Pin, input trigger. Pull-low Input Pin, with input trigger. Floating Input Pin, input trigger. Output Pin. bit1 bit0 Output Pin. Each after API4000M power initial state Output Data Port choice Data Bank, Operate Voltage, each function, following their correspondent. bit7 use, bit6 must bit5 Operate Voltage 4.5Vbit5 Operate Voltage 3.0V. bit4 disable each Pin's outputbit4 enable each Pin's output. bit3 Input bit3 Output Pin. bit2 Pull-low Input bit2 Floating Input Pin. bit1 Pull-low bit1 Floating Pin. bit0 Data Bank group registers bit0 Data Bank group registers. Each after API4000M power initial state Output Data Port Sound Melody's operate mode, following description. bit7 must bit6 Sound Processor bit6 Sound Processor bit5 Melody bit5 Melody Start bit4 0,no action bit4 1,Off Melody Channels. bit3 Sound Mode bit3 Melody Mode. bit2 Sound Mode bit2 Melody Mode. bit1 Sound Mode bit1 Melody Mode. bit0 Sound Mode bit0 Melody Mode. After API4000M shut down, Each will reset Ver1.1 INTEGRATED CIRCUITS INC. Memory Data Structure SERIES VOICE MODULE API4000M Program Data, Melody Data, Sound Data API4000M input from outside, Each group Data bits, Input from Memory Data Input Port API4000M direct control 24bits Memory Address, output from Memory Address Output Port Data Memory order Program Data, Melody Data, Sound Data. Program Data's Start Address 000000, Max. Address 00FFFF, Program Data max. Bytes. Melody Data's Start Address continue from Program Data's Address, Sound Data's Start Address continue from Melody Data's Address, Highest Address FFFFFF. PROGRAM GUID API4000M controlled Program Play Sound Play Melody, this chapter will descript write Program. Initial State After API4000M Power wake again after Shut Down, Program Data Address API4000M Address 000000. instruction OUTPC, OUTPD program's first PI0, PIO3 PIO0, PO0. Every register Data Bank after Power random initial value, Shut Down won't change value. Play Sound Before Playing Sound, Start Address Address Sound Data which would played must Channel want Play Sound. Instruction LDSPADB LDSPADF Address Sound Data. Otherwise, Channel must Sound Mode Data Port Sound Processor must Instruction CLINTR clear residual INTR3 interrupt signal Then Instruction PLAYSP begin playing sound, INTR3 detect interrupt signal, Instruction INPUT detect Sound play over not. channel doesn't play sound must Melody Mode Data Port avoid mistake Sound interrupt signal; exercise Instruction CLINTR, Sound Processor OFF, will clear interrupt signal INTR3. Play Melody Before Play Melody, except Sound Data Address decide instrument, Address Melody Data also must Instruction LDMYAD, value Melody Tempo, then Instruction channel would play Melody Mode, Sound Processor trigger play Melody. When Melody playing, interrupt signal INTR4(Change Instrument) detected, Instruction INPUT decision which channel need change instrument, reset trible/bass tone reference Sound Data Address channel directly. Melody play over will send interrupt signal INTR2(Song End), want pause stop play Melody play, Instruction Melody OFF. Ver1.1 External Interface SERIES VOICE MODULE API4000M PIO3 PIO0 link API4000M connecting with outside, Instruction INPUT input output Data. that Input Pin, PIO3 PIO0 Input with Trigger High Level, there will send interrupt signal INTR1(Key In), Wake API4000M Shut Down. Before exercising Instruction SHUTDN, must exercise Instruction INTRE first, then API4000M Wake again. Sample Program MOVD MOVD GAIN LDSPADB LDSPADF MOVD CLINTR PLAYSP JUMP JUMP MOVD LDSPADB LDSPADF C1B, LDSPADB LDSPADF LDSPADB LDSPADF LDSPADB LDSPADF LDSPADB LDSPADF LDSPADB LDSPADF LDSPADB LDSPADF LDSPADB LDSPADF LDMYAD 00001111 Melody Mode, Sound Processor Start Address Sound11 CH1B Address Sound11 CH1B Start Address Sound12 CH1A Address Sound12 CH1A Start Address Sound11 CH2B Address Sound11 CH2B Start Address Sound12 CH2A Address Sound12 CH2A Start Address Sound13 CH3B Address Sound13 CH3B Start Address Sound14 CH3A Address Sound14 CH3A Start Address Sound15 CH4B Address Sound15 CH4B Start Address Sound16 CH4A Address Sound16 CH4A Start Address Melody Song INTR3 ADDR Sound 01010101 PIO3 PIO0 Trigger Input Pins volume Level Start Address Sound9 CH1A Address Sound9 CH1A 01001110 Sound Mode, Sound Processor Cleat interrupt signal INTR Sample Rate 16KHz Play Sound9 Ver1.1 MOVD TEMPO MOVD JUMP JUMP JUMP JUMP P20: INPUT CLINTR ADDC JUMP ADDC JUMP ADDC JUMP P21: INTR1 INTR2 INTR4 ADDR SERIES VOICE MODULE API4000M Tempo 01101111 SetSound Processor ON,Melody ON,CH4 Melody Mode Song Change Instrument read data about changing instrument clear INTR4 LDSPADB Start Address Sound21 CH1B LDSPADF Address Sound21 CH1B LDSPADB Start Address Sound22 CH1A LDSPADF Address Sound22 CH1A JUMP ADDR P22: LDSPADB Start Address Sound31 CH2B LDSPADF Address Sound31 CH2B LDSPADB Start Address Sound32 CH2A LDSPADF Address Sound32 CH2A JUMP ADDR P23: LDSPADB Start Address Sound33 CH3B LDSPADF Address Sound33 CH3B LDSPADB Start Address Sound34 CH3A LDSPADF Address Sound34 CH3A JUMP ADDR P24: LDSPADB Start Address Sound25 CH4B LDSPADF Address Sound25 CH4B LDSPADB Start Address Sound26 CH4A LDSPADF Address Sound26 CH4A JUMP ADDR Ver1.1 P30: MOVD CLINTR JUMP ADDR P40: INPUT ADDC JUMP P41: JUMP JUMP P42: JUMP INTR1 MOVD P50: INTRE SHUTDN INTR1 ADDR read Input Port data SERIES VOICE MODULE API4000M 00001111 Sound Processor OFF, Melody clear INTR2 00001111 Sound Processor OFF, Melody enable INTR signal Shut Down API4000M Program must program Pin-1 VCC-3V Pin-10 VCC4V5 Pin-2 Pin-11 Pin-3 Pin-12 Pin-4 PIO2 Pin-13 PIO3 Pin-5 PIO0 Pin-14 PIO1 Pin-6 Pin-15 Pin-7 Pin-16 Pin-8 SPK1 Pin-17 SPK2 Pin-9 Pin-8 Ver1.1 SERIES VOICE MODULE API4000M TYPICAL APPLICATION CIRCUIT Ver1.1 SERIES VOICE MODULE API4000M API4000 SSOP-56 PIN(300MIL) PACKAGE Ver1.1 Other recent searchesSiSi1913DH - SiSi1913DH SiSi1913DH Datasheet Si3465DV - Si3465DV Si3465DV Datasheet SFF-8470 - SFF-8470 SFF-8470 Datasheet SE-761 - SE-761 SE-761 Datasheet K02B - K02B K02B Datasheet HS-83C55RH - HS-83C55RH HS-83C55RH Datasheet ARM922T - ARM922T ARM922T Datasheet
Privacy Policy | Disclaimer |