DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

API4000M8 View Datasheet(PDF) - APLUS INTEGRATED CIRCUITS

Part Name
Description
Manufacturer
API4000M8
Aplus
APLUS INTEGRATED CIRCUITS Aplus
API4000M8 Datasheet PDF : 15 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
INTEGRATED
API4000M SERIES
CIRCUITS INC. VOICE OTP MODULE
2. Address :
Sn is the no. of Sound in Instruction LDSPADB and LDSPADF, which is mean the Start Address and End
Address of Memory Sound Data. When Sound is Coding, compiler (API4000SE) will define Address of each
Sound, the Address can be used when program is compiling. If you want to set Address of Sound, just choice the
no. of Sound.
3. Sample Rate :
Data in Instruction PLAYSP is mean Code of Sample Rate, each code is equivalent a Sample Rate. There is
32 type Sample Rate during 4KHz to 32KHz, there is a C.2 Pitch Table in C.Melody Processor.
4. e.g.
LDSPADB C1A , S9 ;
LDSPADF C1A , S9 ;
PLAYSP C1A , 19 ;
/* Set CH1A to Start Address of Sound9 */
/* Set CH1A to End Address of Sound9 */
/* Play Sound9 on CH1, Sample Rate is 16KHz */
LDSPADB C2B , S21 ; /* Set CH2B to Start Address of Sound21 */
LDSPADF C2B , S21 ; /* Set CH2B to End Address of Sound21 */
PLAYSP C2B , 19 ;
/* Play Sound21 on CH2,Sample Rate is 16KHz */
LDSPADB C3A , S123 ; /* Set CH3A to Start Address of Sound123 */
LDSPADF C3A , S123 ; /* Set CH3A to End Address of Sound123 */
PLAYSP C3A , 0 ;
/* Play Sound123 on CH3, Sample Rate is 4KHz */
LDSPADB C4B , S888 ; /* Set CH4B to Start Address of Sound888 */
LDSPADF C4B , S888 ; /* Set CH4B to End Address of Sound888 */
PLAYSP C4B , 0 ;
/* Play Sound888 on CH4, Sample Rate is 4KHz */
C. Melody Processor
Melody Processor inside API4000M use Wave Table construction to simulate the tone from musical
instrument, It can coinstantaneous play 4 Channel. Each Channel has 2 banks Wave Table, A group is reference
Address of treble tone, B group is reference Address of bass tone. treble tone range is during B3(71) ~ B4(83),
reference value is B3(71); bass tone range is during E1(40) ~ A#3(70), reference value is A#2(58). Each Melody
Note Data is in 2 byte form, 1st byte consists of 5bits Beat Data, 2bits Channel Data, and 1 bit Control Data, 2nd
byte consists of 5bits Pitch Data, 1 bit Bank Data, and 2bits Control Data. Melody Processor can processor 32 type
Beats, There is a Beat Table on Table C.1.
All processible Pitch range is during E1(40) ~ B4(83), total 36 type Note, Table C.2 is a list about Pitch Data,
Note, and Sample Rate. Tempo of Melody is set by Function TEMPO Rn, the value of Rn is from Code value of
Tempo, Table C.3 is about their reference.
Instruction LDMYAD Mn is used to set Start Address of Melody Data in Memory, Mn is the Code of Melody,
As Melody compiling, compiler(API4000ME) will define Data Address of each Melody, Data Address can be use
in coding. You can use Melody Code to set Address of Melody.
Melody’s playing is controlled by Instruction OUT PE, Rn, There is description about how to control in
D.Input & Output Data. Melody’s change instrument and end signal is defined in Melody Data, it will active 2
interrupt signal “Change Instrument” and “Song End”, if program detects such signal, it will do correspondent
action.
6
Ver1.1

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]