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

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
Sample Projects
3.1.3.2
38
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_Ex3.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"
/* Counter16 Interrupt Handler */
#pragma interrupt_handler Counter16_C_ISR
/* LCD specific */
#define ROW_0
#define ROW_1
#define COLUMN_0 0 /* LCD column 0 */
#define COLUMN_9 9 /* LCD column 9 */
const BYTE sinTable[]=
{
};
BYTE tablePos = 0;
/*******************************************************************************
* Function Name: main
********************************************************************************
*
* Summary:
*
*
*
*
*
*
* Parameters:
*
*
* Return:
*
*
*******************************************************************************/
void main(void)
{
31, 33, 36, 39, 41, 44, 46, 49, 51, 53, 55, 56, 58, 59, 59, 60,
60, 60, 59, 59, 58, 56, 55, 53, 51, 49, 47, 44, 42, 39, 36, 33,
31, 28, 25, 22, 19, 16, 13, 11,
which can be found within the attachments feature of this PDF document.
0,
void
void
The main function initializes the ADC, PGA, LCD, Counter, DAC and UART.
In the main loop, it continuously checks for an ADC conversion.
one then it displays the ADC raw count to the LCD, transmits the raw count
serially, and updates the Counter16 period (based on the raw count) for the
DAC output.
/* Variable for holding ADC result, and updating counter period */
WORD adcResult;
Counter16_1_Start();
Counter16_1_EnableInt();
0,
1,
2,
0 /* LCD row 0
1 /* LCD row 1
3,
4,
/* part specific constants and macros */
/* PSoC API definitions for all User Modules */
6,
CY8CKIT-020 PSoC Development Kit Guide, Doc. # 001-56971 Rev. **
7, 10, 12, 14, 17, 20, 23, 26, 29,
/* Enable the counter used for DAC update rate */
/* Enable DAC update interrupt */
*/
*/
9,
7,
5,
3,
2,
1,
0,
0
If there is

Related parts for CY8CKIT-020