why is this?
P2SEL & amp;=~ 0 XFF.//0 xc0;//bit function selection for input/output=0 pin
P2DIR=0 xc0;//P2.6, P2.7 pin output, other input
P2REN |=0 XFF;//can pull up and down to make
P2OUT=0 xc0;//1100 0000 0011 1111
P2IE & amp;=~ 0 XFF.
P2IFG & amp;=~ 0 XFF.
CodePudding user response:
Input mode is pulled up and downCodePudding user response:
Don't pull up and down the configuration to output effect, cut into input will impact