Cypress CE219490 Посібник користувача

Переглянути онлайн або завантажити pdf Посібник користувача для Мікроконтролери Cypress CE219490. Cypress CE219490 9 сторінок. Psoc 6 mcu ramping led using smart i/o

Objective
This example demonstrates the flexibility of Smart I/O in PSoC
hardware with no CPU usage beyond initialization.
Requirements
Tool: ModusToolbox™ IDE 1.1
Programming Language: C
Associated Parts: All
PSoC 6 MCU
Related Hardware:
PSoC 6 BLE Pioneer Kit, PSoC 6 WiFi-BT Pioneer Kit, PSoC6 WiFi-Prototyping Kit
Overview
This example uses a PWM resource and Smart I/O in PSoC 6 MCU to implement a ramping 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 I/O.
Hardware Setup
This example uses the kit's default configuration. See the kit guide to ensure the kit is configured correctly.
Note: The PSoC 6 BLE Pioneer kit and the PSoC 6 WiFi-BT Pioneer kit ship with KitProg2. ModusToolbox only works with
KitProg3. Before using this code example, make sure that the kit is upgraded to KitProg3. See ModusToolbox Help >
ModusToolbox IDE Documentation > User Guide; section PSoC 6 MCU KitProg Firmware Loader. If you do not upgrade, you
will see an error like "unable to find CMSIS-DAP device" or "KitProg firmware is out of date".
Software Setup
None.
Operation
Follow the instructions that came with your kit to make sure that your kit is connected to your PC
1.
Connect the kit to your PC using the provided USB cable.
2.
Import the application into a new workspace. See KBA225201.
3.
Build the application. Choose Project > Build All.
4.
Program the PSoC 6 MCU device. In the project explorer, select the mainapp project. In the Quick Panel, scroll to the
Launches section and click the Program (KitProg3) configuration. Program configurations also build the code.
5.
Using a jumper wire, connect P9[4] to P13[7].
You can observe the ramping effect on the LED connected to P13[7] on the kit.
Debugging
You can debug the example to step through the code. Use the Debug (KitProg3) configuration. If you are unfamiliar with how
to start a debug session with ModusToolbox IDE, see KBA224621.
www.cypress.com
CE219490 – PSoC 6 MCU Ramping LED
®
parts
Document No. 002-25568 Rev.*A
6 MCU, by implementing an LED ramping effect exclusively in
using Smart I/O
1