Cypress CE225786 Скачать руководство пользователя страница 4

 

PSoC 6 MCU: USB Audio Recorder 

www.cypress.com

 

Document Number: 002-25786 Rev. ** 

 

usb_comm.c/h 

files contain all macros and functions related to the USBFS and USB Audio Device Class.  

 

uart_debug.c/h 

and 

stdio_user.c/h

 files are used for retargeting I/O functions such as printf via UART to a terminal emulation 

program. 

 

FreeRTOSConfig.h 

contains  the  FreeRTOS  settings  and  configuration.  Non-default  settings  are  marked  with  inline 

comments. For details of FreeRTOS configuration options, see the 

FreeRTOS customization 

webpage. 

Resources and Settings 

Table  1

  lists  the  ModusToolbox  resources  used  in  this  example,  and  how  they  are  used  in  the  design.  For  pin  usage  and 

configuration, open the 

Pins

 tab of the 

design.modus

 file. 

Table 1: ModusToolbox Resources 

Resource  

Alias 

Purpose 

PDM/PCM 

KIT_PDM 

Connects to the digital microphones. 

UART (SCB) 

KIT_UART 

Debug interface. 

USBFS 

USBFS 

Implements the Audio Device Class. 

DMA DataWire 

DMA_PCM 

Transfers data from PDM/PCM FIFO 
to SRAM. 

 

Figure 5

 shows the configuration settings for KIT_PDM. 

Figure 4. KIT_PDM Configuration 

 

 

Figure 5 shows the configuration settings for the USBFS block. To visualize the USBFS descriptor, click in the 

Launch USB 

Configuration

 button from Figure 5. You can also refer to the 

cycfg_usbdev.h

 file in the Generated Source folder.  

Содержание CE225786

Страница 1: ...e PDM data line One microphone samples in the falling edge and the other in the rising edge This code example uses FreeRTOS Visit the FreeRTOS website for documentation and API references of FreeRTOS...

Страница 2: ...red to the USB data endpoint buffer Figure 2 shows the overall transfers performed by the application Figure 2 Overall Transfers PDM PCM RX FIFO SRAM PCM Buffer USB Data Endpoint Buffer DMA Transfers...

Страница 3: ...er an entire audio frame per trigger It triggers when there is enough data in the PDM PCM FIFO Once it completes a transfer it disables itself it is enabled again only when the Audio IN Endpoint Callb...

Страница 4: ...Table 1 lists the ModusToolbox resources used in this example and how they are used in the design For pin usage and configuration open the Pins tab of the design modus file Table 1 ModusToolbox Resou...

Страница 5: ...PSoC 6 MCU USB Audio Recorder www cypress com Document Number 002 25786 Rev 5 Figure 5 USBFS Configuration...

Страница 6: ...hows the configuration settings for DMA_PCM Figure 6 DMA_PCM Configuration Figure 8 and Figure 8 show the platform system clock configuration Note that the FLL and PLL are used in this application The...

Страница 7: ...ings Figure 9 High Frequency Clocks Configuration KIT_UART uses the default configuration for UART The following middleware libraries are used in this project FreeRTOS v10 0 1 Retarget I O USB Device...

Страница 8: ...PSoC 6 MCU devices and how to build your first PSoC project AN215656 PSoC 6 MCU Dual Core CPU System Design Describes the dual CPU architecture in the PSoC 6 MCU and shows how to build a simple dual C...

Страница 9: ...com Document Number 002 25786 Rev 9 Document History Document Title CE225786 PSoC 6 MCU USB Audio Recorder Document Number 002 25786 Revision ECN Orig of Change Submission Date Description of Change...

Страница 10: ...of the Software is prohibited TO THE EXTENT PERMITTED BY APPLICABLE LAW CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS DOCUMENT OR ANY SOFTWARE OR ACCOMPANYING HARDWARE I...

Отзывы: