CY3240-I2USB I2C-USB Bridge Guide, Doc. # 001-66660 Rev.**
31
5.
Example Projects
All example projects are available in the CY3240-I2USB kit CD or at the following location:
<Installed_directory>:\Cypress\CY3240-I2USB\Firmware
5.1
Example Project 1: I2C-USB Demo Target Board Project
5.1.1
Project Description
This example project demonstrates the data transfer between target board and host. The target
board has a photodiode to measure light intensity and temperature values, which are acquired by
the PSOC device (CY8C21123) to transmit to host.
This project uses the following modules to display temperature and light intensity values:
ADC10:
Used to obtain the digital values for light intensity and temperature. Input to the ADC mod-
ule is switched between light input and temperature input once every 551 scan cycles
.
EzI2C:
Configures the PSoC on target board as I2C slave and is used to transfer data to the bridge
board where the PSoC configured as I2C master.
PWM8
: Used to handle the LED command from the host and vary the LED intensity accordingly.
[+] Feedback
electronic components distributor