You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These examples demonstrate the peripherals and basic functionality of the PSoC<sup>®</sup> 6 MCU. Some examples demonstrate more complex solutions. Additional PSoC 6-related code examples that leverage connectivity are available in pother repos. See all examples at [Code Examples for Modus Toolbox](https://github.com/cypresssemiconductorco/Code-Examples-for-ModusToolbox-Software).
5
+
This repo is maintained for legacy purposes only. These examples do not work with ModusToolbox version 2.x. See all current examples at [Code Examples for Modus Toolbox](https://github.com/cypresssemiconductorco/Code-Examples-for-ModusToolbox-Software).
6
6
7
-
The code examples in *this* branch all use [ModusToolbox IDE](http://www.cypress.com/ModusToolbox) and the C language. These examples support ModusToolbox v1.1. They do not work with ModusToolbox v1.0.
7
+
------
8
8
9
-
If you are using ModusToolbox v1.0, switch to the MT1.0 branch for compatible code examples.
9
+
These examples demonstrate the peripherals and basic functionality of the PSoC<sup>®</sup> 6 MCU. Some examples demonstrate more complex solutions.
10
+
11
+
The code examples in *this* branch all use [ModusToolbox IDE](http://www.cypress.com/ModusToolbox) v1.1 and the C language. These examples support ModusToolbox v1.1. They do not work with ModusToolbox v1.0.
12
+
13
+
If you are using ModusToolbox v1.0, switch to the **MT1.0** branch for compatible code examples.
10
14
11
15
Each example has a readme.txt, and a comprehensive PDF document that explains what to do and what to observe when running the example.
12
16
@@ -26,35 +30,68 @@ In the **Starter Application** window, click the **Import** button and navigate
26
30
27
31
## MCU Code Examples
28
32
29
-
| Code Example | Description |
30
-
| ----- | ----- |
31
-
|CE195313_Emulated_EEPROM | Demonstrates the basic operation of the emulated EEPROM middleware |
32
-
|CE221773_PSoC6_HelloWorld | Demonstrates UART communication and blinks an LED using a TCPWM resource|
33
-
|CE212736_PSoC6_BLE_FindMe| Introduces BLE software development and implements the BLE Find me profile|
34
-
|CE218136_EINK_CapSense_RTOS | Shows how to create a user-interface solution using an E-INK display, CapSense®, and FreeRTOS |
35
-
|CE218541_PSoC6_FaultHandling|Shows how to find a fault location using the PDL SysLib API and the Arm® exception handler.|
36
-
|CE220823_SMIFMemWriteAndRead| Demonstrates read/write operation to external memory by using Serial memory interface(SMIF) in Quad Serial peripheral interface (QSPI) mode.|
37
-
|CE218552_DMA_UART_Mem|Demonstrates a UART-to-memory buffer data transfer using DMA, with no CPU usage.|
38
-
|CE219521_PSoC_6_MCU_GPIO_Interrupt| Demonstrates how to configure a GPIO to generate an interrupt.|
39
-
|CE219490_Ramping_LED_Using_SmartIO| Uses a PWM and Smart I/O to implement a ramping LED. There is no CPU usage except for the initialization of PWM and Smart I/O.|
40
-
|CE218472_LPComp_CompareVrefExt| Demonstrates the voltage comparison functionality using the LPComp resource.|
41
-
|CE218129_LPComp_WakeupFromHibernate| Demonstrates wakeup from the Hibernate mode using the LPComp resource.|
42
-
|CE220291_PSoC6_TCPWM_Square_Wave| Generates a square wave using the TCPWM configured as a PWM. An LED connected to the PWM output pin blinks at 2 Hz.|
43
-
|CE220060_WatchdogTimer| Demonstrates the two use cases of WDT – as a watchdog that causes a device reset in the case of a malfunction, and as a periodic interrupt source.|
44
-
|CE220498_PSoC6_MCWDT| Demonstrates the Multi-Counter Watchdog Timer (MCWDT) in free-running mode. The MCWDT measures the time between two successive switch press events and the result is displayed on the UART terminal.|
45
-
|CE216825_PSoC6_RTC_Basics|Demonstrates the real-time clock (RTC) in PSoC 6 MCU.|
46
-
|CE218964_RTC_DailyAlarm|Configures RTC registers for a daily alarm using the RTC driver API in the Peripheral Driver Library.|
47
-
|CE220465_CryptoAESDemo| Encrypts and decrypts user input data using the AES algorithm, using a 128-bit long key. The encrypted and decrypted data are displayed on a UART terminal emulator.|
48
-
|CE220511_PSoC6_CryptoSHADemo|Generate a unique hash value for an arbitrary message using Secure Hash Algorithm (SHA).|
49
-
|CE221295_PSoC6_CryptoTRNG|Create a One-Time Password (OTP) using the True Random Number generation feature of PSoC 6 MCU cryptography block.|
50
-
|CE227032_PSoC6_MCU_<br />SMIF_OnTheFly_Encryption_MMIO_XIP|This code example demonstrates on-the-fly encryption of data using Serial Memory Interface(SMIF) in MMIO and XIP modes.|
51
-
|CE219656_PSoC6_UARTLowLevelAPIs| Three applications demonstrate the UART transmit and receive operation using low-level polling, DMA, or an interrupt.|
52
-
|CE220541_PSoC6_MCU_SCB_EZI2C|Implements an EZI2C Slave using the Serial Communication Block (SCB) resource.|
53
-
|CE220818_PSoC6_I2CMaster| Demonstrates the basic operation of the I2C master resource, which sends a command packet to the I2C slave SCB to control an user LED. Three applications developed in this example are: I2C master using high-level APIs, I2C master using low-level APIs and I2C master communication with EzI2C slave.|
54
-
|CE221119_PSoC6_MCU_SCB_I2C_Slave| Two applications demonstrate the I2C slave mode, using either polling or a callback routine.|
55
-
|CE221120_PSoC6_SPIMaster| Four applications demonstrate SPI communication between master and slave, using high-level API, low-level API, polling, and an interrupt.|
56
-
|CE223468<br />Interfacing_BMI160(I2C)FreeRTOS| This code example demonstrates how to interface PSoC® 6 MCU with a BMI160 motion aensor over an I2C interface within a FreeRTOS task. |
57
-
| CE225909_PSoC6_BatteryLevel_RTOS | This code example implements a GATT server with BLE standard Battery Service and Device Information Service. Battery level is simulated in the firmware and its value changes continuously from 0 to 100 percent. |
|CE195313_Emulated_EEPROM| Demonstrates the basic operation of the emulated EEPROM middleware |
36
+
|CE221773_PSoC6_HelloWorld | Demonstrates UART communication and blinks an LED using a TCPWM resource|
37
+
|CE212736_PSoC6_BLE_FindMe| Introduces BLE software development and implements the BLE Find me profile|
38
+
|CE218136_EINK_CapSense_RTOS| Shows how to create a user-interface solution using an E-INK display, CapSense®, and FreeRTOS |
39
+
|CE218541_PSoC6_FaultHandling|Shows how to find a fault location using the PDL SysLib API and the Arm® exception handler.|
40
+
|CE220823_SMIFMemWriteAndRead| Demonstrates read/write operation to external memory by using Serial memory interface(SMIF) in Quad Serial peripheral interface (QSPI) mode.|
41
+
|CE218552_DMA_UART_Mem|Demonstrates a UART-to-memory buffer data transfer using DMA, with no CPU usage.|
42
+
|CE219521_PSoC_6_MCU_GPIO_Interrupt| Demonstrates how to configure a GPIO to generate an interrupt.|
43
+
|CE219490_Ramping_LED_Using_SmartIO| Uses a PWM and Smart I/O to implement a ramping LED. There is no CPU usage except for the initialization of PWM and Smart I/O.|
44
+
|CE218472_LPComp_CompareVrefExt| Demonstrates the voltage comparison functionality using the LPComp resource.|
45
+
|CE218129_LPComp_WakeupFromHibernate| Demonstrates wakeup from the Hibernate mode using the LPComp resource.|
46
+
|CE220291_PSoC6_TCPWM_Square_Wave| Generates a square wave using the TCPWM configured as a PWM. An LED connected to the PWM output pin blinks at 2 Hz.|
47
+
|CE220060_WatchdogTimer| Demonstrates the two use cases of WDT – as a watchdog that causes a device reset in the case of a malfunction, and as a periodic interrupt source.|
48
+
|CE220498_PSoC6_MCWDT| Demonstrates the Multi-Counter Watchdog Timer (MCWDT) in free-running mode. The MCWDT measures the time between two successive switch press events and the result is displayed on the UART terminal.|
49
+
|CE216825_PSoC6_RTC_Basics|Demonstrates the real-time clock (RTC) in PSoC 6 MCU.|
50
+
|CE218964_RTC_DailyAlarm|Configures RTC registers for a daily alarm using the RTC driver API in the Peripheral Driver Library.|
51
+
|CE220465_CryptoAESDemo| Encrypts and decrypts user input data using the AES algorithm, using a 128-bit long key. The encrypted and decrypted data are displayed on a UART terminal emulator.|
52
+
|CE220511_PSoC6_CryptoSHADemo|Generate a unique hash value for an arbitrary message using Secure Hash Algorithm (SHA).|
53
+
|CE221295_PSoC6_CryptoTRNG|Create a One-Time Password (OTP) using the True Random Number generation feature of PSoC 6 MCU cryptography block.|
54
+
|CE227032_PSoC6_MCU_<br />SMIF_OnTheFly_Encryption_MMIO_XIP|This code example demonstrates on-the-fly encryption of data using Serial Memory Interface(SMIF) in MMIO and XIP modes.|
55
+
|CE219656_PSoC6_UARTLowLevelAPIs| Three applications demonstrate the UART transmit and receive operation using low-level polling, DMA, or an interrupt.|
56
+
|CE220541_PSoC6_MCU_SCB_EZI2C|Implements an EZI2C Slave using the Serial Communication Block (SCB) resource.|
57
+
|CE220818_PSoC6_I2CMaster| Demonstrates the basic operation of the I2C master resource, which sends a command packet to the I2C slave SCB to control an user LED. Three applications developed in this example are: I2C master using high-level APIs, I2C master using low-level APIs and I2C master communication with EzI2C slave.|
58
+
|CE221119_PSoC6_MCU_SCB_I2C_Slave| Two applications demonstrate the I2C slave mode, using either polling or a callback routine.|
59
+
|CE221120_PSoC6_SPIMaster| Four applications demonstrate SPI communication between master and slave, using high-level API, low-level API, polling, and an interrupt.|
60
+
|CE223468<br />Interfacing_BMI160(I2C)FreeRTOS| This code example demonstrates how to interface PSoC® 6 MCU with a BMI160 motion aensor over an I2C interface within a FreeRTOS task. |
61
+
| CE225909_PSoC6_BatteryLevel_RTOS | This code example implements a GATT server with BLE standard Battery Service and Device Information Service. Battery level is simulated in the firmware and its value changes continuously from 0 to 100 percent. |
58
62
| CE224285_PSoC_6MCU_ExternalFlashAccess_in_XIP_Mode_with_QSPI | This example demonstrates how to use QSPI in execute-in-place (XIP) mode with external flash memory on the PSoC® 6 MCU |
59
-
| CE222460_SPI_FRAM_ACCESS_WITH_PSOC6_SMIF | This code example demonstrates implementing the SPI host controller using PSoC 6 SMIF to access the SPI F-RAM. |
60
-
| CE222967_QSPI_FRAM_ACCESS_WITH_PSOC6_SMIF | This code example implements the QSPI F-RAM host controller using PSoC 6 Serial Memory Interface (SMIF) block and demonstrates accessing the Excelon Ultra QSPI F-RAM in SPI, DPI, and QPI modes. |
63
+
| CE222460_SPI_FRAM_ACCESS_WITH_PSOC6_SMIF | This code example demonstrates implementing the SPI host controller using PSoC 6 SMIF to access the SPI F-RAM. |
64
+
| CE222967_QSPI_FRAM_ACCESS_WITH_PSOC6_SMIF | This code example implements the QSPI F-RAM host controller using PSoC 6 Serial Memory Interface (SMIF) block and demonstrates accessing the Excelon Ultra QSPI F-RAM in SPI, DPI, and QPI modes. |
0 commit comments