1 Reply Latest reply on Jan 12, 2016 11:14 AM by user_1377889

    Psoc 4200M Writing to output port blocks other behavior, why?

    content.librarian

      Hello,

         

      in the attached project I try to adjust the brightness of the onboard LED with a Rotary Encoder

         

      Question 1: If  I enable line 27 ("LED_BLUE_Write(0u);") by the removing the comment signs
                          the rest of the code does not work as I aspect. Turning the Rotary Encoder has no effect!
                          Why is this so? (with the line disabled it works as I aspect!)

         

      Question 2: What do I have to change that the code from line 47 to 69 is executed in an interrupt routine, where the interrupt routine is initiated every time the Rotary Encoder is operated?
                  

         

      Thanks in advance,

         

      Giel Peters