Page 1
Overview This project shows how PSoC 6 MCU can be used to record audio data, store it and play it back. It uses a digital microphone with the pulse-density modulation (PDM) to pulse-code modulation (PCM) converter hardware block. All the audio data captured by the microphone is stored to an external flash memory.
Connect the Pioneer Kit to your PC using the provided USB cable through the USB connector (J10). Build the project and program it into the PSoC 6 MCU device. Choose Debug > Program. When building the project, DO NOT replace the FreeRTOSConfig.h file. For more information on device programming, see PSoC Creator Help. Flash for both CPUs is programmed in a single program operation.
Page 3
PSoC 6 MCU Voice Recorder Listen to the recorded audio using the headphone or speaker. You can pause/resume any time by pressing the right CapSense button again. If paused, the following screen appears on the LCD: 10. To change the volume, slide your finger on the CapSense slider to the right (increase volume) or to the left (decrease volume).
Page 4
PSoC 6 MCU Voice Recorder Figure 3. Overall Transfers When in the IDLE or PAUSED states, no transfers are performed. To minimize writing in the same sector of the external memory multiple times, a wearing level mechanism is implemented. On initialization, the application scans the external memory to locate the last sector written by the application.
Page 5
PSoC 6 MCU Voice Recorder Component Instance Name Purpose Non-default Settings Trigger Input/Output are checked Transfer data from SRAM to I2S TX DMA_PlayRight FIFO (right channel) Figure 8 Interface the audio codec Figure 9 SCB (I2C Master) CodecI2CM Configure the audio codec...
Page 13
PSoC 6 MCU Voice Recorder Figure 14 through Figure 16 shows the changes made in the clock configuration. Figure 14. Source Clocks Configuration Figure 15. FLL/PLL Configuration www.cypress.com Document Number: 002-22221 Rev. *C...
Page 14
Reusing This Example This example is designed for the CY8CKIT-062-WiFi-BT PSoC 6 Pioneer kit. To port the design to a different PSoC 6 MCU device and/or kit, change the target device using Device Selector and update the pin assignments in the Design Wide Resources Pins settings as needed.
PSoC 6 MCU Voice Recorder Document History Document Title: CE222221 – PSoC 6 MCU Voice Recorder Document Number: 002-22221 Revision Orig. of Submission Description of Change Change Date 6001270 RLOS 01/05/2018 New code example Added a few acronyms 6261637 RLOS...
To the extent permitted by applicable law, Cypress reserves the right to make changes to this document without further notice. Cypress does not assume any liability arising out of the application or use of any product or circuit described in this document.
Need help?
Do you have a question about the PSoC 6 MCU and is the answer not in the manual?
Questions and answers