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

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
3.2.3.13
CY8CKIT-001 PSoC Development Kit Guide, Doc. # 001-48651 Rev. **
Creating the main.c File
1. From the Workspace Explorer double click the main.c file.
2. Use this code to replace the contents of the main.c file. (A soft copy of the main.c file is embed-
main.c
#include <device.h>
void UpdateDisplay(uint16 * voltageRawCount);
void TxHex (uint8 voltageRawCount);
/* Table of voltage values for DMA to send to the DAC. These values range
const uint8 voltageWave[] =
{
0x4D, 0x4E, 0x4F,
0x5D, 0x5E, 0x5F,
0x6D, 0x6E, 0x6F,
0x7D, 0x7E, 0x7F,
0x8D, 0x8E, 0x8F,
0x9D, 0x9E, 0x9F,
0x92, 0x91, 0x90,
0x82, 0x81, 0x80,
0x72, 0x71, 0x70,
0x62, 0x61, 0x60,
0x52, 0x51, 0x50,
0x42, 0x41, 0x40,
};
/*******************************************************************************
* Function Name: main
********************************************************************************
*
* Summary:
*
*
*
*
*
*
*
ded in this PDF under “Attachments.”)
between 0x3D and 0x9F because these are the two points where the LED
is not visible and where the LED is saturated */
0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C,
0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, 0x59, 0x5A, 0x5B, 0x5C,
0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x6A, 0x6B, 0x6C,
0x70, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, 0x79, 0x7A, 0x7B, 0x7C,
0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, 0x88, 0x89, 0x8A, 0x8B, 0x8C,
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, 0x98, 0x99, 0x9A, 0x9B, 0x9C,
0x9F, 0x9E, 0x9D, 0x9C, 0x9B, 0x9A, 0x99, 0x98, 0x97, 0x96, 0x95, 0x94, 0x93,
0x8F, 0x8E, 0x8D, 0x8C, 0x8B, 0x8A, 0x89, 0x88, 0x87, 0x86, 0x85, 0x84, 0x83,
0x7F, 0x7E, 0x7D, 0x7C, 0x7B, 0x7A, 0x79, 0x78, 0x77, 0x76, 0x75, 0x74, 0x73,
0x6F, 0x6E, 0x6D, 0x6C, 0x6B, 0x6A, 0x69, 0x68, 0x67, 0x66, 0x65, 0x64, 0x63,
0x4F, 0x4E, 0x4D, 0x4C, 0x4B, 0x4A, 0x49, 0x48, 0x47, 0x46, 0x45, 0x44, 0x43,
0x3D, 0x3E, 0x3F,
0x5F, 0x5E,0x5D, 0x5C,0x5B, 0x5A, 0x59, 0x58, 0x57, 0x56, 0x55, 0x54, 0x53,
0x3F, 0x3E, 0x3D
The main function initializes the ADC, LCD, VDAC, Analog Buffer, and UART.
It also initializes DMA by allocating/configuring a DMA channel and
Transaction Descriptor and also copies the voltage table address to the DAC
address. In the main loop, it starts and waits for an ADC conversion, then
it displays the ADC raw count to the LCD, transmits the raw count serially,
and sets the DMA clock divider proportional to the raw count.
Sample Projects
73
[+] Feedback

Related parts for CY8CKIT-001