cannot toggle PTA3 MC9S08SH32

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

cannot toggle PTA3 MC9S08SH32

ソリューションへジャンプ
388件の閲覧回数
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 解決策
374件の閲覧回数
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 返答(返信)
347件の閲覧回数
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 件の賞賛
返信
375件の閲覧回数
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 件の賞賛
返信