With a PIC 32MX I have been struggling to get a touch screen working via SPI using the most popular China-made 7"TFT ensemble. The board comes equipped with an XPT2046 resistive touch screen controller which, in frustration, I have now replaced with a TI ADS7843 (but no improvement).
I only need 8 bit resolution for the XY coordinates but I'm getting wildly inconsistent (low) numbers for my XY. The main reason for this post is to ask you to please look at the scope traces in the attachment.
Obviously, the top trace is the SPI clock; the next shows the X and Y commands b'11011000' and b'10011000' and the final trace shows the two 8 bit 'replies' from the controller chip.
My question is shouldn't the replies have the same duration as the (master) clocking - because they are obviously slower. The clock frequency of ~1.3MHz should be well within the capability of this chip.
I only need 8 bit resolution for the XY coordinates but I'm getting wildly inconsistent (low) numbers for my XY. The main reason for this post is to ask you to please look at the scope traces in the attachment.
Obviously, the top trace is the SPI clock; the next shows the X and Y commands b'11011000' and b'10011000' and the final trace shows the two 8 bit 'replies' from the controller chip.
My question is shouldn't the replies have the same duration as the (master) clocking - because they are obviously slower. The clock frequency of ~1.3MHz should be well within the capability of this chip.