1 of 1 people found this helpful
1. The USB-Serial Test Utility is provided to communicate with the on-board EEPROM as I2C slave. To interface with any other I2C device, you could create your own host application and you could refer to the example applications present with the USB-Serial SDK at- <install directory>\Cypress\USB-Serial SDK\examples\usbserialexample
2. Jumpers J17 and J21 connect to the SCL and SDA lines on the EEPROM (U7) and as you mentioned, the USB-Serial device receives the data from the utility trough USB and writes to the EEPROM over I2C lines. Similarly it reads from the EEPROM and sends the data back to the utility through USB.
3. If you removed the shorts on the jumpers, the I2C lines would no longer be connected to the EEPROM (with pull ups on the lines) so you can directly connect to the SCL/SDA lines of your external device to Pin 2 on the J17, J21.
4. Please refer to point 2, you could create an application to send the commands using the I2C APIs (kindly check the API Guide in the SDK at <install directory>\Cypress\USB-Serial SDK\documentation for more details). The APIs will send the vendor commands to the device via USB and it will perform I2C read or write to your external device as per the API.
Thank you for your reply! I understand better now.
However I am not sure about how to proceed. I have a PSOC 41xx DVK, and a set of i2c SDA and SCL pins are connected with jumper cables to the J17 and J21 jumpers on the CYUSBS234 DVK.
My PSOC device is programmed as an I2C slave and I can change led colors by sending i2c commands to it with the bridge control panel application.
1. I thought I could just use bridge control panel to interact with the CYUSBS234 kit, and send the I2C commands to it (then it would be able to send the same commands to the PSOC 4), but bridge control panel does not find the CYUSBS234 kit so this doesn't seem to be an option. Can I use bridge control panel with CYUSBS234 if I setup something differently? I am looking for the simplest way to talk to the psoc!
2. About the APIs you mentioned, the documentation lists the APIs, but how do I write/program the device? What application am I supposed to use? Is it PSoC creator? Because even after installing the kit setup, I cannot choose this device for a new project. For example, if I wanted to program one of the serial examples into my CYUSBS234 kit, what software do I need to use?
-As you mentioned, the Bridge Control Panel does not support the USB-Serial and hence you cant use it to send I2C commands to the PSoC 4. This is because the application only recognizes a certain set of devices such as CY3240, MiniProg3, KitProg, TrueTouchBridge etc. Please refer to the Help section on the Bridge Control Panel for more information on the supported devices.
-Please note that the USB-Serial is a fixed firmware device and you cant change the firmware using an IDE such as the PSoC Creator. You could update the device configuration using the USB-Serial Configuration Utility which is also present in the SDK. The examples present for the kit are host application examples which will allow you to send commands to the device (using the above mentioned APIs) which are already supported in the firmware.
If you are using the PSoC 4 as an I2C slave, please refer to the example command line application for I2C master in the USB-Serial SDK at the path-
<install directory>\Cypress\USB-Serial SDK\examples\usbserialexample\i2cmaster
You could change the I2C slave address to that of your PSoC 4 device and test the same.