"Examples" folder contains PSoC projects and corresponding IIC scripts.
Projects demonstrate how to use I2C interface in "Bridge Control Panel"
software to communicate with target devices. 
Each PSoC project contains "_I2C_Script_Hex_" subfolder with usage I2C
script and output Hex-file (generated by this project and used for testing).

The PSoC Projects (developed in PSoC Designer 5.0 SP5):
1) "FT_Test_LEDs" - demonstrates how to use I2C interface of FirstTouch device
    (CY3270). The FTMF Expansion Card with 3 LEDs on board is used as a target.
    Example script allows to control state of each LED and read predefined sample
    data from I2C buffer.
2) "I2C_Bootloader" - example of I2C Bootloader usage based on AN45683 (located in
    the Documents folder). Example requires CY27443-24PXI device and CY3210-MiniEval1
    board. The USB2IIC Bridge or MiniProg3 device can be used to upgrade Firmware of 
    PSoC chip. This project has a simple program that uses a button to turn on/off 
	two LEDs. LED1 is connected to the pin P2[0], and LED2 is connected to the pin P2[1].
    In the "_I2C_Script_Hex_" folder, the output DLD, TXT and HEX files are generated for 
	2 scenarios. The first scenario is LED1 ON and LED2 OFF, and when the button is pressed, 
	LED1 turns off and LED2 turns on. The second scenario is LED2 ON and LED1 OFF, and
	when the button is pressed, LED2 turns off and LED1 turns on. I2C speed <= 100K.
	DLD file contains only the hex blocks that are reprogrammed by the bootloader including the checksum block.
	This file can be used from "I2C Bootloader" dialog to load content to the connected device.
	TXT file contains the list of I2C commands to bootload the device. Select File > Open, set the "*.txt" file type
	in the file browser window, and open file. The content of the file will be loaded to the "Commands Wondow".
	Select all commands and press Send button.
3) "CapSense_CSD" - the CapSense project based on CSD User Module. It works with
    CY3213 Rev.A board which has 7 CapSense buttons, 1 Slider with 8 sensors. 
	The example script reads out current state of each button or slider's sensors and centroid
	at one I2C transaction. The "CapSense.ini" file contains variable settings of the project. 
	This example is described in AN2352(located in the Documents folder).
4) "Krypton_CSD_part_test" - the CapSense project based on CSD User Module. It works with
    CY3280-20x66 Universal CapSense Controller and CY3280-SLM Universal CapSense linear slider module
	which has 5 CapSense buttons, 1 Slider with 10 sensors. The example script reads out current state of 
	each button or slider's sensors and centroid at one I2C transaction. The "Krypton_CSD_part_test.ini" 
	file contains variable settings of the project.
5) "Tachometer" - measures rotation speed of a fan. Example from AN2352. It was tested
    on CY3210-MiniEval1 Rev.A board with CY27443-24PXI chip in socket. Fan is DC
    powered and generates speed signal in view of pulse width.
6) "ADC_3_Channel" - example from AN2352. Demonstrates how to create low-cost 
    oscilloscope using CY27443-24PXI and Bridge Control Panel software. CY3210-MiniEval1 board
	was used as a test platform. Port 2[0] generates rail-to-rail meander which is sampled 
	by each channel of ADC. The gain factor of each channel is adjustable from I2C script.
7) "Demo_Board" - example board from CY3240-I2USB kit. Example allows to set
    brightness of 2 LEDs, and read out measured values of temperature and light
    sensors. Variable settings are defined in "Demo.ini" file.
8) "SW_Sin_X" - intended for testing of float variables. FW generates sin(x) sample
    on master (script) request. Script reads Sin(x) function from PSoC1 device.
    For the test was used CY27443-24PXI device plugged in socket of CY3210-MiniEval1 board.
9) "SW_MailBox" - intended for testing of imported “MailBox UM” variables. 
	Only one file is used to load I2C commands and variable settings for current example. 
	This file is "SW_MailBox.MBM". Open this file using 'File -> Open I2C MBM File..." 
	and set "Selected address" = 04.
	There are three Inbox (byte - byteInValue, int - intInValue, long - longInValue) and two 
    Outbox (int - intOutValue, long - longOutValue) variables. FW performes:
    intOutValue = byteInValue * intInValue and longOutValue = byteInValue * longInValue.
    For test used CY27443-24PXI device plugged in socket of CY3210-MiniEval1 board. 
	I2C speed <= 100K
10) "SPI_Test_CY3214" - intended for testing of SPI interface using TrueTouchBridge.
    FW allows: to read voltage values of potentiometers 1 and 2, to read state of S1 and S2
    buttons, to control LEDs 1,2,3,4 On/Off. For testing used CY3214 - PSoC Eval USB 
    Rev B board with CY8C24894-24LXFI.Usage details in *.IIC file.
11) "PSoC3_SW_Sin_X" - intended for testing of float variables. FW generates sin(x) sample
    on master (script) request. Script reads Sin(x) function from PSoC3 device.
    For the test was used CY8C3866AXI-040ES3 device.
12) "PSoC5_CapSense_CSD" - the CapSense project based on Capsense_CSD Component. It works with
    CY8C5588AXI-060ES1 pluged in CY8C55 Family Processor Module and CY8CKIT-001 DVK1 Development Board. 
	The example script reads out current state each of two buttons.The "PSoC5_CapSense_CSD.ini" 
	file contains variable settings of the project.
13) "RX8_Sin_X" - intended for testing of UART (RX8) transfer mode in MiniProg3 or COM-port. 
     - to setup FW project to work with MiniProg3 set "Bits per seconds" = 230400
       in "Configure 'UART'" dialog; use "RX8_Sin_X.hex" from "_RX8_Sin_X_" folder.
     - to setup FW project to work with COM-port (for example TTBridge) set "Bits per seconds" = 115200 
       in "Configure 'UART'" dialog; use "RX8_Sin_X_115200.hex" from "_RX8_Sin_X_" folder.
    FW generates sin(x), cos(x) and Meander samples. Bridge Control Panel reads 4 float bytes 
    of Sin and Cos values and two integer bytes of Meander value from PSoC3 device.
    The CY8CKIT-001 PSoC Development Board is used with PSoC3 device plugged in socket.
    MiniProg3 uses following pins configuration:
    5-pin connector: GND and XRES connected to the P2[7].
    10-pin connector: GND and nTRST connected to the P2[7].

Just Script Examples (delivered without PSoC projects):
1) "VccSpeed.IIC" - demonstrates how to setup power and speed of USB2IIC converter
    from script. This is new feature appeared in "Bridge Control Panel v1.0".
2) "I2C_Port_Exapander.IIC" - cites scripts for communication with Cypress I2C Port
    Expander devices. The I2C Port Exapander Evaluation board from CY3242-IOX Rev.A
    kit is required. CY8C9520 device is a target slave. Examples are taken from
    AN2304 (located in Documents). I2C speed <= 100K.