Hi!
I'm using TSC2007 touch controller with STM32f103 via I2C. The interface is working, i'm getting accurate data from TSC2007 but the communication is not consistent. I'm facing the following issues:
1.Sometimes the I2C gets stuck in lockup state when the address byte is sent i.e SCL goes low and remains there. My I2C cycle is as provided in the datasheet.
2. The TSC2007 rejects the setup command "0xB0". So now I'm not sending the setup command and letting the TSC work on default settings.
3. I'm doing testing in polling mode i.e i'm not using the PENIRQ signal but finally i would like to work with the interrupt. The problem here is that I'm getting interrupt from TSC continuously every 500ns when it should give an interrupt only when the panel is touched. I checked on the DSO and getting the interrupt signals as falling edge spikes not a proper Square wave signal. Is this correct?
Hardware Connection::
The TSC 2007 is seperatly mounted on another board and all signals to the STM and touch panel(4-wire resistive) have been made using wire.The I2C bus has a pull-up of 4.7Kohms(3.3V). Also I have added decaps 0.1 and 0.01 uF. I also connected a pull-up(2.2Kohm) to the interrupt PENIRQ and later removed it. And their were no changes with the output with respect to interrupt.
Please provide some suggestions specifically for the I2C. Thanks a lot!
Regards
Gaurav