CY3210-28XXX Cypress Semiconductor Corp, CY3210-28XXX Datasheet - Page 16

EVALUATION POD FOR CY8C28X PSOC

CY3210-28XXX

Manufacturer Part Number
CY3210-28XXX
Description
EVALUATION POD FOR CY8C28X PSOC
Manufacturer
Cypress Semiconductor Corp
Series
PSoC®r
Datasheet

Specifications of CY3210-28XXX

Accessory Type
Emulation Pod
Interface Type
ICE, I2C, RS232, MiniProg,
Operating Supply Voltage
9V, 12 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
CY8C28 Family
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Quick Start
2.3.5
16
Adding Code to main.c and Building the Project
1. In the Workspace Explorer window, double click main.c under MyProject > Source Files folder.
2. Select all text in main.c and delete it.
3. Add the following code:
#include <m8c.h>
#include "PSoCAPI.h"
WORD I2C_Buf[15];
void main(void)
{
setup I2C buffer */
*/
CSD2X_1_SetDefaultFingerThresholds();
BYTE i;
EzI2Cs_1_SetRamBuffer(sizeof(I2C_Buf),sizeof(I2C_Buf),(BYTE *)I2C_Buf); /*
EzI2Cs_1_Start();
M8C_EnableGInt ;
CSD2X_1_Start();
CSD2X_1_InitializeBaselines();
while(1)
{
CY3280-28XXX Universal CapSense® Controller Development Kit Guide, Spec. # 001-57457 Rev. **
if( CSD2X_1_bIsSensorActive(0))
if( CSD2X_1_bIsSensorActive(1))
if( CSD2X_1_bIsSensorActive(2))
if( CSD2X_1_bIsSensorActive(3))
if( CSD2X_1_bIsSensorActive(4))
CSD2X_1_ScanAllSensors();
CSD2X_1_UpdateAllBaselines();
else
else
else
else
else
LED_1_On();
LED_1_Off();
LED_2_On();
LED_2_Off();
LED_3_On();
LED_3_Off();
LED_4_On();
LED_4_Off();
LED_5_On();
LED_5_Off();
/* part specific constants and macros
/* PSoC API definitions for all User Modules */
/* buffer for EzI2C */
/* check the state of button0 */
/* check the state of button1 */
/* check the state of button2 */
/* check the state of button3 */
/* check the state of button4 */
/* set default finger threshold
/* I2C start */
/* enable global interrupt */
/* CSD2X start */
/* initialize the baseline */
/* scan all sensors */
/* update all baseline */
/* turn on LED0 */
/* turn off LED0 */
/* turn on LED1 */
/* turn off LED1 */
/* turn on LED2 */
/* turn off LED2 */
/* turn on LED3 */
/* turn off LED3 */
/* turn on LED4 */
/* turn off LED4 */
*/
[+] Feedback

Related parts for CY3210-28XXX