读P1:读P1: unsigned char x; x = P1&0xff; //这种读法比较好,能保证读出P1锁存器的内容。 ..... x = P1; //读引脚
写P1: unsigned char y; P1 = y 发表时间:2003年3月5日10:55:00