3 Replies Latest reply on Sep 14, 2011 2:02 AM by sojan.francis

    Reading the status of port pin in CY8C9560A

    sojan.francis

      I need to obtain the status of a port pin of CY8C9560A after sending a value. Can I get the status by reconfiguring the same port as input and reading it?

        • 1. Re: Reading the status of port pin in CY8C9560A
          pmad

          If you meant that at one moment you want to configure a pin as an output and after some time as an input then yes you can do that.

             

           

             

          Best regards,

             

          Pushek

          • 2. Re: Reading the status of port pin in CY8C9560A
            sojan.francis

             

               

            Let me elaborate.

               

            For example, suppose port A is configured as output port and the value 32H is sent. Now it is reconfigured as input port and read. Would I get back the value 32H?

            In the datasheet attached, it says in page 3 that, "

            It is significant for me because I have to include a status check of the port in my project.

            Regards

            Sojan

             

             

             

             

             

             

             

            When the Input register is read, the external pin logic levels are captured and transferred".
               

             

             

             

               

             

               

             

               

              

               

              

            • 3. Re: Reading the status of port pin in CY8C9560A
              sojan.francis

              Let me elaborate.

                 

              For example, suppose Port A is configured as output port and a value 32H is sent. Now it is reconfigured as input port and is read. Would I get back the value 32H?

                 

              In the datasheet attached, it says in page 3 that "when the input register is read, the external pin logic levels are captured and transferred".

                 

              It is significant for me since I have to include a status check of the port in my project.

                 

              Regards

                 

              SOJAN