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

    PRT0DR Error

      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;








      x = 0;


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