This application note explains how to implement an audio player which is designed to play AAC/WMA/MP3 data written to a USB memory or SD memory card, using BU9458KV in addition to a normal CD audio play set. BU9458KV incorporates the following three operation modes: Standalone Mode (hereinafter referred to as MODE1) which enables standalone operations such as “play”...
2009/05/28 BU9458KV Application Note Rev. 0.02 III. Terminal Port Layout III.1 Terminal Port Layout Diagram Figure III.1 shows the BU9458KV terminal port layout. LED_ERROR/ AVDDC TEST12 LED_PLAY/ TEST9 TEST13 LED_PSD/ TEST8 TEST14 LED_PUSB/ TEST7 TEST15 LED_ACCESS/ TEST6 LRCK/SPDIF LED_RANDOM/ DVDD_M2...
Page 8
2009/05/28 BU9458KV Application Note Rev. 0.02 C14 4.7/50V R13 2.2K DT C114T UA USB XM7A-0442 R14 2.2k high side switch 4.7/50V LINE_JACK BD2051AFJ EN 4 T P9 IN 3 VBUS DTC114T UA IN 2 GND 1 DT A124EUA Analog audio input type 3.3V...
The circuit parameters introduced to below is not taking into consideration the environment in customer's systems or set ‘s board. Therefore, ROHM is not guaranteed this contents in any circuits. Please check the optimal circuit parameter in customer's actual systems or products with the oscillator manufacturer The circuit parameters are as a result of the test performed by the oscillator manufacturer under specific conditions.
BU9458KV Application Note Rev. 0.02 V. Sequence Control This chapter sets an example of sequence control techniques required when using BU9458KV. Details differ depending on the application. This means that the sequence introduced in this chapter is not always the most effective technique.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.1.2 State Transition Diagram The following describes how the state transits from operation start. Power ON sequence Recognize memory device Memory search Error Play Change device Pause Figure V.1.2 MODE 1 State Transition Diagram 1.
Page 15
2009/05/28 BU9458KV Application Note Rev. 0.02 15. When the currently selected memory device is removed in the “play” state, or when an error occurs on memory communications, the LSI is put in error. 16. When the selected memory device is removed in the “pause” state, the LSI is put in error.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2 MODE2 MODE2 is an auto slave mode which runs through command operations, equivalent to KEY input in MODE1, from the master micro controller using the built-in I2C interface. V.2.1 MODE2 entire sequence Figure V.2.1 shows an example of the entire operation flow control when using the LSI in MODE2.
2009/05/28 BU9458KV Application Note Rev. 0.02 5. Start playing 6. Read status/wait/receive operation command After the LSI starts playing, read the status such as information on play time. The LSI automatically waits to receive the set operation commands. V.2.2 Power ON sequence Control the power ON sequence in the same manner as in MODE1.(See V.1.1)
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.3.4 USB memory mount After detecting insertion of USB memory, the LSI recognizes whether it is a connectable USB memory. The LSI recognizes USB memory for 30 seconds at maximum. After 30 seconds have passed, an error occurs.
2009/05/28 BU9458KV Application Note Rev. 0.02 V. 2.3.9 Memory recognition status The status when the LSI recognizes memory can be read using the MODE2 status resister map “STATUS2”. Figure V.2.3. shows the status timing chart at memory recognition. Figure V.2.4 shows the status timing chart at memory dismount.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.4 Initial setting Upon completion of memory recognition, perform initial setting including search of TOC (Table of Contents: total number of folders/files within memory), volume and audio output before the LSI starts playing a AAC/WMA/MP3 file. Figure V.2.5 shows the initial setting operation flow.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.4.1 Perform TOC Analysis The LSI searches the total number of folders/files within the selected memory. Send the SEL_TOC command. If you do not need TOC analysis, you can omit it. Figure V.2.6 shows the TOC analysis operation flow.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.4.2 Set volume When the LSI can change the volume using the SEL_VOL terminal port, set the volume initial value. The LSI allows you to change the volume by 32 steps from 0x00 to 0x1F. Set the volume at the second byte of the SET_VOL command.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.5 Wait/Receive Operation Command After recognizing the memory device and completing the initial setting, the LSI is put in the state to wait for operation commands. The master micro controller receives operation input from the configured set. Send the received command to the LSI.
Page 24
2009/05/28 BU9458KV Application Note Rev. 0.02 Reference Status when obtaining Tag The following shows a status timing chart when the LSI is performing the Tag analysis. SEARCH PDEVUSB Now analyzing ID3 MCHNG ID3READY Start memory search Complete Tag analysis Figure Tag Analysis Timing Chart The timing chart in the figure shows waveforms while sending a command to select tune, such as FF or FB, in the stop state when selecting the USB memory.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.6 Start Playing After receiving the operation command and obtaining the file name and the Tag information of the selected AAC/WMA/MP3 file, the LSI starts playing the file. Figure V.2.8 shows the operation flow at start of play.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.8 Resume Play Method By sending the resume information obtained from the READ_RESUME_INFO status to the LSI using the SET_RESUME_INFO command, automatically searches AAC/WMA/MP3 file written READ_RESUME_INFO status within the memory device and starts playing the file from the time of read READ_RESUME_INFO status.
Page 27
2009/05/28 BU9458KV Application Note Rev. 0.02 1. Power ON sequence 2. Check memory device 3. Complete TOC/initial setting 4. Resume play initial setting 5. Send SET_RESUME_INFO Starts play of first tune 6. Is RES_ERR = 0? due to error 7. Is MCHNG = 1? 8.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.8.2 Power ON sequence The operations from power ON to TOC/initial setting during execution of resume play have the completely same flow as for normal play. V.2.8.3 Check memory device The LSI checks whether the inserted and recognized memory device is the same one when obtaining the resume data.
2009/05/28 BU9458KV Application Note Rev. 0.02 (2) When the folder hierarchy does not match (3) When the FAT entry index does not match When searching a resume file, a AAC/WMA/MP3 file play start status is output to the STATUS3: MCHNG status or MCHNG terminal port.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.9 Fast Forward(Backward) Play Figure V.2.11 shows the Fast Forward(Backward) Play operation flow. 1.normal playing 2.play speed setting 3.attenuation level setting 4.fast forward play start 5.fast forward playing 6.fast forward play stop 7.normal playing Figure V.2.11 Fast Forward(Backward) Play operation flow...
2009/05/28 BU9458KV Application Note Rev. 0.02 V.2.9.2 Fast Forward(Backward) Play attenuation setting This command set up the attenuation level under fast forward and backward playing. A attenuation level serves as (-6dB X [3rd byte]). A setup can be specified from 0x00 to 0x10.As for an initial value, 0x02=-12dB is set up. It becomes equivalent to MUTE by setup of 0x10.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.3 MODE3 MODE3 is a manual slave mode in which the LSI sends the position of AAC/WMA/MP3 file within the memory device to the master micro controller using the I2C serial interface, and then the master micro controller directly specifies the position of AAC/WMA/MP3 file to be played within the memory device to the LSI based on the received information.
2009/05/28 BU9458KV Application Note Rev. 0.02 7. Start playing Upon completion of preparation of play, the LSI starts playing the AAC/WMA/MP3 file specified by the PLAY_DIRECT command. 8. Read status After starting playing the AAC/WMA/MP3 file, read the play time information status at an interval of 100 ms or so to obtain the play time.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.3.4 Obtain information within folder The LSI obtains the folder/file information contained in the folder. This information also contains the access data to the folders/files written to the memory device, and folder/file names. For details on folder/file information, see the functional specifications.
2009/05/28 BU9458KV Application Note Rev. 0.02 V.3.4.1 Specify folder to be analyzed Send a SET_DIREST command using the access data of the folder to be analyzed as an argument and specify the folder to be analyzed. At power ON, specify the root folder. The access data of the root folder must be “0”.
2009/05/28 BU9458KV Application Note Rev. 0.02 ABORT command 1st Byte 2nd Byte ABORT 0x50 0x0C V.3.5 Specify AAC/WMA/MP3 file to be played After analysis within the folder has been completed, the master micro controller determines the AAC/WMA/MP3 file to be played based on the file information and sends the access data of the AAC/WMA/MP3 file to be played, using the SET_DIRECT command.
2009/05/28 BU9458KV Application Note Rev. 0.02 READ_ID3_ARTIST command 1st Byte 2nd Byte READ_ID3_ 64 Byte Read ARTIST 0x5F 0x05 READ_ID3_ALBUM command 1st Byte 2nd Byte READ_ID3_ 64 Byte Read ALBUM 0x5F 0x06 To interrupt Tag analysis using the ABORT command and then execute Tag analysis again, send the STOP command once and then send GET_ID3 command again.
Page 38
2009/05/28 BU9458KV Application Note Rev. 0.02 Reference When specifying the number of folders/files to be obtained You can specify the number of folders or files to be analyzed, using the SET_NUMBER command. Specify the access data of the obtained folder using the SET_DIRECT command. Before sending the GET_DIRECT command, specify the number of folders/files to be obtained using the SET_NUMBER command.
2009/05/28 BU9458KV Application Note Rev. 0.02 Ⅴ.4 File Read Function Reading a specified file data is possible from USB memory. Host CPU SW can be updated by this function. Only a file that exists in root folder and has a file name of 8.3 forms corresponds.
2009/05/28 BU9458KV Application Note Rev. 0.02 SET_UPLOAD_FILE2 command 1st Byte 2nd Byte NAME[6:7] SET_UPLOAD_FILE2 EXTENSION[0:2] 0x51 0x52 6 Byte Write Bury it with 0x20 when the file name doesn't come up to eight bytes. Bury it with 0x00 when the extension doesn't come up to three bytes.
2009/05/28 BU9458KV Application Note Rev. 0.02 Ⅴ.4.1.6 Termination End the File Read function by the "UPLOAD_END" command when completed reading of the data of the specified file. UPLOAD_END command 1st Byte 2nd Byte UPLOAD_END 0x51 0x53 Ⅴ.4.1.7 Reset Reset the system when you end File Read.
2009/05/28 BU9458KV Application Note Rev. 0.02 VI. Revision History Revision No. Date Revised by Revising points Target 0.01 2009/02/02 H.K. Newly created Target 0.02 2009/05/28 H.K. The explanation addition of resume and fast forward playing and fast backward playing. File Read functional explanation addition.
Need help?
Do you have a question about the BU9458KV and is the answer not in the manual?
Questions and answers