3 Replies Latest reply on Oct 20, 2018 1:29 PM by r.knowles_1565556

    CY8CKIT-059 supporting multiple I2C traffic


      Hi All,


      I'm working with a CY8CKIT-059 and I'm hung up on a I2C question that I'm hoping someone smarter than me can answer.


      My basic design is pretty simple, using an I2C element I'm sending formatted text to an OLED display (1" EBAY device) with the usual informational messages an application would be sending to such a display.


      Having accomplshed that, I'm now ready to move on to doing some data taking, but to do that I'll need to get some precise timestamps by communicating with a second I2C device, a DS3231AS based mini-board (also of Ebay origins).


      My question is this - can I talk to this board using the same I2C bus as the OLED Device or do I need to set up another I2C element with a separate SDA/SCL pair?


      I might add here that I eventually wish also to add a third SD card I2C-based device to do data logging to, but one step at a time.


      I'm using PSOC Creator 4.2.



        • 1. Re: CY8CKIT-059 supporting multiple I2C traffic

          You can connect more than just two (2) devices to a single I2C bus. Each device must have a different address. and must act as slave.



          • 2. Re: CY8CKIT-059 supporting multiple I2C traffic

            Hi Bob,


            Thanks for your reply, sorry I've been dawdling in my response.


            I've been trying to connect to the second I2C device and decided to try a scan of the I2C bus to find out what address it really was showing up as.  I found your I2C Scan routine from Last year and have adapted (fixed the device settings) to work with my CY8CKIT-059.


            Besides stipulating the processor type, adjusting some of the I2C and UART calls, and setting the 3.3VDC settings, it runs - sort of.  It starts up normally and seems to be running like crazy, but not producing any output.  After about 5 minutes of doing this, it spit out "Device at 0x00 found" and then just continued running.  I've inspected the code and it makes sense to my newby mind, but I'm sure there are differences between PSOC4 and PSOC5 that I don't yet understand.


            Has anyone successfully used this program with a CY8CKIT-059?  Do you have a more recent version of this seemingly useful program?


            Thanks again


            Rich Knowles

            • 3. Re: CY8CKIT-059 supporting multiple I2C traffic

              Also -, I have an OLED display on that bus which works, and a RTC module on the same bus that I'm trying to understand the I2C address is.