求各位大神指导小弟:congratulate:/***************nus延时****************/void delay_nus(unsigned int t){for(;t>0;t--){_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NOP();_NO...
#includemain(){int i=0;TRISA=1;TRISC=0;while(1){if (RA4==1&&RA5==0){PORTC=0x01;}else if (RA4==0&&RA5==1){PORTC=0x02;}else{PORTC=0x00;}}}用protues仿真,结果是当RA4=1且RA5=0时,POTRC的输出结果是0x00,应该是0x01才对。...