The PS2 pin of s912zvml64 cannot be output

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

The PS2 pin of s912zvml64 cannot be output

ソリューションへジャンプ
2,245件の閲覧回数
maxxu
Contributor IV

Hi

   I found a problem during debugging。The PS2 pin of s912zvml64 cannot be output

I use the following settings

   DDRS_DDRS2 = 1;

   DDRS_DDRS3 = 1;

   DDRS_DDRS4 = 1;

   PS3,PS4 Can output normally,But,PS2,The output is always out of control, and I / O seems to be in the input state all the time

  When I set these three I / O to the input mode, the function of reading Hall signal is normal. In another project, I use these three I / O for output. As a result, only PS3 and PS4 can be controlled. It's really strange

  

0 件の賞賛
返信
1 解決策
2,218件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

Possible issues:

1) There is something connected to the pin externally what influences value at the pin
2) There is alternative function enabled and routed to the pin. For example RxD of the SCI. If alternative function(s) is enabled at the pin ten the function with highest priority takes precedence and controls the pin.
3) Somewhere in you SW you accidentaly change the direction of the pin.
4) The pin is destroyed (check behavior with simplified SW on another board)

Best regards,.
Ladislav

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
2,219件の閲覧回数
lama
NXP TechSupport
NXP TechSupport

Hi,

Possible issues:

1) There is something connected to the pin externally what influences value at the pin
2) There is alternative function enabled and routed to the pin. For example RxD of the SCI. If alternative function(s) is enabled at the pin ten the function with highest priority takes precedence and controls the pin.
3) Somewhere in you SW you accidentaly change the direction of the pin.
4) The pin is destroyed (check behavior with simplified SW on another board)

Best regards,.
Ladislav

0 件の賞賛
返信
2,210件の閲覧回数
maxxu
Contributor IV

YES,Problem found, MODRR0 was accidentally set,thank you.

タグ(1)
0 件の賞賛
返信
2,234件の閲覧回数
aaronlee
Contributor V

Hi,

 

	DDRS_DDRS2 = 1;		// Set PS2 as Output
  	for(;;)
  	{
		PTS_PTS2 = 1;				// Set PS2 to High
  		Cpu_Delay100US(5000);		// Delay 500ms
		PTS_PTS2 = 0;				// Set PS2 to Low
  		Cpu_Delay100US(5000);		// Delay 500ms
  	}

 

Best Regards,

Aaron

0 件の賞賛
返信
2,225件の閲覧回数
maxxu
Contributor IV

As you said, PS2, PS3 and PS4 are configured in this way, but PS2 cannot be controlled, while PS3 and PS4 are normal

0 件の賞賛
返信