2 Replies Latest reply on Dec 1, 2018 9:28 AM by bojec_3707286

    UART i2C both use problem

    bojec_3707286

      Hello Friends

       

      i'm trying to use i2c sensor and want to show the sensor value in Serial Monitor in PC

       

      So i try 2 SCB ( UART and I2C)  like the screenshot

       

      and wrote code like this

       

      #include "project.h"
       
      //#define I2C_SLAVE_ADDR      (0x28u)
       
      int main(void)
      {
          CyGlobalIntEnable; /* Enable global interrupts. */
       
          UART_PC_Start();
          //I2C_Start();
       
       
          
          for(;;)
          {
              UART_PC_UartPutString(" PM2008 TEST \r\t" );
              CyDelay(1000);
          }
      }
      

       

      when i did not use i2c block , the monitor gives me correct message for each 1 seconds,

       

      but i use i2c block monitor goes like this

       

       

      it gives me a lots of message, i think something is wrong,,

       

      does somebody have same experience like me ?