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!
This repository provides examples that demonstrates how to develop PSoC 6 MCU based digital designs. PSoC 6 MCU provides wide digital resources like Serial Communication block (SCB) for UART, I2C, SPI based serial communication, TCPWM block for timer/counter/PWM based designs, UDBs for implementing digital functions like encoders, decoders, state machines etc. The examples listed out in this repository helps you understand how to use them and incorporate these features in your design. 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:
For block level examples please refer to the following GitHub repositories:
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.
To use the code examples in this repository, please download and install PSoC Creator
Note Please refer to the code example documentation for selecting the appropriate kit for testing the project
This example demonstrates the UART transmit and receive operation in PSoC 6 MCU using low level APIs. This is done using polling, ISR, and DMA methods.
This example demonstrates the serial communication block (SCB) based UART transmit and receive operation in PSoC® 6 MCU using high level APIs found in peripheral driver library (PDL).
This example demonstrates how to use the printf function with a Serial Communication Block (SCB) based UART in PSoC 6 MCU.
This example demonstrates the use of SPI SCB (Serial Communication Block) Component for PSoC 6 MCU in master mode. Four different subprojects show the use of Peripheral Driver Library (PDL) functions to communicate with an SPI slave.
This example demonstrates the use of PSoC 6 MCU Serial Communication Block (SCB) Component in SPI slave mode. Four projects show the use of Peripheral Driver Library (PDL) functions to receive data from an SPI master in different modes.
This code example demonstrates the implementation of an EZI2C Slave using the SCB Component on a PSoC 6 MCU. It also demonstrates how to control the color and intensity of an RGB LED using TCPWM Components.
This example demonstrates the use of I2C SCB (Serial Control Block) Component for PSoC 6 MCU in master mode. Three different subprojects show the use of Peripheral Driver Library (PDL) functions to communicate with I2C and EzI2C slave.
This example demonstrates the operation of the PSoC 6 MCU Serial Control Block (SCB) in I2C Slave mode. Two projects show the use of Peripheral Driver Library (PDL) functions to receive data from an I2C Master in different modes.
This example uses a PWM and PSoC 6 MCU Smart IO Component to implement a breathing LED, where an LED gradually cycles through increasing and decreasing brightness levels. There is no CPU usage except for the initialization of PWM and Smart IO Components. This example also demonstrates how to use Smart IO to route the same signal through multiple I/O pins on the same port. This is demonstrated by inverting the signal using Smart IO and then routing the signal to another pin thus creating two breathing LEDs that are out of phase.
This code example demonstrates how the lookup tables (LUTs) in the Smart IO block can be used to buffer an external signal. It further shows how to use the buffered signal to drive a high load at the output. The PSoC 6 MCU device is put to Deep Sleep mode.
This example demonstrates how to generate a periodic interrupt using the timer/counter pulse-width modulation (TCPWM) Component in Timer/Counter mode for PSoC 6 MCU devices.
This code example demonstrates the implementation of an LED breathing effect using the TCPWM Component on a PSoC 6 MCU.
This code example demonstrates how to generate a square wave using the TCPWM Component on a PSoC 6 MCU.
This code example demonstrates how to use the TCPWM Component in PSoC 6 MCU to measure the frequency of a periodic digital signal.
This code example demonstrates how to use the TCPWM Component in quadrature decoder mode in PSoC 6 MCU.
This example demonstrates the use of PSoC 6 MCU TCPWM to count the number of external events
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.
Device datasheets list the features and electrical specifications of PSoC 6 families of devices: PSoC 6 MCU Datasheets
Application notes are available on the Cypress website to assist you with designing your PSoC application: A list of PSoC 6 MCU ANs
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
The TRM provides detailed descriptions of the internal architecture of PSoC 6 devices:PSoC 6 MCU TRMs
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: