hcs12g128 PAD pins output?

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

hcs12g128 PAD pins output?

跳至解决方案
652 次查看
sinanatilla
Contributor II

Can I use PAD pins as output?

标签 (1)
1 解答
515 次查看
iggi
NXP Employee
NXP Employee

Sure you can.

Just set the bits to logic 1 in the DDR0AD or DDR1AD registers. This will configure the Port AD as output.

Then write desired value to PT0AD or PT1AD registers to get the high/low level signal on Port AD pins.

Detailed info in the S12G ref.manual.:MC9S12GRMV1

Regards,

iggi

在原帖中查看解决方案

1 回复
516 次查看
iggi
NXP Employee
NXP Employee

Sure you can.

Just set the bits to logic 1 in the DDR0AD or DDR1AD registers. This will configure the Port AD as output.

Then write desired value to PT0AD or PT1AD registers to get the high/low level signal on Port AD pins.

Detailed info in the S12G ref.manual.:MC9S12GRMV1

Regards,

iggi