Cypress Perform

Home > Documentation > Code Examples

PSoC 1 Code Examples

Last Updated: 04/02/2012

Title
Description

Implementing Half-duplex UART (using 
dynamic reconfiguration)
This project demonstrates a serial port interface between PSoC 1 and the PC
with a baud rate of 19.2 Kbps. Half-duplex UART is implemented using dynamic
reconfiguration where the same digital block is shared by the transmitter (TX8)
and  the receiver (RX8).

Delay Functions
This project provides the ready made APIs for generating software delay and
are accessible from both assembly and C files.

Float to ASCII conversion
This project provides a method of how to send Float numbers via UART or
display them on LCD by using ftoa function from stdlib library.

Interfacing an I2C based RTC (Real Time Clock),  DS1307 to PSoC 1
This project demonstrates how to interface the PSoC® 1 to an I2C Real
Time Clock (DS1307) and display the date and time on the LCD.

Generation of sine wave in PSoC1
This example demonstrates a simple method of generating a sine wave
of 60Hz in PSoC 1  using a 64 point look up table (LUT), a DAC, and a time base.

Interfacing an I2C EEPROM using I2CHW User Module
This example demonstrates the usage of I2CHW user module configured as 
master to communicate with an external I2C EEPROM (24C256) which is an I2C
slave.

Interfacing an I2C based temperature sensor, LM75 to PSoC 1
This example uses the I2CHW Master user-module to retrieve ambient
temperature from the LM75 sensor at regular intervals of time and display
it on the LCD after required rocessing.

Configuring E2PROM user module
This project demonstrates how to configure an E2PROM user module,
how to read andwrite to E2PROM and display the contents of E2PROM on an 
LCD.

Interfacing PSoC1 to an SPI EEPROM
This example demonstrates the usage of SPIM user module (SPI Master) to
communicate with an external SPI EEPROM.

PowerPSoC® - Measuring Channel Current Using the    Analog Input Multiplexer (AINX)
This project demonstrates how the current through any of the channels can be
monitored using the AINX block, using the CY3268 PowerPSoC demonstration kit.

Measuring Relative Humidity / Pressure using PSoC1
This project demonstrates how to interface external humidity and pressure sensor with PSoC1 and display it on the LCD after required processing.

Setting Up GPIO Interrupts
This example provides the steps required to configure GPIO interrupt.
It also provide code snippets whichcan be used in the project for the
actual implementation.

Programming PSoC 1 using an I2C Bootloader
This project uses the I2C bootloader User Module with full API support option to
implement a bootloader. To emonstrate how the bootloading works, first
program a PSoC device with one application, and then bootload the device with
the Bridge ControlPanel (I2C PC host software) over  the CY3240 USB-I2C Bridge

Using an incremental ADC to measure 0 to 5V
This project attached demonstrates how to use an ADCINCVR to measure a
0 to 5Volt signal and display the corresponding decimal value on a character
LCD

Generation of non-overlapping clocks (PWMs with Dead  Band)
This project demonstrates the implementation of PWMDB for generation of
non-overlapping clocks using CY8C29466 device.

Using UART in PSoC1
This example provides an example of how to configure UART for a particular
baud rate. It also shows how to handle the transmission and reception of data
via UART on both PC and device side.

Implementation of Virtual COM port / USBUART
This project demonstrates working of the USBUART module. It is designed
to communicate with HyperTerminal (PC application) and display the
typed content on a character LCD..

ADC10 to measure 0 to 4V
This project demonstrates the use of a single slope ADC10 UM to measure
a 0 to 4 V input and display the result on an LCD

Usage of PSoC 1 incremental ADCs
This example shows how to configure Incremental ADCs
(ADCINC and ADCINCVR)inside PSoC1 to measure analog signal
and display on LCD. It makes use of PGA  and INSAMP to route the 
analog inputs to ADC input.

Interfacing I2C EEPROM with using software I2C in PSoC 1
This example demonstrates the usage of software I2C user module configured
as master to communicate with an external I2C EEPROM (24C256) which is an
I2C  slave.

Using Pseudo Random Sequence (PRS) generator as PRS Pulse Width modulator (PWM)
This example provides an example of how to use PRS as a PWM.
It also compares the frequency spectrum of PRS PWM with a conventional
PWM.

Pseudo Random Sequence Generator using PSoC 1
This project demonstrate the use of an 8-bit PRS user moduler to generate
a random number sequence for the given modular polynomial and seed value.
The numbers are generated at an interval of 10 ms and the series is transmitted
using a TX8 serial transmitter.

Implementation of OneShot
This project demonstrates the operation of OneShot8 User Module that
produces a single pulse in response to an input signal.

Implementation of DualADC
This project demonstrates the usage of DualADC UM to simultaneously
digitize two analog inputs and display the converted result on LCD.

Usage of Delta-Sigma ADC and UART
This example demonstrates the usage of DelSigADC user module with
second order modulator to convert analog input signal into digital data and
transmit the same using UART to hyperterminal on PC.

Usage of DigBuf to route signals at the output
This project demonstrate the usage of DigBuf UM to route the internal signals
at the output.

Usage of CRC generator
The attached document and project demonstrate the operation of CRC16
user module. It is designed to transmit a string of 10 characters using SPI master
(SPIM) user module. The bit stream is then externally fed back to a CRC16.

Configuring Programmable threshold comparator
This project demonstrates the usage of CMPPRG user module to compare
a voltage signal against a threshold. Comparator output is then routed
on a pin via digital buffer (DigBuf).

Usage of TRIADC
This project demonstrates the operation of TRIADC user module. It is
designed to measure three analog signals and display the digital output
from the TRIADC on a LCD.

Using CapSense® Buttons for LED Control on the CY3267 PowerPSoC® Evaluation Kit
This project aim to configure the CapSense buttons to control the LEDs.
I2C communication is used between the two devices to communicate the
status of the CapSense buttons.

Signal Rectifier + Low Pass Filter Using PSoC® 1
This project implements an all hardware full wave rectifier with a low pass
filter to generate an avereage DC signal. It does not use any external
hardware for the implementation of this design.

这些文档仅供参考。赛普拉斯、赛普拉斯管理层、雇员及分销商对翻译错误不承担任何责任。当您在设计开发过程中使用这些文档时,我们强烈建议您参照英文版本。

これらの文献はあくまでもご参考のためのみに日本語翻訳されています。誤訳によるトラブルが発生した場合、Cypress Semiconductor Corp. 全ての子会社、関連会社、役員、従業員、販売代理店は一切の責任を負いかねます。 最新の英語版オリジナル文献を必ずご参照いただくことをお勧め致します。




Spec No: None; Sunset Owner: PMAD; Secondary Owner: BKLL; Sunset Date: 09/30/12

Rate Code Example

Spec No: None; Sunset Owner: PMAD; Secondary Owner: BKLL; Sunset Date: 09/30/12