STM32_PC-Audio-player

所属分类:单片机开发
开发工具:C/C++
文件大小:1625KB
下载次数:43
上传日期:2012-03-22 20:35:01
上 传 者May1
说明:  神舟IV号STM32_USB_MUSIC实现PC音频播放器
(PC Audio player with stm32_usb_music)

文件列表:
Libraries\CMSIS\CM3\CoreSupport\core_cm3.c (17273, 2010-07-05)
Libraries\CMSIS\CM3\CoreSupport\core_cm3.h (85714, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\Release_Notes_for_STM32F10x_CMSIS.html (19836, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_cl.s (15761, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_hd.s (15498, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld.s (12371, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_ld_vl.s (13651, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md.s (12760, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_md_vl.s (14068, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\arm\startup_stm32f10x_xl.s (15950, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_cl.s (12943, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_hd.s (13042, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld.s (9698, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_ld_vl.s (10445, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md.s (10154, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_md_vl.s (10941, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\gcc_ride7\startup_stm32f10x_xl.s (13143, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_cl.s (16629, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_hd.s (16231, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld.s (12653, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_ld_vl.s (12952, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md.s (12914, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_md_vl.s (13603, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\iar\startup_stm32f10x_xl.s (16630, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_cl.s (12522, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_hd.s (13193, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_ld.s (9746, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_ld_vl.s (10195, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_md.s (10195, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_md_vl.s (10660, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\startup\TrueSTUDIO\startup_stm32f10x_xl.s (13239, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h (621135, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.c (31997, 2010-07-05)
Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x\system_stm32f10x.h (2068, 2010-07-05)
Libraries\CMSIS\CMSIS debug support.htm (9310, 2010-07-05)
Libraries\CMSIS\CMSIS_changes.htm (12531, 2010-07-05)
Libraries\CMSIS\Documentation\CMSIS_Core.htm (57004, 2010-07-05)
Libraries\CMSIS\License.doc (39936, 2010-07-05)
Libraries\STM32F10x_StdPeriph_Driver\inc\misc.h (8893, 2010-07-05)
Libraries\STM32F10x_StdPeriph_Driver\inc\stm32f10x_adc.h (21601, 2010-07-05)
... ...

/******************** (C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : readme.txt * Author : MCD Application Team * Version : V3.2.1 * Date : 07/05/2010 * Description : Description of the USB Audio_Streaming Demo. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. *******************************************************************************/ Example description =================== The USB-FS-Device Audio Streaming demo gives examples of how to use the STM32F10x5/7 USB-OTG peripheral in Device mode to communicate with the PC host in the isochronous transfer mode. It provides a demo of the correct method for configuring an isochronous endpoint, receiving or transmitting data from/to the host. This demo provides possibilities to configure high audio quality streaming and low CPU charge using: - The USB-OTG peripheral with its dedicated RAM. - The audio-class I2S peripheral and the available dedicated PLLs. - The DMA for Audio transfer from USB Memory to the I2S peripheral. NOTE: - LED2 and LED3 of the STM3210C-EVAL evaluation board are configured to toggle periodically in order to check each time that firmware is still running correctly. More details about this Demo implementation is given in the User manual "UM0424 STM32F10xxx USB development kit", available for download from the ST microcontrollers website: www.st.com/stm32 Directory contents ================== + \inc: contains the Demo firmware header files + \EWARMv5: contains pre-configured projects for EWARM5 toolchain + \RIDE: contains pre-configured projects for RIDE toolchain + \MDK-ARM: contains pre-configured projects for MDK-ARM toolchain + \HiTOP: contains pre-configured projects for HiTOP toolchain + \TrueSTUDIO: contains pre-configured projects for TrueSTUDIO toolchain + \src: contains the Demo firmware source files Hardware environment ==================== This example runs on STMicroelectronics STM3210C-EVAL evaluation board and can be easily tailored to any other hardware. Basically the demo provides the configuration with 25 MHz wich allows getting high accuracy on both I2S and USB clock for only some audio frequencies. For higher audio quality (in combination with an acceptable accuracy on the USB clock) on all audio frequencies, a specific external clock source may be used instead of the usual 25MHz crystal. Thus a 14.7456MHz crystal can be used to obtain this quality. For each Audio output frequency (96KHz, 48KHz, ... ,8KHz) the PLL multipliers and dividers values shall be correctly configured in order to have optimum accuracy on both I2S clock and USB clock. This demo provides the optimum configuration for the following audio frequencies (no need for modifying the PLL configuration for these audio frequencies): When using 25 MHz crystal the PLLs configuration is optimum for these frequencies: - 16 KHz - 8 KHz When using 14.7456 MHz crystal the PLLs configuration is optimum for these frequencies: - 96 KHz - 48 KHz - 32 KHz - 16 KHz - 8 KHz To select the audio frequency, uncomment the relative define in usb_conf.h file. For other frequencies, PLL1MUL, PLL2MUL, PLL3MUL, PREDIV1 and PREDIV2 values have to be re-ajusted to get the optimum value on the I2S and USB clocks. NOTE: The audio frequencies leading to non integer number of data (44.1KHz, 22.05KHz, 11.025KHz...) will not allow an optimum audio quality since one data will be lost every two frame. - STM3210C-EVAL Set-up - Jumper JP17 (I2C_SCK) should be connected. - Jumper JP10 (I2S_MCK) should be connected in position 1-2. How to use it ============= + MDK-ARM - Open the AudioStreaming.uvproj project - In the build toolbar select the project config: - STM3210C-EVAL-25MHz: to configure the project for boards with 25MHz external clock. - STM3210C-EVAL-14MHz: to configure the project for boards with 14.7456MHz external clock. - Rebuild all files: Project->Rebuild all target files - Load project image: Debug->Start/Stop Debug Session - Run program: Debug->Run (F5) + EWARM5 - Open the AudioStreaming.eww workspace. - In the workspace toolbar select the project config: - STM3210C-EVAL-25MHz: to configure the project for boards with 25MHz external clock. - STM3210C-EVAL-14MHz: to configure the project for boards with 14.7456MHz external clock. - Rebuild all files: Project->Rebuild all - Load project image: Project->Debug - Run program: Debug->Go(F5) + RIDE - Open the AudioStreaming.rprj project. - In the configuration toolbar(Project->properties) select the project config: - STM3210C-EVAL-25MHz: to configure the project for boards with 25MHz external clock. - STM3210C-EVAL-14MHz: to configure the project for boards with 14.7456MHz external clock. - Rebuild all files: Project->build project - Load project image: Debug->start(ctrl+D) - Run program: Debug->Run(ctrl+F9) + HiTOP - Open the HiTOP toolchain, a "using projects in HiTOP" window appears. - Select open an existing project. - Browse to open the AudioStreaming.htp: - under AudioStreaming_25MHzto configure the project for boards with 25MHz external clock. - under AudioStreaming_14MHz: to configure the project for boards with 14.7456MHz external clock. - "Download application" window is displayed, click "cancel". - Rebuild all files: Project->Rebuild all - Click on ok in the "download project" window. - Run program: Debug->Go(F5). + TrueSTUDIO - Open the TrueSTUDIO toolchain. - Click on File->Switch Workspace->Other and browse to TrueSTUDIO workspace directory. - Click on File->Import, select General->'Existing Projects into Workspace' and then click "Next". - Browse to the TrueSTUDIO workspace directory and select the project: - STM32F10C-EVAL-25MHz: to load the project for boards with 25MHz external clock. - STM32F10C-EVAL-14MHz: to load the project for boards with 14.7456MHz external clock. - Rebuild all project files: Select the project in the "Project explorer" window then click on Project->build project menu. - Run program: Select the project in the "Project explorer" window then click Run->Debug (F11) NOTE: - Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes. - Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx microcontrollers where the Flash memory density ranges between *** and 128 Kbytes. - High-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 256 and 512 Kbytes. - XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the Flash memory density ranges between 512 and 1024 Kbytes. - Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers. ******************* (C) COPYRIGHT 2010 STMicroelectronics *****END OF FILE******

近期下载者

相关文件


收藏者