Cypress PSoC 6 MCU Manual

Psoc 6 mcu voice recorder
Hide thumbs Also See for PSoC 6 MCU:

Advertisement

Quick Links

CE222221 – PSoC 6 MCU Voice Recorder
Objective
®
This example demonstrates the use of PSoC
6 MCU to implement a voice recorder.
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. After the recording is completed, you can play the audio data over
2
®
Inter-IC Sound (I
S), which interfaces with an audio codec. You can record/stop/play/pause/resume with CapSense
buttons.
You can control the audio volume with the CapSense slider. The TFT LCD displays the current state of the voice recorder, the
volume, and the time of the record/play.
Figure 1
shows the high level-block diagram of this application.
Figure 1. Block Diagram
UDB = Universal Digital Blocks
QSPI = Quad-SPI
SMIF = Serial Memory Interface
TFT = Thin-Film Transistor
www.cypress.com
Document Number: 002-22221 Rev. *C
1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PSoC 6 MCU and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress PSoC 6 MCU

  • 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.
  • Page 2: Software Setup

    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 6 PSoC 6 MCU Voice Recorder Figure 4. PDM/PCM Configuration Window www.cypress.com Document Number: 002-22221 Rev. *C...
  • Page 7 PSoC 6 MCU Voice Recorder Figure 5. SMIF Tool Configuration www.cypress.com Document Number: 002-22221 Rev. *C...
  • Page 8 PSoC 6 MCU Voice Recorder Figure 6. DMA_Record Configuration Window Figure 7. DMA_PlayLeft Configuration Window www.cypress.com Document Number: 002-22221 Rev. *C...
  • Page 9 PSoC 6 MCU Voice Recorder Figure 8. DMA_PlayRight Configuration Window www.cypress.com Document Number: 002-22221 Rev. *C...
  • Page 10 PSoC 6 MCU Voice Recorder Figure 9. I2S Configuration Window www.cypress.com Document Number: 002-22221 Rev. *C...
  • Page 11 PSoC 6 MCU Voice Recorder Figure 10. CapSense Configuration Window - Basic Figure 11. CapSense Configuration Window – Advanced / General www.cypress.com Document Number: 002-22221 Rev. *C...
  • Page 12 PSoC 6 MCU Voice Recorder Figure 12. CapSense Configuration Windows - Advanced / CSD and CSX Settings Figure 13. CapSense Configuration Window – Advanced / Widget details / Buttons www.cypress.com Document Number: 002-22221 Rev. *C...
  • 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.
  • Page 15: Related Documents

    Interface external serial memories Device Documentation PSoC 6 MCU: PSoC 63 with BLE Datasheet (PRELIMINARY) PSoC 6 MCU: PSoC 63 with BLE Architecture Technical Reference Manual PSoC 6 MCU: PSoC 63 with BLE Register Technical Reference Manual PSoC 6 MCU: PSoC 62 Datasheet...
  • Page 16: Document History

    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...
  • Page 17: Technical Support

    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.

This manual is also suitable for:

Ce222221

Table of Contents