No.7309 作者:xyzwp2000 邮件:xyzwp2000@sohu.com ID:2110 登陆:6次 文章数:4篇 最后登陆IP:157.80.96.49 最后登陆:2006/6/5 14:03:36 注册:2002/5/9 11:00:00 财富:20 发帖时间:2002/5/9 11:02:00 发贴者IP:211.98.81.11 标题:xyzwp2000:AVR单片机:急!请高人指点,我用GCC-AVR编程可是中断总也不开! 摘要:No.7309AVR单片机:急!请高人指点,我用GCC-AVR编程可是中断总也不开! /* Title: AVR-GCC test program #2 for the STK200 eva board Author: Volker Oth Date: 4/1999 Purpose: Flashes the LEDs on Port B by using a timer interrupt needed Software: AVR-GCC to compile needed Hardware: ATS90S8515/8535/2313/mega on STK200/300 board Note: To contact me, mail to volkeroth@gmx.de You might find more AVR related stuff at my homepage: <a href=http://members.xoom.com/volkeroth target=_blank> </a> */ #include <io.h> #include <interrupt.h> #include <signal.h> unsigned char led; SIGNAL(SIG_OVERFLOW0) /* signal handler for tcnt0 overflow interrupt */ { outp(~led, PORTB); /* invert the output since a zero means: LED on */   ......
>>返回讨论的主题
|