i.MX6UL Touch Screen detection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6UL Touch Screen detection

ソリューションへジャンプ
1,767件の閲覧回数
yurirellosa
Contributor IV


Hello All

We are using a 4-wire Resistive Touch Screen and are looking for a way to detect if it is physically connected during device startup.

In the reference manual (Chapter 51 Touch Screen Controller), there is a detection mode and debug mode but I could not figure how to get them to work.

Is there already a guide for a way to go about implementing this?

(*On normal settings/operation, there is no problem in getting touch data)

Best Regards

Yuri

ラベル(3)
0 件の賞賛
1 解決策
1,047件の閲覧回数
art
NXP Employee
NXP Employee

The TSC module of the i.MX6UL processor doesn't have any built-in physical touch screen connection detection feature. Since the TSC module operates in combination with ADC and actual measurements are performed by ADC, the possible method of implementing the touch screen connection detection function is to directly access the ADC (without using the TSC module), then apply some voltage (e.g. by enabling a built-in GPIO pull-up resistor of the corresponding ADC GPIO input) to one edge of each resistive plate of the touch screen and then measure the voltage on the other plate edge using ADC. If the touch screen connection is physically broken somewhere, some of the voltages will be absent.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

元の投稿で解決策を見る

0 件の賞賛
4 返答(返信)
1,047件の閲覧回数
yurirellosa
Contributor IV

Hello Arthur

Thank you the advice.

We will try implement the detection process with this method.

Best Regards

Yuri

0 件の賞賛
1,048件の閲覧回数
art
NXP Employee
NXP Employee

The TSC module of the i.MX6UL processor doesn't have any built-in physical touch screen connection detection feature. Since the TSC module operates in combination with ADC and actual measurements are performed by ADC, the possible method of implementing the touch screen connection detection function is to directly access the ADC (without using the TSC module), then apply some voltage (e.g. by enabling a built-in GPIO pull-up resistor of the corresponding ADC GPIO input) to one edge of each resistive plate of the touch screen and then measure the voltage on the other plate edge using ADC. If the touch screen connection is physically broken somewhere, some of the voltages will be absent.


Have a great day,
Artur

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
1,047件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi Yuri,

You could refer to the Touch Screen Controller driver (tsc) for i.MX6UL processor. Please take a look at the following links:

Linux/drivers/input/touchscreen/imx6ul_tsc.c - Linux Cross Reference - Free Electrons

[PATCH 1/5] input: touchscreen: add imx6ul_tsc driver support http://lists.infradead.org/pipermail/linux-arm-kernel/2015-July/359604.html

[PATCH v3 1/5] input: touchscreen: add imx6ul_tsc driver support

Hope this will be useful for you.
Best regards!
/Carlos
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
1,047件の閲覧回数
yurirellosa
Contributor IV

Hello Carlos

Thank you for your response.

Just for clarification, we have no problem receiving/detecting Touch Data from the Touch Screen.

We are indeed using the same using the same "imx6ul_tsc.c" driver as the links.

The problem we have is how to implement detecting the Physical Connection of the Touch Screen.

Whether the device can be seen/detected or not by the CPU or OS (Linux OS in this case).

If you have information regarding this it would be really helpful.

Best Regards

Yuri

0 件の賞賛