background image

 

 

CE222221 – PSoC 6 MCU Voice Recorder 

 

 

 

 

 

 

 

www.cypress.com

 

Document Number: 002-22221 Rev.  *C 

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 
Inter-IC Sound (I

2

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 

 

Summary of Contents for PSoC 6 MCU

Page 1: ...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 Inter IC Sound I2 S which interfaces with an audio codec Y...

Page 2: ...merican Headset Jack Operation 1 Connect the CY8CKIT 028 TFT shield to the Pioneer Kit 2 Connect a headphone or speaker to the audio jack on the CY8CKIT 028 TFT 3 Connect the Pioneer Kit to your PC us...

Page 3: ...TN0 BTN1 BTN1 BTN1 BTN1 BTN0 BTN0 Each state is linked to a different icon displayed in the LCD The Operation section shows the screenshots of each state The screen also shows the current volume in pe...

Page 4: ...rding playing events 4 GraphicsTask handles updates and draws on the LCD Other RTOS elements used for synchronization and communication are 1 Event Queue used to notify EventsTask when specific events...

Page 5: ...PDM_DATA PDM Data input Digital Output Pin PDM_CLK PDM Clock output Digital Output Pin TX_SDO I2S TX Data output Digital Output Pin TX_SCK I2S TX Clock output Digital Output Pin TX_WS I2S TX Word Sel...

Page 6: ...PSoC 6 MCU Voice Recorder www cypress com Document Number 002 22221 Rev C 6 Figure 4 PDM PCM Configuration Window...

Page 7: ...PSoC 6 MCU Voice Recorder www cypress com Document Number 002 22221 Rev C 7 Figure 5 SMIF Tool Configuration...

Page 8: ...PSoC 6 MCU Voice Recorder www cypress com Document Number 002 22221 Rev C 8 Figure 6 DMA_Record Configuration Window Figure 7 DMA_PlayLeft Configuration Window...

Page 9: ...PSoC 6 MCU Voice Recorder www cypress com Document Number 002 22221 Rev C 9 Figure 8 DMA_PlayRight Configuration Window...

Page 10: ...PSoC 6 MCU Voice Recorder www cypress com Document Number 002 22221 Rev C 10 Figure 9 I2S Configuration Window...

Page 11: ...PSoC 6 MCU Voice Recorder www cypress com Document Number 002 22221 Rev C 11 Figure 10 CapSense Configuration Window Basic Figure 11 CapSense Configuration Window Advanced General...

Page 12: ...Voice Recorder www cypress com Document Number 002 22221 Rev C 12 Figure 12 CapSense Configuration Windows Advanced CSD and CSX Settings Figure 13 CapSense Configuration Window Advanced Widget detail...

Page 13: ...oice Recorder www cypress com Document Number 002 22221 Rev C 13 Figure 14 through Figure 16 shows the changes made in the clock configuration Figure 14 Source Clocks Configuration Figure 15 FLL PLL C...

Page 14: ...the Design Wide Resources Pins settings as needed In some cases a resource used by a code example for example an IP block is not supported on another device In such cases the example will not work If...

Page 15: ...ave operation configurations PDM to PCM Decoder Component Converts a PDM signal to PCM Direct Memory Access DMA Component Transfers data to and from memory and registers Capacitive Sensing CapSense Co...

Page 16: ...mber 002 22221 Revision ECN Orig of Change Submission Date Description of Change 6001270 RLOS 01 05 2018 New code example A 6261637 RLOS 06 26 2018 Added a few acronyms Fixed some minor typos Added So...

Page 17: ...are or software products Cypress shall have no liability arising out of any security breach such as unauthorized access to or use of a Cypress product CYPRESS DOES NOT REPRESENT WARRANT OR GUARANTEE T...

Reviews: