Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

Touch Panel and a shared I2C Bus with a 2nd device

$
0
0

Synergy 1.3.3, S5, Custom Board, FT5x06 Touch Panel controller.

My Touch Panel is sharing its I2C Bus with a 2nd device, LTC2942 Battery Gas Gage.

The Touch Panel Framework does not play well with others, so I have attempted to replace the Framework with my own code.

I have the 2nd Device working with the I2C bus, but not the Touch Panel.

See www.newhavendisplay.com/.../FT5x06.pdf

According to the Touch Screen's manual, to read its registers, it uses:

Start Write Register# Stop

Start Read Value Stop

 

The first Write and Read will work, but the second attempt will fail. The Synergy I2C code indicates that the a timeout is occurring at the end of the Write, or the beginning of the Read.

Thread #1 1 (single core) (Suspended : Step)
_txe_event_flags_get() at txe_event_flags_get.c:119 0x36bba
sf_i2c_common_wait() at sf_i2c.c:645 0xe316
SF_I2C_Read() at sf_i2c.c:263 0xded0
ft5x06_payload_get() at touch_panel_i2c_ft5x06.c:209 0x216b2
touch_thread_entry() at touch_thread_entry.c:38 0x218e0
touch_thread_func() at touch_thread.c:79 0x208f8
_tx_thread_shell_entry() at tx_thread_shell_entry.c:164 0x38b30
0xffffffff

 

See screen capture from a Saleae Logic Logic Analyzer.

In order to trouble shot this, I built a project for the PE-HMI1 kit. The code that attempts to access the 2nd I2C Device is disabled so that the Touch Panel code can be debugged. The project is based upon the GUIX_Hello_World_PE_HMI1 project. See attached project.

Does anyone have a suggestion?

 

Thanks,

Bruce

(Please visit the site to view this file)

 

 

 

 


Viewing all articles
Browse latest Browse all 5781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>