How to configure resisitive touch screen with i.MXRT1052?

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

How to configure resisitive touch screen with i.MXRT1052?

ソリューションへジャンプ
1,751件の閲覧回数
dimitarmarinov
Contributor II

Hello,

I am trying to get the TSC controller running on an RT1052 board.

There is driver for TSC in the SDK. There are functions to initialise the TSC module and to configure it.

Unfortunately there is no working example in the SDK.

From the refference manual, I do not understand how the pins for TSC should be configured. If I use the Pins tool, I choose GPIO_AD_B1_11, GPIO_AD_B1_12, GPIO_AD_B1_13, GPIO_AD_B1_14 and GPIO_AD_B1_15 as both ADC_IN and GPIO, no pull-ups, no keepers and keepers disabled. Is this correct?

Then how to configure the ADC channels? What clock to use?

ラベル(1)
1 解決策
1,566件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Dimitar Marinov ,

Thanks for your reply.
I've reattached the Fig, please check it.
1) Then do I need to configure 2 trigger chains with a length of 1?
-- Yes, you're right.

Have a great day,
TIC

 

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

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
1,091件の閲覧回数
RLennox
Contributor I

Were you ever able to get this working? I am currently facing the same issues.

0 件の賞賛
返信
1,566件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Dimitar Marinov ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) I choose GPIO_AD_B1_11, GPIO_AD_B1_12, GPIO_AD_B1_13, GPIO_AD_B1_14 and GPIO_AD_B1_15 as both ADC_IN and GPIO, no pull-ups, no keepers and keepers disabled. Is this correct?
-- Yes, it's correct.
2) Then how to configure the ADC channels?
-- As the attachment shows.

pastedImage_1.png
3) What clock to use?
-- I'm very sure what the question means, whether you can clarify it.

Have a great day,
TIC

 

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

0 件の賞賛
返信
1,566件の閲覧回数
dimitarmarinov
Contributor II

Hi,

Thank you for the prompt answer. 

I do not see an attachment in your answer.

What I can guess from the reference manual, for 4 wire touch screen, I should use ADC2 channels 1-4. Then External Trigger should be configured. The  TSC_BYPASS and EXT0_TRIG_ENABLE bits should be set in ADC_ETC. Then do I need to configure 2 trigger chains with length of 1?

Regarding the ADC clock, I guess the convertion speed is not important, and the state machine of TSC analogue is controlled by separate timings.

0 件の賞賛
返信
1,567件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi Dimitar Marinov ,

Thanks for your reply.
I've reattached the Fig, please check it.
1) Then do I need to configure 2 trigger chains with a length of 1?
-- Yes, you're right.

Have a great day,
TIC

 

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

0 件の賞賛
返信