CY3210-PSoCEVAL1 PSoC® 1 Evaluation Kit Guide, Doc. #: 001-66768 Rev. *F
31
5.
Code Examples
Six code examples are included in the following sections. All code examples are available on the
CY3210-PSoCEVAL1 kit DVD or at this location:
<Install_directory>:\Cypress\
CY3210-PSoCEVAL1\<version>\Firmware
.
5.1
My First Code Example
5.1.1
Project Description
This project demonstrates a 12-bit incremental ADC by measuring the voltage of the potentiometer,
transmitting the conversion result on the UART, and displaying it on the LCD. The project uses the
following modules:
ADCINC:
This module processes the programmable gain amplifier (PGA) output at the rate of 180
samples per second and produces the corresponding digital output.
PGA:
This module is used at unity gain to supply the input to ADC.
UART:
This is an 8-bit universal asynchronous receiver transmitter (UART). The clock divider VC3
generates the baud clock for the UART by dividing 24 MHz by 156. The UART internally divides VC3
by 8, resulting in a baud rate of 19,200 bps. The ADC output is sent to the PC using UART module.
LCD:
This module is used to display the ADC output (hex) values. If the ADC has completed
conversion, the output is displayed on the LCD as ASCII text. The same is transmitted to the PC
through a RS-232 cable.
Note
This code example (
C_Example_ADC_UART_LCD
)
is located in the
Firmware
folder.
5.1.2
Creating My First PSoC 1 Project
1. Open PSoC Designer.
2. To create a new project, click
File > New Project
.
3. In the New Project window, select the chip-level icon. Name the project
Example_My_First_P-
SoC_Project,
4. In the
Location
field, enter the path in which the project is to be created.
Содержание PSoC 1 CY3210-PSoCEVAL1
Страница 71: ...CY3210 PSoCEVAL1 PSoC 1 Evaluation Kit Guide Doc 001 66768 Rev F 71 Appendix Figure A 2 Bottom Copper Layer...
Страница 72: ...CY3210 PSoCEVAL1 PSoC 1 Evaluation Kit Guide Doc 001 66768 Rev F 72 Appendix Figure A 3 Top Overlay...
Страница 75: ...CY3210 PSoCEVAL1 PSoC 1 Evaluation Kit Guide Doc 001 66768 Rev F 75 Appendix Figure A 6 Place New Chip...