智能车制作
标题:
关于IO引脚问题
[打印本页]
作者:
lingdongwoxin
时间:
2012-5-21 20:24
标题:
关于IO引脚问题
大家看看这段程序 #include <hidef.h> /* common defines and macros */
#include "derivative.h" /* derivative-specific definitions */
void main(void)
{
/* put your own code here */
EnableInterrupts;
DDRB=0x01;
PORTB_PB0=0;
if(PORTB_PB1==0)
PORTB_PB0=1;
for(;;) {
_FEED_COP(); /* feeds the dog */
} /* loop forever */
/* please make sure that you never leave main */现在我把脚 PORTB_PB1=0但PORTB_PB0不等于1
}
欢迎光临 智能车制作 (http://dns.znczz.com/)
Powered by Discuz! X3.2