Input pin PTA4 not reading HIGH even when forced HIGH externally

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

Input pin PTA4 not reading HIGH even when forced HIGH externally

ソリューションへジャンプ
2,163件の閲覧回数
TKB
Contributor II

I am using the FXTH870912DT1 and by default the PTA4 pin is supposed to work as an input. In my code, Background mode is disabled, and I read the PTA4 pin and it does not read HIGH even though I have forced it HIGH through an external MCU's GPIO. 

The PTA4 pin has been also externally pulled HIGH to VDD using a 4.7 kOhm resistor. I have also measured the voltage at PTA4 pin using a multimeter and it is reading 3.25V.

So what am I doing wrong here?

 

Thanks

Tushar

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
2,117件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Tushar,

I have contacted an application engineer for an advice. For his answer please see the description.

I apologize for confusion and inconvenience. 

DESCRIPTION

PTA4 pin has two functions: BKGD and GPIO output-only. PTA4 cannot be used as GPIO input. I see that the FXTH8709xx datasheet indicates that the pin is input-only, and this is an error. It has been corrected it the datasheets/manuals of the other part numbers, but not this one apparently. Sorry for the confusion.

 

With Best Regards,

Jozef

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
2,156件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Dear Tushar,

could you please state from which register are you trying to read it in the PTA4? Is it from the PTADD register?

JozefKozon_0-1623062134237.png

 

With Best Regards,

Jozef 

0 件の賞賛
返信
2,153件の閲覧回数
TKB
Contributor II

Hi Jozef

I am trying to read from the PTAD register, Bit 4.

TKB_0-1623066347845.png

 

Regards,

Tushar

0 件の賞賛
返信
2,137件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Dear Tushar,

there shouldn't be a problem to read the Bit 4 high in the PTAD register if there is 3.25V on the PTA4 pin. Could you please double check how is the Bit 1 BKGDPE set in the SIMOPT1 register?

JozefKozon_1-1623145367306.png

Could you please check the VDD voltage? The high voltage on the PTA4 pin should be minimally 0.7*VDD.

JozefKozon_2-1623145523340.png

With Best Regards,

Jozef 

0 件の賞賛
返信
2,130件の閲覧回数
TKB
Contributor II

Hi Jozef

Just to be doubly sure, I explicitly made the BKGDPE bit to 0.

SIMOPT1 = (SIMOPT1 | SIMOPT1_STOPE_MASK | SIMOPT1_COPE_MASK ) & (UINT8)(~((UINT8) (SIMOPT1_COPCLKS))) & (UINT8)(~((UINT8)(SIMOPT1_BKGDPE_MASK)));

Still, it doesn't work.

Regards,

Tushar

0 件の賞賛
返信
2,118件の閲覧回数
JozefKozon
NXP TechSupport
NXP TechSupport

Hi Tushar,

I have contacted an application engineer for an advice. For his answer please see the description.

I apologize for confusion and inconvenience. 

DESCRIPTION

PTA4 pin has two functions: BKGD and GPIO output-only. PTA4 cannot be used as GPIO input. I see that the FXTH8709xx datasheet indicates that the pin is input-only, and this is an error. It has been corrected it the datasheets/manuals of the other part numbers, but not this one apparently. Sorry for the confusion.

 

With Best Regards,

Jozef

0 件の賞賛
返信
2,102件の閲覧回数
TKB
Contributor II

Thanks for the clarification Jozef.

Tushar