CY8CKIT-001 Cypress Semiconductor Corp, CY8CKIT-001 Datasheet - Page 100

KIT DEV FOR PSOC3/5

CY8CKIT-001

Manufacturer Part Number
CY8CKIT-001
Description
KIT DEV FOR PSOC3/5
Manufacturer
Cypress Semiconductor Corp
Series
PSoC® CapSenser
Type
MCUr
Datasheets

Specifications of CY8CKIT-001

Contents
Board, CD, CY8C29 & CY8C38 Modules, MiniProg3 Programmer/Debugger, Power Supply
Processor To Be Evaluated
CY8C29, CY8C38
Interface Type
RS-232, USB, JTAG
Operating Supply Voltage
3.3 V, 5 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PSoC 1, PSoC 3 and PSoC 5
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
428-2961

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CY8CKIT-001A
Manufacturer:
Cypress Semiconductor
Quantity:
135
Sample Projects
96
}
}
/*******************************************************************************
* Function Name: UpdateButtonState
********************************************************************************
*
* Summary:
*
*
*
*
* Parameters:
*
*
*
* Return:
*
*
*******************************************************************************/
void UpdateButtonState(uint8 slot_1, uint8 slot_2)
{
Updates the LCD screen with the current button state by displaying which
button is being touched on row 0. LED's are also updated according to button
state.
slot_1: Button state for B1
slot_2: Button state for B2
void
uint8 pos, stateB_1, stateB_2;
/* LCD and CapSense Initialization */
CharLCD_Start();
CapSense_Start();
CapSense_CSHL_InitializeAllBaselines();
while(1)
{
CharLCD_Position(ROW_0,COLUMN_0);
/* Check the state of the buttons and update the LCD and LEDs*/
if (slot_1 && slot_2)
{
}
else if (slot_1 || slot_2)
{
CYGlobalIntEnable; /* Enable global interrupts */
CharLCD_LoadCustomFonts(CharLCD_customFonts);
CapSense_CSD_ScanAllSlots();
CapSense_CSHL_UpdateAllBaselines();
stateB_1 = CapSense_CSHL_CheckIsSlotActive(CapSense_SCANSLOT_BTN_B1);
stateB_2 = CapSense_CSHL_CheckIsSlotActive(CapSense_SCANSLOT_BTN_B2);
/* Find Slider Position */
pos = CapSense_CSHL_GetCentroidPos(CapSense_CSHL_LS_POSITION);
UpdateSliderPostion(pos);
CharLCD_PrintString(BUTTON_1_2_STR);
LED1_Write(LED_ON); /* Set the LED */
LED2_Write(LED_ON); /* Set the LED */
if (slot_1)
UpdateButtonState(stateB_1, stateB_2);
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. **
[+] Feedback

Related parts for CY8CKIT-001