Modify drive mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable
        When i use cube ice and 21x34 pod practice modify IO port,   
Pod only connect P17 to voltage meter, no other external component.   
the code make me confuse. (PS. Designer 5.0)   
------------------------------------------------------------------------------------------------   
PRT0GS &= ~0x08; //disconnect from global bus   
PRT0DM2 |= 0x08;   
PRT0DM1 &= ~0X08; //DM[2:0]=100, Slow strong high, high-z low   
PRT0DM0 &= ~0x08;   
PRT0DR &= ~0x08;   
   
PRT3GS &= ~0x02; //disconnect from global bus   
PRT3DM2 |= 0x02;   
PRT3DM1 &= ~0x02; //DM[2:0]=100, Slow strong high, high-z low   
PRT3DM0 &= ~0x02;   
PRT3DR |= 0x02;   
-----------------------------------------------------------------------------------------------   
P17 is modified to low normally,   
then modify P31 ,   
P17 become high.....   
   
Can any one tell me why ? please.   
   
=====================================================   
I forget the P17 and P31 both connect to analog bus....   
Forget my stupidity.   
0 Likes
1 Reply