background image

 

PSoC 6 MCU Voice Recorder 

www.cypress.com

 

Document Number: 002-22221 Rev. *C 

Requirements 

Tool:

 

PSoC Creator

 4.2

Peripheral Driver Library

 (PDL) 3.0.1  

Programming Language: 

C (Arm

®

 GCC 5.4.1) 

Associated Parts:

 All 

PSoC 6 MCU

 parts 

Related Hardware

CY8CKIT-062-WiFi-BT, CY8CKIT-028-TFT

 

Software Setup 

Check if all the latest components are available in PSoC Creator. Go to menu Tools > Find New Components. Install all the new 
components in the list, if any. 

Hardware Setup 

This example requires the CY8CKIT-028-TFT shield to be connected to CY8CKIT-062-WiFi-BT PSoC 6 Pioneer Kit. Keep SW5 
and SW7 in their default positions. Refer to the Kit Guide for more information. You also need a headphone or speaker connected 
to the audio jack on the CY8CKIT-028-TFT shield. The SW1 position should match the type of headphone/speaker used 

– OMTP 

[Open Mobile Terminal Platform] or AHJ [American 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 using the provided USB cable through the USB connector (J10). 

4.  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. 

After pressing the RST button, the following screen appears on the TFT LCD display. 

Vol: 91%

0:00

 

5.  Press the left CapSense button (BTN0) on CY8CKIT-062 to start recording. The following screen appears on the TFT LCD. 

Vol: 91%

0:01

 

6.  Play a sound, or speak over the microphone (PDM MIC) on CY8CKIT-028-TFT while recording. 

7.  Press the left CapSense button again to stop recording. The following screen appears on the LCD. 

Vol: 91%

0:15

 

8.  Press the right CapSense button (BTN1) to play the recording. The following screen appears on the LCD. 

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: