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

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

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

Jump to solution
868 Views
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 Kudos
1 Solution
806 Views
123zmz123
Contributor I
Solution is here:
ATDDIEN_IEN6 = 1;
ACMPC_ACDIEN = 1;
 
 

View solution in original post

1 Reply
807 Views
123zmz123
Contributor I
Solution is here:
ATDDIEN_IEN6 = 1;
ACMPC_ACDIEN = 1;