No.46068 作者:lele19950907 邮件:xipenglili@126.com ID:120936 登陆:3次 文章数:4篇 最后登陆IP:218.20.63.132 最后登陆:2009/8/29 10:21:53 注册:2008/10/29 10:47:58 财富:112 发帖时间:2008/11/10 14:07:21 发贴者IP:58.61.233.48 标题:lele19950907:谁能指点一下AVR初学者一个简单问题 摘要:No.46068谁能指点一下AVR初学者一个简单问题 #include "avr/io.h" #include "avr/interrupt.h" unsigned int i,j; void delay (unsigned int i)//延时子程序 { for (i;i> 0;i--) { for (j=100;j> 0;j--) ; ;;} } int main ()//主函数 { DDRD &= ~(1 < <7); PORTD |= (1 < <7); // PORTD |= (1 < <3); // PORTD = 0x77; DDRA |= (1 < <7); // PORTA |= (1 < <7); //DDRB |= (1 < <0); // PORTB |= (1 < <0); MCUCR |= (1 < <ISC11)|(1 < <ISC00)|(1 < <ISC ......
>>返回讨论的主题
|