AN706-00040-2v0-E FM3 Family 32-BIT MICROCONTROLLER FM3 family Application Note Simple AV System Board User Manual ARM and Cortex-M3 are t
AN706-00040-2v0-E 9 Figure 3 ICE Figure 4 USB memory Figure 5 USB cable
AN706-00040-2v0-E 10 3.2 Equipment Other than System Item Required A list of equipment other than system items required is given in Table 2, and e
AN706-00040-2v0-E 11 3.3 Board Appearance A photograph of the external appearance of the simple AV system board is shown in Figure 6
AN706-00040-2v0-E 12 3.4 Power Supply Method USB bus power of the PC is used as the power supply for the simple AV system board. Connect the Type
AN706-00040-2v0-E 13 4 PROGRAM EXECUTION METHOD 4.1 Program Execution Using Debugger 4.1.1 Activation of KEIL Integrated Development Environment
AN706-00040-2v0-E 14 In the case of MP3, set “MUSIC_MP3” for “Define” of the “C/C++” and “Asm” tabs of the option screen; in the case of AAC, set “
AN706-00040-2v0-E 15 (2) Program Build プログラムをリビルドプログラムをビルドBuilds program.Rebuilds program.プログラムをリビルドプログラムをビルドBuilds program.Rebuilds program. Figu
AN706-00040-2v0-E 16 4.1.2 Start of Sample Program Export and Debug (1) ICE Connection The equipment connection diagram for exporting the program
AN706-00040-2v0-E 17 (3) Debug Activation Click the location shown in Figure 14 and activate the debugger. Debugging can then be started. Starts d
AN706-00040-2v0-E 18 4.1.3 Program Execution Using Debugger When the debugger is activated, the screen appears as shown in Figure 15.
AN706-00040-2v0-E 1 All Rights Reserved. The contents of this document are subject to change without notice. Customers are advised to consult with F
AN706-00040-2v0-E 19 5 SUPPORTED MEDIA 5.1 Formats that can be Used for USB Memory The USB memory formats that can be used by the file system are
AN706-00040-2v0-E 20 5.3 Image Data The items of image data supported by the sample program are given in Table 6. If using a JPEG encoder/decoder
AN706-00040-2v0-E 21 6 OPERATION METHOD Select your favorite music!Touch Operation Area Speaker ConnectorPower SwitchUSB Connector for Power Supp
AN706-00040-2v0-E 22 (2) Song Selection Operation Pressing the song selection next switch selects audio file in the following order. music1.mp3 =&
AN706-00040-2v0-E 23 (3) Play Start Operation While music is not yet played, the selected music can be played by the following operation.
AN706-00040-2v0-E 24 Figure 20 LCD Display While Playing
AN706-00040-2v0-E 25 (4) Play Stop Operation While music is playing, it can be stopped by the following operation. ① Press the Play/Stop switch.
AN706-00040-2v0-E 26 Select your favorite music! Figure 23 Thumbnail Display
AN706-00040-2v0-E 27 6.2 AAC File Play (1) From Preparation to Power On Audio data (music1.aac to music5.aac) is contained in the root directory
AN706-00040-2v0-E 28 (3) Play Start Operation While music is being played, the selected music can be played by the following operatio
AN706-00040-2v0-E 2 Revision History Rev Date Remark 1.0 Aug.23,2011 First Edition 2.0 Feb.06,2012 Correction format Correction lineup of FM3 Correc
AN706-00040-2v0-E 29 7 SPECIFICATIONS 7.1 Hardware 7.1.1 General Specifications General specifications of the simple AV system board are given i
AN706-00040-2v0-E 30 7.1.2 Hardware Block Diagram The hardware block diagram is shown in Figure 27. MB9BF506R5VMicrocontroller Board3.3V3.3VLCD Bo
AN706-00040-2v0-E 31 7.1.3 Main Components A list of main components is given in Figure 8. Figure 8 Main Components of Simple AV System Board No.
AN706-00040-2v0-E 32 7.1.4 Microcontroller 7.1.4.1 Pin Connection A photograph of the external appearance of the microcontroller is shown in Figu
AN706-00040-2v0-E 33 Pin No. Pin Name (Use Function) Connection Destination I/O Remarks 15 MDATA07 LCD controller (D7) I/O 16 (Not used) ― ― 17 (N
AN706-00040-2v0-E 34 Pin No. Pin Name (Use Function) Connection Destination I/O Remarks 46 (Not used) ― ― 47 (Not used) ― ― 48 (Not used) ― ― 49
AN706-00040-2v0-E 35 Pin No. Pin Name (Use Function) Connection Destination I/O Remarks 77 MDATA12 LCD controller (D12) I/O 78 MDATA13 LCD controll
AN706-00040-2v0-E 36 Pin No. Pin Name (Use Function) Connection Destination I/O Remarks 107 (Not used) ― ― 108 (Not used) ― ― 109 (Not used) ― ―
AN706-00040-2v0-E 37 7.1.4.2 Microcontroller Mode Switch and Function Switch The microcontroller has the following two modes, which can b
AN706-00040-2v0-E 38 (2) User Mode [Overview] Mode that activates the internal ROM (flash) of the microcontroller mounted in the microc
AN706-00040-2v0-E 3 Table of Contents Revision History ...
AN706-00040-2v0-E 39 7.1.4.3 USB Interface Function Switching The microcontroller has the following two USB interface functions, which can be swit
AN706-00040-2v0-E 40 7.1.5 DA Converter The LCD board is equipped with a DA converter for I2S conversion. The external appearance and
AN706-00040-2v0-E 41 7.1.6.2 Key Input Switch The LCD board is equipped with a power switch. The external appearance and connection diagram of the
AN706-00040-2v0-E 42 7.1.7 Indicator 7.1.7.1 LCD Module with Touch Panel The LCD board is equipped with an LCD module with touch panel
AN706-00040-2v0-E 43 7.1.7.2 Power LED The microcontroller board is equipped with a power LED that indicates power supply status. The
AN706-00040-2v0-E 44 7.1.7.3 Selection Indicator LED The microcontroller board is equipped with a selection indicator LED that indicate
AN706-00040-2v0-E 45 7.1.8 External Interface 7.1.8.1 Power Supply Interface The LCD board is equipped with a USB connector that functi
AN706-00040-2v0-E 46 7.1.8.3 USB Interface The microcontroller board is equipped with a USB memory connector that functions as a USB interface. Th
AN706-00040-2v0-E 47 7.1.8.4 JTAG Interface The microcontroller board is equipped with a JTAG interface connector for software debuggin
AN706-00040-2v0-E 48 7.1.8.5 ETM Interface The microcontroller board is equipped with an ETM interface connector for software debugging
AN706-00040-2v0-E 4 7.1.6.1 Power switch ... 40 7.1.6.2 Ke
AN706-00040-2v0-E 49 7.2 Software 7.2.1 Software Block Diagram The software block diagram is shown in Figure 45. ApplicationTarget BoardApplicati
AN706-00040-2v0-E 50 7.2.2 Software Library (1) File System Name Multi Device File Access Library V03L01 (object for small MCU, Evaluation)
AN706-00040-2v0-E 51 7.2.3 System Specifications 7.2.3.1 Microcontroller System Specifications Microcontroller system specifications are given in
AN706-00040-2v0-E 52 7.2.3.2 Memory Map The memory maps for ROM (flash) and RAM are shown in Figure 46. Program0x0001C3E8Vacancy0x0007FFFFROM(FLAS
AN706-00040-2v0-E 53 7.2.3.3 MFS System Specifications MFS system specifications are given in Table 17. Table 17 MFS System Specifications Channe
AN706-00040-2v0-E 54 7.2.3.5 Interrupt System Specifications Interrupt system specifications are given in Table 19. Table 19 Interrupt System Spe
AN706-00040-2v0-E 55 7.2.4 API Specifications This chapter gives I2S driver API used for audio playback processing in addition to API used for app
AN706-00040-2v0-E 56 Function void AUDIO_PlayTask(void) Overview Audio play processing main function Invoked during main loop (see “7.2.8.1 Main Pr
AN706-00040-2v0-E 57 Function uint8_t IMAGE_Show( const uint8_t *FileName, uint8_t AreaID, uint16_t Color) Overview Image display
AN706-00040-2v0-E 58 (*) LCD display area corresponds as follows. Area1 Area2 Area3Area4 Area5 Area6Area7 Area8 Area9 Figure 47 LCD Display Area
AN706-00040-2v0-E 5 7.2.7.2 AAC ... 78 7.2.8
AN706-00040-2v0-E 59 7.2.4.3 LED Control API Function void LED_Init (void) Overview LED control processing initialization function Invoked before
AN706-00040-2v0-E 60 7.2.4.4 Switch Detection API Function void SW_Init (void) Overview Switch detection processing initialization function Invoke
AN706-00040-2v0-E 61 7.2.4.5 Timer Control Driver API Function void TIMER_Init(void) Overview Initialization function for timer control driver Inv
AN706-00040-2v0-E 62 7.2.4.6 Touch Panel Control Driver API Function STATUS TOUCH_Init(void) Overview Initialization function for touch panel cont
AN706-00040-2v0-E 63 7.2.4.7 I2S Driver API Function void I2S_Init (void) Overview Initializes I2S driver. Sets MFS initial settings (CSIO setting
AN706-00040-2v0-E 64 7.2.5 Operation Limit The following limitations apply to operation of the sample program used by the simple AV system. ◆Conc
AN706-00040-2v0-E 65 7.2.6 Operation Flow of Entire Application 7.2.6.1 MP3 (1) The application operation flow with audio data playback stoppe
AN706-00040-2v0-E 66 Touch panel controldriver moduleUSB-MSC device connection/disconnection judgementWas media connected?Read all JPEG files and di
AN706-00040-2v0-E 67 (2) The application operation flow with audio data playback in progress is as follows. ① USB MSC device connection/discon
AN706-00040-2v0-E 68 Touch panel controldriver moduleTimer interrupt(ch.2)(1ms)Area 1 Area 2 Area 3Area 4 Area 5 Area 6Area 7 Area 8 Area 9USB-MSC d
AN706-00040-2v0-E 6 Target products This application note is described about below products; (TYPE0) Series Product Number (not included Package su
AN706-00040-2v0-E 69 7.2.6.2 AAC (1) The application operation flow with audio data playback stopped is as follows. ① USB MSC device connecti
AN706-00040-2v0-E 70 (2) The application operation flow with audio data playback in progress is as follows. ① USB MSC device connection/discon
AN706-00040-2v0-E 71 NoYesmusic1.aacmusic2.aacmusic3.aacmusic4.aacmusic5.aacMedia filesUSB-MSC device connection/disconnection judgementWas media di
AN706-00040-2v0-E 72 7.2.7 Application State Transition 7.2.7.1 MP3 In the case of MP3, the simple AV system consists of the six states shown in
AN706-00040-2v0-E 73 ② Initialization State When software internal initialization processing is completed and recognition media (USB memor
AN706-00040-2v0-E 74 ③ Audio Data Selection Image Display Processing State After the USB memory is recognized, the system is in audio data selecti
AN706-00040-2v0-E 75 ④ Audio Data Playback Stop State After display processing is completed for the LCD in audio data selection image display proc
AN706-00040-2v0-E 76 ⑤ Audio Data Image Display Processing State When the play/stop switch is pressed down in audio data playback stop state or is
AN706-00040-2v0-E 77 ⑥ Audio Data Playback State After display processing is completed for the LCD in audio data image display processin
AN706-00040-2v0-E 78 7.2.7.2 AAC In the case of AAC, the simple AV system consists of the four states shown in Figure 55. ④Audio dataplayback stat
AN706-00040-2v0-E 7 1 INTRODUCTION This user manual contains specifications and information on how to use the simple AV system board. 2 OVERVIEW
AN706-00040-2v0-E 79 ② Initialization State When software internal initialization processing is completed and recognition media (USB memory
AN706-00040-2v0-E 80 ③ Audio Data Playback Stop State After the USB memory is recognized, the system is in audio data playback stop state. [Indivi
AN706-00040-2v0-E 81 ④ Audio Data Playback State If the play/stop button is pressed down in the audio data playback state, if the target AAC
AN706-00040-2v0-E 82 7.2.8 Operation Flow The meanings of the function call points in the flowchart are shown in Figure 56. Function call describe
AN706-00040-2v0-E 83 7.2.8.2 USB Task Processing Function After detecting USB device connection/disconnection, the processing shown in Figure 58 i
AN706-00040-2v0-E 84 7.2.8.3 File System (MDF) Task Processing Function File System (MDF) processing is executed. (av_demoapp_MDF_task) After rea
AN706-00040-2v0-E 85 7.2.8.4 HMI Task Processing Function HMI processing is executed. (av_demoapp_HMI_task) LCD display, switch detection
AN706-00040-2v0-E 86 1USB device has beenremoved and HMI status is otherthan nitializationMP3 formatSet initialization for HMI status.FinishNoYesC
AN706-00040-2v0-E 87 7.2.8.5 AUDIO Play Task Processing Function AUDIO Play processing is executed. (AUDIO_PlayTask) Audio data read from the USB
AN706-00040-2v0-E 88 Audio stage judgment2OpenSet initialization for audio stage.1Set library initialization for audio stage.Open audio file.(audio
AN706-00040-2v0-E 8 3 PREPARATIONS 3.1 System Items A list of system items of the simple AV system board is given in Table 1, a photograph the ex
AN706-00040-2v0-E 89 MP3 format3File readRead audio file.(audio_decode_read)Set initialization for audio stage.1Set decode for audio stage.Audio
AN706-00040-2v0-E 90 Set false for audio play processing loopcondition.4SamplingSample decode data.(audio_decode_upsample)1Set stop for audio stage.
AN706-00040-2v0-E 91 7.2.8.6 Switch Press Detection Processing Function Switch press detection processing is executed. (av_demoapp_sw_detect) Play
AN706-00040-2v0-E 92 7.2.8.7 Processing Function After Switch Press Detection Processing after switch press detection is executed. (av_demoapp_sw_
AN706-00040-2v0-E 93 7.2.8.8 Touch Panel Touch Detection Processing Function Touch panel touch detection processing is executed. (av_demoapp_tp_de
AN706-00040-2v0-E 94 7.2.8.9 Processing After Touch Panel Touch Detection Function Processing after touch panel touch detection is executed. (av_d
AN706-00040-2v0-E 95 7.2.9 File Configuration The following is a software development environment file configuration provided as a samp
AN706-00040-2v0-E 96 +---config :User setting file directory +---usbh_config.c :User setting source file for USB host driver +
AN706-00040-2v0-E 97 +---usb :USB host driver directory +---usbh_api.c :USB host driver API source file +---usbh_atch.
AN706-00040-2v0-E 98 +---include :Include file directory +---audio.h :Audio play processing header file +---avdemoapp.h
Comments to this Manuals