Peripherals
Example | Description |
---|---|
Emulated EEPROM | This example demonstrates how to use the Em_EEPROM middleware in PSOC™ 4 MCU devices. In this example, a counter is read from the Emulated EEPROM (Em_EEPROM), incremented, written back to the Em_EEPROM and printed on a serial terminal. This occurs on every device reset or power cycle. As a result, an incrementing value is printed on every reset. For more details, see the README on GitHub. |
GPIO Interrupt | This code example demonstrates the use of a GPIO configured as an input pin to generate interrupts on PSOC™ 4. The GPIO signal interrupts the CPU and executes a user-defined Interrupt Service Routine (ISR). The GPIO interrupt acts as a wakeup source to wake the CPU from Deep Sleep. For more details, see the README on GitHub. |
GPIO Pins | This example demonstrates multiple methods of configuring, reading, writing, and generating interrupts with PSOC™ 4 General Purpose Input/Output (GPIO) pins. For more details, see the README on GitHub. |
I2C Master EzI2C Slave | This example demonstrates the operation of I2C resource for PSOC™ 4 in Master mode with an EzI2C slave. For more details, see the README on GitHub. |
I2C Slave Using Callbacks | This example demonstrates the operation of the I2C block for PSOC™ 4 in Slave mode using callbacks. For more details, see the README on GitHub. |
Periodic Interrupt Using TCPWM | This example uses the TCPWM Component in the Timer/Counter mode to generate a periodic interrupt. An LED toggles whenever the interrupt occurs. For more details, see the README on GitHub. |
PSOC 4 Basic device firmware upgrade | This example demonstrates how to create a field upgradable project for PSOC™ 4 using the DFU middleware. For more details, see the README on GitHub. |
SPI Master | This example demonstrates the use of a SPI resource for PSOC™ 4 in master mode using high level APIs. The SPI master is configured to send command packets to control a user LED on the slave. For more details, see the README on GitHub. |
SPI Slave | This example demonstrates the use of a SPI Serial Communication Block (SCB) resource for PSOC™ 4 in slave mode using high-level API. This example is intended to be used with PSOC™ 4 SPI Master project For more details, see the README on GitHub. |
TCPWM event counter | The example shows how to use the TCPWM to count a number of external events and display the results over UART. For more details, see the README on GitHub. |
TCPWM square wave | This code example demonstrates how to generate a square wave using the TCPWM peripheral configured as a PWM on a PSOC™ 4 device. For more details, see the README on GitHub. |
UART Transmit and Receive | This example demonstrates the UART transmit and receive operation in PSOC™ 4 device. The application uses a serial terminal to read data and to echo back the received data. For more details, see the README on GitHub. |
Watchdog timer interrupt and reset | This code example features the watchdog timer and its usage in interrupt mode, reset mode and how to wake up the device from deepsleep using watchdog interrupt. For more details, see the README on GitHub. |