How to configure Reset Pin as GPIO in MC9S08PA4 device

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

How to configure Reset Pin as GPIO in MC9S08PA4 device

651 次查看
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

标签 (1)
0 项奖励
回复
1 回复

518 次查看
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 项奖励
回复