How to config mc9s12's PADx Pin as normal I/O

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

How to config mc9s12's PADx Pin as normal I/O

跳至解决方案
940 次查看
123zmz123
Contributor I

Hi,guys.I'm using mc9s12g64 's PAD6 and PAD7 as  IIC BUS PIn, But I found PAD6(SDA ) Can't read the input state(0 or 1) , i have already set the DDRX as input and read the PTI1AD's value, but i found nothing changed whether the input is high or low,based on the datasheet ,i try to set the ATDDIEN_6 as 1 to enable the digital input ,but no affect.did I forget some other settings?

0 项奖励
1 解答
878 次查看
123zmz123
Contributor I
Solution is here:
ATDDIEN_IEN6 = 1;
ACMPC_ACDIEN = 1;
 
 

在原帖中查看解决方案

1 回复
879 次查看
123zmz123
Contributor I
Solution is here:
ATDDIEN_IEN6 = 1;
ACMPC_ACDIEN = 1;