QS1600 Application Manual 16 Poly ADPCM Sound Synthesizer For Mobile Phone. Version 1.0 Contents Chapter 1 General Description Chapter 2 Features Chapter 3 Block Diagram 3-1 Outline of Block 3-2 Description of blocks Chapter 4 Pin Rotation and Pin Description 4-1 Pin Rotation 4-2 Pin Descriptions 4-2 Detail Pin Description Chapter 5 Details of Block 5-1 Register 5-1-1 Register Table 5-1-2 Read and Write Operation 5-1-3 Deatailed Register Description and Usage Each Action. 5-2 FIFO 5-3 D/A Interfacing 5-4 PWM Output Chapter 6 Application Flow Chart Chapter 7 Electrical Charateristics Chapter 8 SMF Sound Table Chapter 9 Outline Dimensions and weight Chapter 10 Marking Chapter 11 Package and Package Testing procedure * The contents of this manual are target specifications and they are subject to change without a prior notice. Please check the finalized version before actually using QS1600. 1/32 HWA SOUND SOURCE Chapter 1 Advanced ADPCM SOUND DSP for Mobile QS1600 General Description QS1600 is a high quality sound DSP for CDMA mobile phone that is capable of playing music by utilizing ADPCM decoder with sound font rom which is built in this device. QS1600 is equipped with HWASS's QPCM synthesizer,which is capable of generating up to 16 voices Simultaneously with different tone. Besides, QS1600 can play two channel wavefile and various wavefile with different sampling rate. Since data in FIFO buffer are processed any time you want, the length of data(MIDI & WAVE) is not limited. Therefore, QS1600 is available in application such as incoming melody distribution service. The MIDI handler built in QS1600 is allows playing the MIDI data without extra buffer. QS1600 is included PWM module for audio out whose maximum output is 390mw at 8Ω load Resistance(PVDD=3.6V) To operate QS1600 with its full capabilities, "Format 0 Standard MIDI File" is recommended to use. Chapter 2 Features ADPCM synthesizer functions ▶ 16 voices generated at 39kH simultaneously. 1 tone is required to play 1 polyphonic. ▶ Compatible with monophonic sound generation. ▶ SMF Volume control Individual channel volume . ▶ Built-in MIDI handler(interpreter) ▶ Equipped with two buffers of 128 bytes FIFO for SMF play. ▶ Built-in 4 bit or 8 bit ADPCM decorder. TONE ▶ Supports GENERAL MIDI LITE specification. GM 128 voices + 47 voices percussion. Support to control parameters by "BxH xxh"(see the MIDI implementation chart) ▶ Various sampling rate : 8 ~ 39Khz WAVE ▶ Support two wave channel to playback at 4/8/11/14/22Khz(2 Channels) ▶ Separate wave volume control(0~127) CPU INTERFACING ▶ 1 Wire serial or 14 Wires parallel interfacing can be selected. 2/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 AUDIO OUTPUT ▶ PWM audio out or 16bit DAC interfacing can be selected. ▶ PWM output mode : 390mW when PVDD=3.6 RL=8Ω POWER SUPPLY ▶ included two power for sub-system. PVDD power supply devoted to PWM block.(3.3 ~ 4.2V) VDD is normal power supply.(Typ 3.3V) 3/32 HWA SOUND SOURCE Chapter 3 Advanced ADPCM SOUND DSP for Mobile QS1600 Block Diagram 3-1. Outline of Blocks D0~D7 WRB D0~D7 RDB Register 32 * 8 CSB A0 WAKE XIN XOUT Power Control Clock Generater IRQB MRSTB CPU & ROM SMFSMFBuffer Buffer 128 * 88 128* FIFO FIFO Wave Wave Wave Wave Buffer Buffer Buffer Buffer 6464*64 8 64**8* 88 FIFO FIFO FIFO FIFO MIDI 4Mbit Built In Sound Font ROM Sound Memory Interface SMF file Decorde r & Vibrato & LFO ADPCM Wave Decoder Digital Filter Mixing & Panning DAC Interface SOUT SCLK WSCLK PWM OUT PCH NCH 4/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 3-2. Descripion of Blocks Explanations about each block of QS1600 and flows of the signal are as follows. 1) Register Block : QS1600 has registers of 32 x 8 for storing control data. Built-in 8052 and register blocks of QS1600 can communicate with each other. They are used to change the control value and communicate to commend. 23 x 8 registers are used for this purpose. The extra registers are available to support additional features. 2) SMF FIFO buffer : This FIFO is prepared for receiving the SMF file block(128bytes) from Host. SMF FIFO Buffer has two banks of memory block and each buffer is filled with data according to REQ_TYPE(When bit 2 is "1" ) from built- in 8052. When receiving the data request(IRQB) for next procedure you should be read the REQ_TYPE register which data to be required. 3) WAVE FIFO buffer : This FIFO is prepared for receiving the wave data block(64 or 128 bytes) from Host. WAVE FIFO Buffer has four banks of memory block and the size are 64 bytes. According to your choice(using register WAVE_CHN). the buffer size is determined. Each bank is filled with wave data accoding to REQ_TYPE( when bit 1 or bit 0 is "1") if you intend to play the high-sampling-rate(up to 22khz) wave file, we recommand that you use only one wave channel, because the transmission data rate is so high. In this case, WAVE FIFO Buffer size is preset to 128bytes. 4) Power control : This block is in charge of power management. You can select whether entering power-down-mode or waking up from the power-down. 5) Clock generator This block generate internal master clock. According to source clock. QS1600 need the external clock source to operate on stable. Also for the PWM clock, you can get a highly sound resolution due to write the "0x00" for PWM_CLK register. Master CLOCK Xin 19.68Mhz(CDMA) "Clock Generator" x2 PWM CLOCK PWM_CLK Register 6) CPU & ROM : This block describes 8052 micom and 12k bytes program ROM memory. Built-in 8052 interprets SMF and Wave file. 7) PWM Speaker out : This block converts audio data into PWM format. It supports Monophonic audio out. 5/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 8) D/A interface : This block generates sclk,wclk,sout clock for External 16bit DAC. If you have External DAC, you can also use this interfacing port. When you use the DAC OUT mode,the PWM out is disabled. 9) Sound font : This block is an embedded maskrom for GM 128 sound map and 47 percussion. Sound font built in this device is stored the sampling data according to GM 128 sound map. 6/32 HWA SOUND SOURCE Chapter 4 Advanced ADPCM SOUND DSP for Mobile QS1600 Pin Rotaton and Descriptions. 4-1. Pin Rotation 7/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 4-2. Pin Descriptions PIN NO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 PIN NAME I/O NC VDD VSS D0 D1 D2 D3 D4 D5 D6 D7 WAKE CSB VSS A0 NC WRB RDB IRQB MIDI SOUT SCLK WCLK RTST MRSTB XOUT XIN VDD VSS NC NC VSS NCHvss NCH NCHvdd PCHvdd PCH PCHvss VDD NC X P P I/O I/O I/O I/O I/O I/O I/O I/O I I P I X I I O I O O O I I O I P P X X P P O P P O P P X DESCRIPTION No Connect Power Supply Ground Bidrection DATA BUS Bidrection DATA BUS Bidrection DATA BUS Bidrection DATA BUS Bidrection DATA BUS Bidrection DATA BUS Bidrection DATA BUS Bidrection DATA BUS WakeUp Signal(Low Active) Chip Select Ground Register Address or Data Select No Connect Write Enable Read Enable Request Data Block External MIDI Input(UART) Data Out Stream for DAC Bit Clock for DAC Frame Clock for DAC Test ( "H" : test / "L" : normal) Reset Clock Ouput Clock Input Power Supply Power Supply No Connect No Connect Power Supply Ground for PWM Out Data(-) PWM Out Data(-) Power Supply for PWM Out Data(-) Power Supply for PWM Out Data(+) PWM Out Data(+) Ground for PWM Out Data(+) Power Supply No Connect 8/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 4-3. Detail pin descriptions. ▶ POWER SUPPLY PINS VDD ( 2,28,39 ) These pins are connected to nomal power supplier.(typ 3.3V) VSS ( 2,14,29,32 ) These pins are GNDs of power. PVDD(35,36) PVSS (33,38)-PCHvdd,PCHvss,NCHvdd,NCHvss PVDD is VDD for PWM block. It's capable of driving voltage MAX 4.2V from 3.3V. PVSS is PWM block GND. ▶ HOST CLOCK AND HOW TO SELECT. XIN ( 27 ), XOUT ( 26 ) QS1600 is require to master clock from external at 19.68Mhz The XIN pin is the external crystal input and the XOUT pin is inverting out of XIN. ▶ POWER RESET MRSTB ( 25 ) Reset is accomplished by holding the MRSTB pin low for at least 60 oscillator periods while the oscillator is running. To insure appropriate power-on reset, the MRSTB pin must be high long enough to allow the oscillator time to start up plus 40 oscillator period. And RESET plus should be free from glitch noise. At power-on, the voltage on VDD and MRSTB must comp up at the same time for a proper start-up. After RESET, all registers and internal RAM are initialized by "0x00". ▶ AUDIO INTERFACE PCH( 37 ), NCH( 34 ) QS1600 supports PWM out for Speaker. PCH is connected to speaker's minus(-) terminal. NCH is connected to speaker's plus(+) terminal. 9/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 WCLK ( 23 ), SCLK ( 22 ), SOUT ( 21 ) When RTST is holded on "H" level after H/W reset. You can take DAC interfacing. In DAC interfacing mode, you should be connected the wclk,sclk,sout out to Externa DAC. When you want to PWM use for audio out. These pins should be no connection. ▶ CPU INTERFACE QS1600 provides 1 wire serial interface and 14 wires parallel interface. These are processed at the same time without extra conrtol comments. MIDI ( 20 ) It is a input pin to receive the Extermal MIDI signal. asynchronous serial type and should have non-parity bit and one start and stop bit. Thus its is consist of ten bit, totally. And the transfer mode should be MSB first method. Baudrate is preset to 30.125kbps according to MIDI specification. IRQB ( 19 ) It is a request pin when QS1600 is ready to receive next packet data block. After receiving this request, you must read the "STATUS_1" Register for check the requesting data. and then write the next packet according to the buffer condtion. To play MIDI file you should transfer 128 bytes data blocks. In other hand, to play the wave file, you should transfer 64 or 128 bytes data. you can select data block size by write value to "WAVE_CH" register. If you take one wave channel. data block size is 128 bytes. If you want to play two wavefile simultaneously. the data block should be 128bytes/2. WAKEB ( 12 ) WAKEB is to release from Power-Down Mode. A wake operation is accomplished by holding the WAKEB pin low for Min 50ns period. In this case, all internal registers and RAM buffers are initialized by zero. A0( 15 ) This pin is to select Register Address or Command and Data. If the pin is high, the data to be written is the Register Address(Index) . Otherwise if the pin is low, the data to be written is the Command or Data. CSB( 13 ) It is a Chip Select for QS1600. This pin must be holded "low" when read and write operation. D0~D7(4~11) These are data buses for INDEX and DATA. We recommend you use COMMON DATA BUS. 10/32 HWA SOUND SOURCE Chapter 5 Advanced ADPCM SOUND DSP for Mobile QS1600 Details of Blocks. 5-1. REGISTER 5-1-1. REGISTER TABLE Registers Address SMF_CTRL 03H RESERVED 04H FIN_SMF_DATA 05H PIO_MIDI 06H WAVE_CH 07H WAVE_CTRL#1 08H WAV1_VOL 09H RESERVED 0AH WAV1_SR 0BH WAVE_CTRL#2 0CH WAV2_VOL 0DH RESERVED 0EH WAV2_SR 0FH RESERVED 10H SMF_BUF 11H WAV1_BUF 12H WAV2_BUF 13H READY_QS 14H RESERVED 15H OUT_MODE 16H POWER_CTRL 17H RESERVED 18H PWM_CLK 19H REQ_TYPE 1AH RESERVED 1BH STATUS_1 1CH RESERVED 1DH WRT_INDEX_DATA 1EH WRT_CONFIRM_DATA 1FH R/W W X W W W W W X W W W X W X W W W W X W W W W R X R X R W Description Control SMF Play/Stop mode Reserved Finished SMF packet block data. Receive MIDI by Parallel Type Specify Using Wave Channel Number Control Wave Play/Stop mode Wave channel "1" Adjust Wave 1 Volume Level Reserved Specify SampleRate for Wave 1 Control Wave Play/Stop mode Wave channel "2" Adjust Wave 2 Volume Level Reserved Specify SampleRate for Wave 2 Reserved SMF packet block buffer register (128bytes ) Wave channel 1 packet block buffer register Wave channel 2 packet block buffer register Ready for active of QS1600 Reserved Set PWM out. Set Power Down Mode Reserved PWM Clock Rate Selector Be requested data type. Reserved Status bit for Wave channel. Reserved Read INDEX data. Write data to acquire correct read (1EH) INDEX. 11/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 5-1-2. READ AND WRITE OPERATION WRB ↑ H ↑ Set Address Read Register Write Register RDB H ↑ H A0 H L L CSB L L L D0 ~D7 Set register address to write or read Read data from QS1600 Write command to QS1600 ● Read Command Flow Set Register Read Status Data ● Write Command Flow Set Register Write Data 5-1-3. DETAILED REGISTER DECRIPTIONS AND USEAGES IN EACH ACTION ▶ INITAIL SETUP WHEN POWER ON RESET. 1) RELATE TO DEVICE READY CHECK BETWEEN HOST AND QS1600 READY_QS : 0x14 D0 ~ D7 Description Ready command for ACTION of QS1600 0x4D QS1600 automatically return value on the "STATUS_1" l register such as "10xxxxxxB" every power on Reset. And then Host must be write the "0x4D" data to enable QS1600 after reading STATUS_1 : 0x1C Bit 0 Bit 1 Bit Bit Bit Bit Bit Bit 2 3 4 5 6 7 Read and Check Host Ready Wave Channel #1 Busy Wave Channel #1 Ready Wave Channel #2 Busy Wave Channel #2 Reserved Reserved Finished SMF play Reserved Not ready QS1600 Ready QS1600 H L H L H H H X L H "0x4D" write STATUS_1 REGISTER READY_QS REGISTER "1xxxxxxxB" write Read and ready to action Micom in QS1600 "QS1600" 12/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 2) RELATE TO QS1600 INITIAL VALUE MIDI_VOL : 0x04 D0 ~ D7 0 ~ 255 Description Set the MIDI volume WAVE_CH : 0x07 Description D0 ~ D7 0x00 Disable wave channel( Not use ) 0x01 You can take just one wave channel 0x02 You can take two wave channels How many channels do you want to use to play wave ? WAV1_VOL : 0x09 D0 ~ D7 0 ~ 127 Description Set Wave Play Volume for Wave Channel #1 WAV2_VOL : 0x0D D0 ~ D7 0 ~ 127 Description Set Wave Play Volume for Wave Channel #2 PWM_CLK : 0x19 0x00 0x01 We recommand you use 20Mhz mode. 40Mhz for PWM drive clock 20Mhz for PWM drive clock 3) AUDIO OUT SELECT REGISTER OUT_MODE : 0x16 D0 ~ D7 0x48 Description Set PWM out 13/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 ▶ RELATE TO PLAY MIDI REGISTER SMF_CTRL : 0x03 D0 ~ D7 0x11 0x12 Description Play Start Command for Standard MIDI Format 0 File Stop Command for Standard MIDI Format 0 File SMF_BUF : 0x11 Description D0 ~ D7 SMF DATA MIDI Packet Data Buffer Write Address( 128Bytes) After receiving the next data request. you should write the data to this address in block of 128 And then you must write a dummy data to "FIN_MIDI_DATA" register to acquire to finish this FIN_SMF_DATA : 0x05 D0 ~ D7 Description Finished MIDI data write. ANY DATA You should write a dummy data after you finished writing MIDI data block. REQ_TYPE : 0x1A Bit 0 Request packet data block to play the Wave 2 File Bit 1 Request packet data block to play the Wave 1 File Request packet data block to play the SMF 0 Bit 2 Reserved Bit 3 Reserved Bit 4 Reserved Bit 5 Reserved Bit 6 Bit 7 Reserved ( H : request active , L : no request ) STATUS_1 : 0x1C ; see the "relate to device ready check between host and QS1600". 1st byte in 2nd packet < Play SMF sequency > 128 Bytes WRB REG DATA 1 Byte 1 Byte SMF_BUF FIN_SMF_DATA SMF_CTRL SMF_DATA DUMMY-DATA 0x11 Start MIDI SMF_DATA IRQB <Next data block request> Check the REQ_TYPE which bit 2 is "1" and then write the packet data to be required. 14/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 < Detailed register control to play the SMF file > - STEP 1- SMF_BUF(11H) <---- OxXX ; To write the 1st packet data(128bytes). - STEP 2- SMF_CTRL(03H) <---- Ox11 ; Play start the SMF file. - STEP 3- FIN_SMF_DATA(05H) <---- - STEP 4- Check "Data Request" ; Next packet reguest(IRQB) from QS1600 - STEP 5- REQ_TYPE(1AH) ; Read "REQ_TYPE" and Check if bit 2 is "1" - STEP 6- SMF_BUF(11H) - STEP 7- <---- FIN_SMF_DATA(05H) <---- OxXX ; Write the dummy data for finishing packet data transfer. OxXX ; To write the 2nd packet data(128bytes). OxXX ; Write the dummy data for finishing packet data transfer. Repeat write the packet data . Repeat write the packet data Repeat write the packet data Repeat write the packet data Repeat write the packet data . Repeat write the packet data - STEP 8- Check "Data Request" - STEP 9- REQ_TYPE(1AH) <---- - STEP10- SMF_BUF(11H) <---- - STEP11- ; Next packet reguest(IRQB) from QS1600 FIN_SMF_DATA(05H) <---- - STEP12- STATUS_1 - STEP13- SMF_CTRL(03H) <---- ; Read "REQ_TYPE" and Check if bit 2 is "SET" OxXX ; Write the last packet data(128bytes). Last packet OxXX ; Write the dummy data for finishing packet data transfer. ; Read "STATUS_1" and Check if bit 4 is "1" ; That means the end of playing SMF. Ox12 ; Stop the SMF file play. 15/32 HWA SOUND SOURCE QS1600 Advanced ADPCM SOUND DSP for Mobile ▶ RELATE TO PLAY WAVE REGISTER WAVE_CTRL#1 : 0x08 D0 ~ D7 0x11 0x12 Description Wave start for Wave Channel#1 Stop Command for Wave Channel #1 WAV1_SR : 0x0B D0 ~ D7 0~9 Description Specify SampleRate for Wave 1 File #0 #1 #2 #3 #4 #5 8 Bit Format 22K 14K 11K 8K 4K 22K #6 #7 #8 4 Bit Format 14K 11K 8K #9 4K WAVE_CTRL#2 : 0x0C D0 ~ D7 0x11 0x12 Description Wave start for Wave Channel#2 Stop Command for Wave Channel #2 WAV2_SR : 0x0F D0 ~ D7 0~9 Description Specify SampleRate for Wave 2 File #0 #1 #2 #3 #4 #5 8 Bit Format 22K 14K 11K 8K 4K 22K #6 #7 #8 4 Bit Format 14K 11K 8K #9 4K WAVE#1_BUF : 0x12 & WAVE#1_BUF : 0x13 Description D0 ~ D7 Wave#1/2 Packet Data Buffer (**bytes) WAVE DATA **bytes : If you select one-wave channel. You should write the packet data(128 bytes). Contrary, if you select two-wave channel. You should write the packet data (16 bytes). REQ_TYPE : 0x1A Bit 0 Request packet data block to play the Wave 2 File Bit 1 Request packet data block to play the Wave 1 File Bit 2 Request packet data block to play the SMF 0 ( H : request active , L : no request ) <Next data block request> < Play the wave sequency > 1 Byte 128(16) Bytes WRB REG DATA WAVE_CH 0x00 or 01 or 02 "A" WAVE#1/2_BUF WAVE_DATA Check the REQ_TYPE which bit 0 or 1 is "1" and then write required packet DATA 1 Byte WAVE_CTRL#1 or 0x11 Start WAVE WAVE_DATA IRQB "A" : SET number of WAVE channel. 16/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 < Detailed register control for playing the WAVE file "When wave channel is one" > - STEP 1- WAV1_VOL(09H) <---- Ox00 ~Ox7F ; Set Wave volume - STEP 2- WAV1_SR(0BH) <---- Ox00 ~ Ox09 ; Set sampling-rate and number of data bit. - STEP 3- WAV1_BUF(12H) <---- OxXX ; Write the packet data for playing wave.(128byte) - STEP 4- WAVE_CTRL#1(08H) <---- - STEP 5- Check "Data Request" - STEP 6- REQ_TYPE(1AH) - STEP 7- WAV1_BUF(12H) Ox11 ; Start the WAVE file. ; Next packet reguest(IRQB) from QS1600 ; Read "REQ_TYPE" and Check if bit 1 is "SET" <---- OxXX ; Write the 2nd packet data for playing wave.(128byte) Repeat write the packet data . Repeat write the packet data Repeat write the packet data Repeat write the packet data Repeat write the packet data Repeat write the packet data - STEP 8- Check "Data Request" - STEP 9- REQ_TYPE(1AH) - STEP10- WAV1_BUF(12H) - STEP11- STATUS_1 - STEP12- ; Next packet reguest(IRQB) from QS1600 ; Read "REQ_TYPE" and Check if bit 1 is "SET" <---- WAVE_CTRL#1(08H) <---- OxXX ; Write the last packet data(128bytes). Last packet data ; Read "STATUS_1" and Check if bit 2 is "SET" ; That means the end of playing WAVE. Ox12 ; STOP the WAVE play. 17/32 HWA SOUND SOURCE QS1600 Advanced ADPCM SOUND DSP for Mobile ▶ RELATE TO ONE NOTE MIDI PLAY PIO_MIDI : 0x06 D0 ~ D7 Description MIDI BYTE Support to input midi data by parallel format QS1600 provides MIDI handler for playing the music.In this case, Host just pass the block of MIDI data. Otherwise if they are capable of play with MIDI They can choose any mode without soft and hardware setting. PIO_MIDI register is used for parallel instede of serial. The baudrate is 30.125K BPS ▶ POWER MANEGEMENT REGISTER POWER_CTRL : 0x17 D0 ~ D7 Description 0xAA Set PowerDown Mode QS1600 supports POWER SAVING MODE that is entered by command of POWER DOWN. In this mode, release from POWER DOWN by holding the WAKE pin low for 50ns period. 5-2. FIFO QS1600 have two kinds of FIFO to play SMF and ADPCM wave file. These FIFOs are prepared for receiving the SMF file and Wave data from Host. Both of them have two banks of memory block and each buffer is filled with data according to REQ_TYPE from built- in 8052. These address are the same as each other. Physical address is automatically increament. When receiving the data request(IRQB) for next procedure you should be read the REQ_TYPE register and then sending the next data packet by request type. < FIFO for MIDI > *03H 0 1 2 3 4 5 …. 122 123 124 125 126 127 *03H 1 2 3 4 5 …. 122 123 124 125 126 127 < FIFO for WAVE > WAVE_CH#1 0 1 (0x12) 0 1 WAVE_CH#2 0 1 (0x13) 0 1 2 2 2 2 3 3 3 3 4 4 4 4 5 5 5 5 …. …. …. …. 58 58 58 58 59 59 59 59 60 60 60 60 61 61 61 61 62 62 62 62 63 63 63 63 0 18/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 5-3. D/A interfacing QS1600 provides DAC interfacing use for External DAC. In oder to use this mode, you should be holded the RSTS(P24) "low" for a few time after master reset. Example usage is as follow SLCK BCLK TDA1311 QS1600 RTST WCLK WS SOUT SDATA RESET MRSTB MIN 10usec RTST 5-4. PWM OUTPUT QS1600 supports PWM audio out for the speaker out. You can get a PWM out signal When you write the 0x48 for the out_mode register. P37 :PCH P34 :NCH Inactive Active 19/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 Chapter 6 Appplication Follow Chart * SMF Format 0 Play Release Power Down Mode Check QS1600 Ready ( Check STATUS_1 ) N Y Transfer PLAY command To QS1600 SMF_CTRL <---- 0x11 Set Register Address to SMF_BUF and Write 128 Bytes and then write to FIN_SMF_DATA Y Check End of SMF 0 N Waiting for IRQB Enable Y N Transfer STOP command to QS1600 SMF_CTRL <-----0x12 End SMF Play 20/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 * Wave File Play Release Power Down Mode Check QS1600 Ready ( Check STATUS_1 ) N Y N Check Normal Stop Y "1" "2" Wave Play Channels ? Write #2 to WAVE_CH Write Sampling rate for Wav 1 Set Address to WAV1_BUF Write 64 Bytes by Wav 1 Write Samplate for Wav 2 Set Address to WAV2_BUF Write 64 Bytes by Wav 2 Write #1 to WAVE_CH Write Sampling rate write to WAV1_SR Set Address to WAV1_BUF Write 128 Bytes Write PLAY command to WAVE_CTRL A 21/32 HWA SOUND SOURCE QS1600 Advanced ADPCM SOUND DSP for Mobile A Y N Wait for IRQB Enable End of Wav 1 ? ( check status_1 ) Transfer STOP command to QS1600 by Wav 1 File Y N End of Wav 2 ? Transfer STOP command to QS1600 by Wav 2 File Y Y N End of Wav 2 ? N End Wave Play "1" Wave Play Channels ? "2" Set Address to WAV1_BUF Write 128 Bytes Set Address to WAV1_BUF Write 64 Bytes by Wav 1 Set Address to WAV2_BUF Write 64 Bytes by Wav 2 A 22/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 Chapter 7 Eletrical Charateristics Absolute maximum range Item PVDD terminal power supply voltage VDD terminal power supply voltage Digital input voltage Operating ambient temperature Carrier temperature Note : VDD = 3V±0.3 , VSS = 0V Symbol Min Max PVDD PVDD-0.3 4.5 VDD VDD-0.5 VDD+0.3 VIND VDD-0.5 VDD+0.3 TOP -20 85 TCA -50 125 Unit V V V °C °C Typ 3.3 3.3 25 Recommended operating condition Item PVDD operating voltage VDD operating voltage Operating ambient temperature Symbol PVDD VDD TOP Min 2.7 2.5 -20 Max 4.5 3.6 85 Unit V V °C DC characteristics Item Input voltage "H" level Input voltage "L" level Output voltage "H" level Output voltage "L" level Shumitt width Input leakage current Input capacity Symbol VIH VIL VOH VOL VSH IL CI Note : VDD = 3.3V , VSS = 0V Min Typ Max 5 1.9 3.3 1.2 3.3 3 0.1 1.0 -1 1 10 Unit V V V V V uA pF AC characteristics MRSTB,XIN Item MRTSB active "L" pulse width XIN frequecy XIN rising / falling time XIN duty Symbol TRSTW 1/TFREQ TR/TF TH/TFREQ Note : VDD = 3V±0.3 ,Copacitor load = 50pF Max Min Typ Unit 512 *xin 26 2 Mhz 30 ns 30 50 70 % TRSTW VIH MSRTB VIL TH TF VIH VIL XIN TR TFREQ 23/32 HWA SOUND SOURCE QS1600 Advanced ADPCM SOUND DSP for Mobile CSB, WRB, RDB, A0, IREQB, D0~D7 Item CSB active "L" pulse width(write) Address setup time A0 and CSB holding time after rigi after riging of WRB. WRB active "L" pulse width Data setup time Data hold time CSB active "L" pulse width(read) Address setup time RDB active "L" pulse width Data read access time Data hold time IREQB active "L" pulse width When XIN = 20Mhz Typ Max Symbol TCSW TAS Min 120 10 *TAH 75 ns TWW TWDS TWDH TCSR TRAS TRW TACC TRDH TREQW 100 30 5 120 10 100 ns ns ns ns ns ns ns ns us Unit ns ns 70 50 10 1.6 *TAH A0 TCSW TCSW CSB TAS TAS TWW TWW WRB TWDS TWDS TWDH D0~D7 Invalid TWDH Invalid Index Valid Data Valid Timing of Write Operation A0 TCSW TCSR CSB TAS TWW WRB TRAS TRW RDB TWDS TWDH D0~D7 Invalid Index Valid TACC Invalid TRDH Data Valid Timing of Read Operation 24/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 BCLK WCLK MSB LSB MSB LSB SDATA BCLK,WCLK,SDATA When XIN = 20Mhz Item Symbol Min Typ Max Unit BCLK 1/Freq time TBLK 820 ns WCLK 1/Freq time TWLK 26 us SDATA 1/Freq time TWW 100 ns Power consumption Item Min VDD section ( without speaker ) Typ Max 20 Unit mA Power consumption 8Ω load and 360mW out 200 mA Power down mode 10 uA Note : PVDD=VDD = 3.3V TOP =-20~85°C 25/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 Chapter 8 SMF Sound Table 1) GM LITE SOUND TABLE Piano ChPercu ssion Organ Guitar PC# CCO 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Tone name Acoustic Grand Piano Brigh Acoustic Piano Electric Grand Piano Honkey tonk Piano Electric Piano 1 Electric Piano 2 Harpsichord Clavi Celesta Glockenspiel Music Box Vibraphone Marinba Xylophone Tubular Bells Dulcimer Drawbar Organ Percussive Organ Rock Organ Church Organ Reed Organ Accordion Harmonica Tango Accordion Acoustic Guitar (nylon) Acoustic Guitar (steel) Electric Guitar (jazz) Electric Guitar (clean) Electric Guitar (muted) Overdriven Guitar Distortion Guitar Guitar harmonics Acoustic Bass Electric Bass (finger) Electric Bass (pick) Bass String / Orche stra Emsemble Brass Reed Pipe PC# CCO 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Tone name Fretless Bass Slap Bass 1 Slap Bass 2 Synth Bass 1 Synth Bass 2 Violin Viola Cello Contrabass Tremolo Stings Pizzicato Strings Orchestral Harp Timpani String Ensemble 1 String Ensemble 2 SynthStrings 1 SynthStrings 2 Choir Aashs Voice Oohs Synth Voice Orchestra Hit Trumpet Trombone Tuba Muted Trumpet French Hom Brass Section SynthBrass 1 SynthBrass 2 Soprano Sax Alto Sax Tenor Sax Baritone Sax Oboe English Hom Bassoon Clarinet Piccolo Flute Recorder continude next page 26/32 HWA SOUND SOURCE PC# 76 77 Pipe 78 79 80 81 82 83 Synth 84 lead 85 86 87 88 89 90 91 Synth 92 pad 93 94 95 96 97 98 99 Synth 100 SFX 101 102 103 104 105 106 107 108 Ethnic 109 110 111 112 113 Percu 35 ssive 36 CCO 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Advanced ADPCM SOUND DSP for Mobile Tone name PC# CCO Pan Flute Blown Bottle Shakuhachi Whistle Ocarina Lead 1 (square) Lead 2 (sawtooth) Lead 3 (calliope) Lead 4 (chiff) Lead 5 (charang) Lead 6 (voice) Lead 7(fifths) Lead 8(bass + lead) Pad 1 (new age) Pad 2 (warm) Pad 3 (polysynth) Pad 4 (choir) Pad 5 (bowed) Pad 6 (metallic) Pad 7 (halo) Pad 8 (sweep) FX 1 (rain) FX 2 (soundtrack) FX3 (crystal) FX 4 (atmosphere) FX 5 (brightness) FX 6 (goblins) FX7 (echoes) FX 8 (sci-fi) Sitar Banjo Shamisen Koto Kalimba Bag pipe Fiddle Shanai Tinkle Bell Agogo Steel Drums 116 117 118 119 120 121 122 123 124 125 126 127 128 0 0 0 0 0 0 0 0 0 0 0 0 0 Percu ssive SFX QS1600 Tone name Woodblock Taiko Drum Melodic Tom Synth Drum Reverse Cymbol Guitar Fret Noise Breath Noise Seashore Bird Tweet Telephone Ring Helicopter Applause Gunshot PC# : Program Number CC0 : Value of control "0"( Variation Number ) 27/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 2) Percussion Map( Channel 10 PC#1 ) Note 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 STANDARD Set Kick Drum 2/Jazz BD2 Kick Drum 1/Jazz BD1 Side Stick Snare Drum 1 Hand Clap Snare Drum 2 Low Tom 2 Closed Hi-hat [EXC1] Low Tom 1 Pedai Hi-hat [EXC1] Mid Tom 2 Open Hi-hat [EXC1] Mid Tom 1 High Tom 2 Cymbal 1 High Tom 1 Ride Cymbal 1 Chinese Cymbal Ride Bell Tambourine Splash Cymbal Cowbell Crash Cymbal 2 Vibra - slap Ride Cymbal 2 High Bongo Low Bongo Mute High Conga Open High Conga Low Conga High Timbale Low Conga 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 High Agogo Low Agogo Cabasa Maracas Short Hi Whistle [EXC2] Long Low Whistle [EXC2] Short Guiro [EXC3] Long Guiro [EXC3] Claves High Wood Block Low Wood Block Mute Cuica [EXC4] Open Cuica [EXC4] Mute Triangle [EXC5] Open Triangle [EXC5] - 28/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 MIDI Implementation Chart Function Transmitted Recognized default X 1~16 Channel Changed X 1~16 Each Mode Default X Mode 1* X 21 ~108 Basic Note number Remarks Velocity ON X O Velocity OFF X O After Touch Key's X X After Touch Chn's X X X O 0,32 X X Bank Selection 1 X O Modulation 6,38 X O Data entry(100,101 Only) 7 X O Volume 10 X O Panpot 11 X O Expression 64 X O Sustain 66 X X Soft 67 X X Sustanuto 100,101 X O RPN LSB MSB(00,00 Only) 120 X O All sound off 121 X O Reset all controller All note off Pitch Bender Control Change Program System Common 123 X O Change X 0-127 Exclusive X X Song position X X Song selection X X Tune X X Mode 1* : Omni ON / Poly ON 29/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 Chapter 9 Outline Dimensions and weight Outline Dimension Weight : 0.09g/EA 30/32 HWA SOUND SOURCE Advanced ADPCM SOUND DSP for Mobile QS1600 Chapter 10 Marking - Part_number =QS1600 - Datecode = Year/Numbers of week ex) Production day = 2003/1/07 QS1600 "0302" 31/32 History of Revision. Date 03-02-27 03-04-02 Change of Contents Add the Chapter 10,11 Revision Number Ver 1.0 Ver 1.1 32/32