Skip to content

This repository provides reference PSoC 6 projects for developing audio applications using the I2s and PDM to PCM blocks of the PSoC 6 MCU

Notifications You must be signed in to change notification settings

Infineon/PSoC-6-MCU-Audio-Designs

Repository files navigation

Table of Contents

Introduction

This repository contains examples and demos for PSoC 6 MCU family of devices, a single chip solution for the emerging IoT devices. PSoC 6 MCU bridges the gap between expensive, power hungry application processors and low‑performance microcontrollers (MCUs). The ultra‑low‑power, dual-core architecture of PSoC 6 MCU offers the processing performance needed by IoT devices, eliminating the tradeoffs between power and performance.

Cypress provides a wealth of data at www.cypress.com to help you select the right PSoC device and effectively integrate it into your design. Visit our PSoC 6 MCU webpage to explore more about PSoC 6 MCU family of device. Feel free to explore through the code example source files and let us innovate together!

Navigating the Repository

This repository provides reference PSoC 6 projects for developing audio applications using the I2s and PDM to PCM blocks of the PSoC 6 MCU. If you are new to developing projects with PSoC 6 MCU, we recommend you to refer the PSoC 6 Getting Started GitHub page which can help you familiarize with device features and guides you to create a simple PSoC 6 design with PSoC Creator IDE. For other block specific design please visit the following GitHub Pages:

You can use these block level examples to guide you through the development of a system-level design using PSoC 6 MCU. All the code examples in this repository comes with well documented design guidelines to help you understand the design and how to develop it. The code examples and their associated documentation are in the Code Example folder in the repository.

Required Tools

Software

Integrated Development Environment (IDE)

To use the code examples in this repository, please download and install PSoC Creator

Hardware

PSoC 6 MCU Development Kits

Note Please refer to the code example documentation for selecting the appropriate kit for testing the project

Code Examples List

1. CE218636 – PSoC 6 MCU Inter-IC Sound (I2S) Example

This code example shows how to play a short audio on a speaker or headphone. The application stores the audio data in the flash memory. This data is written to the output TX FIFO of the I2S hardware block, which interfaces with an audio codec chip. The audio codec chip converts a digital audio stream into analog. The chip is configured by the PSoC 6 over an I2C interface. The code example includes the files codec.c/h, which wrap the configuration of the audio codec.

2. CE219431 - PSoC 6 MCU PDM-to-PCM Example

This example demonstrates how to use the pulse-density modulation/pulse-code modulation (PDM/PCM) hardware block in PSoC 6 with a digital microphone.

3. CE220762 – PSoC 6 MCU PDM to I2S Example

This code example shows how to record a short audio sample from a microphone to SRAM, then play it on a speaker or headphone. The example uses DMA to transfer data from the PDM/PCM hardware block, which interfaces with a microphone, to SRAM. Once the recording is complete, other DMAs transfer the recorded data to the I2S hardware block, which interfaces with an audio codec chip. This configuration frees the CPU completely, so it can execute other tasks.

4. CE222221 – PSoC 6 MCU Voice Recorder

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 PDM/PCM 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 I2S, 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.

References

1. PSoC 6 MCU

PSoC 6 bridges the gap between expensive, power hungry application processors and low‑performance microcontrollers (MCUs). The ultra‑low‑power PSoC 6 MCU architecture offers the processing performance needed by IoT devices, eliminating the tradeoffs between power and performance. The PSoC 6 MCU contains a dual‑core architecture, with both cores on a single chip. It has an Arm® Cortex®‑M4 for high‑performance tasks, and an Arm® Cortex®‑M0+ for low-power tasks, and with security built-in, your IoT system is protected. To learn more on the device, please visit our PSoC 6 MCU webpage.

2. PSoC 6 MCU Learning resource list

2.1 PSoC 6 MCU Datasheets

Device datasheets list the features and electrical specifications of PSoC 6 families of devices: PSoC 6 MCU Datasheets

2.2 PSoC 6 MCU Application Notes

Application notes are available on the Cypress website to assist you with designing your PSoC application: A list of PSoC 6 MCU ANs

2.3 PSoC 6 MCU Component Datasheets

PSoC Creator utilizes "components" as interfaces to functional Hardware (HW). Each component in PSoC Creator has an associated datasheet that describes the functionality, APIs, and electrical specifications for the HW. You can access component datasheets in PSoC Creator by right-clicking a component on the schematic page or by going through the component library listing. You can also access component datasheets from the Cypress website: PSoC 6 Component Datasheets

2.4 PSoC 6 MCU Technical Reference Manuals (TRM)

The TRM provides detailed descriptions of the internal architecture of PSoC 6 devices:PSoC 6 MCU TRMs

FAQ

Technical Support

Need support for your design and development questions? Check out the Cypress Developer Community 3.0.

Interact with technical experts in the embedded design community and receive answers verified by Cypress' very best applications engineers. You'll also have access to robust technical documentation, active conversation threads, and rich multimedia content.

You can also use the following support resources if you need quick assistance:

Local Sales office locations: Sales Office

About

This repository provides reference PSoC 6 projects for developing audio applications using the I2s and PDM to PCM blocks of the PSoC 6 MCU

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published