How to configure Reset Pin as GPIO in MC9S08PA4 device

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

How to configure Reset Pin as GPIO in MC9S08PA4 device

485 Views
ajaybharti
Contributor I

Hi All,

 

I am using MC9S08PA4VTG in which pin PTA5_FTM1CH0_IRQ_RESET as input and PTA4_ACMPO_BKGD_MS as output.

But at the startup of my program the control halts until we manually Pullup and pulldown PTA5_FTM1CH0_IRQ_RESET pin and then our program starts.

 

Could some one also faces the same issue, and how to over come this issue??

 

Thanks,

Ajay

Labels (1)
0 Kudos
1 Reply

352 Views
david_diaz
NXP Employee
NXP Employee

Hello Ajay,

According to the S08PA Reference Manual, the PTA4 pin contains an internal pullup resistor if BKGD function is enabled, and this function is enabled by Reset.

In this case I recommend to disable the BKGD function on SOPT1 register (bit BKGDPE).

Regarding the PTA5 pin, that shares the pin functionality with the RESET, I also recommend to clear the RSTPE bit from the SOPT1 register in order to make the pin function as a GPIO.

Hope this information will be useful for you.

Have a great day. :smileyhappy:

Best Regards,

David Diaz.

0 Kudos