5 Replies Latest reply on Mar 29, 2018 6:07 AM by samp

    Psoc designer

    hassanspaceimam_3169771

      Hello all,

       

      I'm trying to turn the the ports of my psoc device by reading from an input from a raspberry pi  2 on port 3 , Ive configured all port drives to be in strong mode

       

      if (PRT3DR & 0x0f ) // if high input from outside

      {

      PRT5DR=0xff;

      PRT1DR=0xff;

       

      }

      else if (PRT3DR & 0x00 )// if low input

      {

      PRT5DR=0x00;

      PRT1DR=0x00;

       

      }

      Is this correct ?