cannot toggle PTA3 MC9S08SH32

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

cannot toggle PTA3 MC9S08SH32

跳至解决方案
360 次查看
anandhram1988
Contributor I

hi, i could not toggle PTA3 pin  for MC9S08SH32 , even i toggle low , it always gives output voltage as high 

config below

PTADD is set to0x08;

标签 (1)
0 项奖励
回复
1 解答
346 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @anandhram1988,

The first step is to set the pin as an output in the Port A Data Direction Register (PTADD).

To change the logic level, you need to write to the Port A Data Register (PTAD).

When you write a value to the PTAD register for PTA3, are you able to see the changes on the pin?

Best Regards,
Pablo

在原帖中查看解决方案

0 项奖励
回复
2 回复数
319 次查看
anandhram1988
Contributor I

 Hi, i tried the above steps still the issue is same is there any other steps or reasons but for port B i can able to get the voltage based on toggling 

0 项奖励
回复
347 次查看
Pablo_Ramos
NXP Employee
NXP Employee

Hi @anandhram1988,

The first step is to set the pin as an output in the Port A Data Direction Register (PTADD).

To change the logic level, you need to write to the Port A Data Register (PTAD).

When you write a value to the PTAD register for PTA3, are you able to see the changes on the pin?

Best Regards,
Pablo

0 项奖励
回复