Cypress PSoC 6 MCU Overzicht - Pagina 2
Blader online of download pdf Overzicht voor {categorie_naam} Cypress PSoC 6 MCU. Cypress PSoC 6 MCU 5 pagina's. Psoc 6 mcu voice recorder
Ook voor Cypress PSoC 6 MCU: Handmatig (17 pagina's)
Figure 2
shows the firmware flowchart.
Initialize WDT interrupt
WDT interrupt
Initialize and enable
Enable global interrupts
Put CM4 to Deep Sleep
and wait for WDT
Design Considerations
This code example is designed to run on CY8CKIT-062-BLE with the PSoC 6 MCU. To port the design to other PSoC 6 MCU
and kits, change the target device in Device Selector, and change the pin assignments in the cydwr settings. For single-core
PSoC 6 MCU devices, port the code from main_cm4.c to main.c file because CM0+ CPU is not used in this code example.
Hardware Setup
The code example works with the default settings on the CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit. If the settings are
different from the default values, see the "Selection Switches" table in the
Make sure that the switch "SW5" is set to select "3.3V" as VDD on the CY8CKIT-062-BLE PSoC 6 BLE Pioneer Kit.
Operation
1.
Connect CY8CKIT-062 BLE to a USB port on your PC.
2.
Build and program the application into CY8CKIT-062 BLE. For more information on building a project or programming a
device, see PSoC Creator Help.
3.
Observe the GREEN_LED to determine the status of the WDT interrupt.
Components
Table 1
lists the PSoC Creator Components used in this example and the hardware resources used by each Component.
Component
Global Signal Reference (GSRef)
System Interrupt (SysInt)
General Purpose Input / Output (GPIO)
www.cypress.com
Figure 2. Firmware Flowchart
Start
NO
initialization
successful?
YES
Turn ON RED_LED
WDT
Stay in an infinite loop
interrupt
Table 1. PSoC Creator Components
Instance Name
GlobalSignal_1
WDTIsr
RED_LED, GREEN_LED
Document No. 002-20607 Rev.*A
PSoC 6 MCU Watchdog Timer in Interrupt Mode
WDTIsr
WDT interrupt?
YES
Service WDT interrupt (Clear WDT interrupt
and
Toggle GREEN_LED)
Return
kit guide
to reset to the default settings.
Hardware Resources
None
One entry in the device interrupt vector table
Two physical pins
NO
2