4 Replies Latest reply on Jul 12, 2015 10:16 AM by coderun

    PRT0DR Error

    coderun

      Hi guys,

         

      When I run below code, if lope is working but else loop is not working. But if x deleted and 0 wrote instead of x, it is working. 

         

      I can not see the failure.. Do you have an idea ? (device is CY8C21434 and code is entering else and if loop)

         

              int x;

         

      if (ENABLE == b_value)

         

      {

         

      *((&PRT0DR) + 0) |= 0x01;

         

      }

         

      else 

         

      {

         

      x = 0;

         

      *((&PRT0DR) + x) &= ~(0x01);

         

      }