cannot toggle PTA3 MC9S08SH32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

cannot toggle PTA3 MC9S08SH32

Jump to solution
358 Views
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;

Labels (1)
0 Kudos
Reply
1 Solution
344 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
317 Views
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 Kudos
Reply
345 Views
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 Kudos
Reply