CY8CKIT-020 Cypress Semiconductor Corp, CY8CKIT-020 Datasheet - Page 21

KIT PSOC CY8C28 FAMILY PROCESSOR

CY8CKIT-020

Manufacturer Part Number
CY8CKIT-020
Description
KIT PSOC CY8C28 FAMILY PROCESSOR
Manufacturer
Cypress Semiconductor Corp
Series
PSoC®r
Type
MCUr
Datasheets

Specifications of CY8CKIT-020

Contents
Board, Software and Documentation
Silicon Manufacturer
Cypress
Core Architecture
PSoC
Features
Programmable System-on-chip Design Methodology And Architecture
Kit Contents
PSoC CY8C28 Module, Doc, CD
Silicon Core Number
CY8C28
Silicon Family Name
PSoC
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
CY8C28 Family
Lead Free Status / Rohs Status
Supplier Unconfirmed
Other names
428-3036
3.1.1.2
CY8CKIT-020 PSoC Development Kit Guide, Doc. # 001-56971 Rev. **
main.c
1. Open the existing main.c file within Workspace Explorer.
2. Replace the existing main.c content with the content of the embedded CY8C28_main_Ex1.c file,
Note: To access the embedded attachments feature in the PDF document, click on the paper clip
icon located in the lower left corner of the Adobe Reader application.
#include <m8c.h>
#include "PSoCAPI.h"
/*******************************************************************************
* Function Name: main
********************************************************************************
*
* Summary:
*
*
*
*
* Parameters:
*
*
* Return:
*
*
*******************************************************************************/
void main(void)
{
} /* End of main */
/* [] END OF FILE */
which can be found within the attachments feature of this PDF document.
The main function initializes the PWM and starts the PWM clock which will
blink LED1.
blink at a quicker rate than LED1.
void
void
WORD i;
PWM8_1_Start();
LED_1_Start();
/* The following loop controls the software LED connected to P1.7 */
while(1)
{
} /* End of while(1) */
/* Delay time depends on compiler optimization levels and CPU clock */
for (i = 0; i < 60000; i++);
/* Switch the state of Software LED (on or off) */
LED_1_Invert();
Then the main loop is entered which delays enough for LED2 to
/* Variable used for delay */
/* Turn on the PWM to blink LED on P1.6 */
/* Enable Software controlled LED */
/* Part specific constants and macros */
/* PSoC API definitions for all User Modules */
Sample Projects
21

Related parts for CY8CKIT-020