1 Reply Latest reply on Jul 1, 2019 4:26 AM by BragadeeshV_41

    switch analog pin to digital pin? (resistive touch screen controller)



      Windows 10

      PSoC Creator 4.2

      PSOC 63

      MCU: CYBLE-416045-02


      I am trying to read from a 4 wire resistive touch screen. I found an app note that shows the pin configureations


      It requires 4 pins two analog and two digital

      to read from both X and Y directions on the screen you need to switch the digital and analog pins (digital to analog and analog to digital)


      this is my problem when I try to switch the pins and read the other dimension the readings are random ranging from 0xFF00 to 0x1000


      when I use only one direction without trying to change the pin drive mode it works fine, but then  cant read touch location.

      attached is my project.

      What am I missing?

      thank you.