导航: 老古网老古论坛XMOS公共讨论区XMOS开源项目区单片机程序设计嵌入式系统广告区域
→发表看法:[xyzwp2000]AVR单片机:急!请高人指点,我用GCC



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 */
     ......

>>返回讨论的主题



  发表回复
用户名   *您没有注册?
密码   *
验证码   * .
标题   *
心情
随便说说    我回答你    最新发现    得意的笑   
气死我了    真是没劲    坚决同意    表示反对   
大家过来    好奇怪哟    懒得理它    大家小心   
文件上传
内容


字体:      字体大小:    颜色:
粗体 斜体 下划线 居中 超级连接 Email连接 图片 Flash图片 Shockwave文件 realplay视频文件 Media Player视频文件 QuickTime视频文件 引用 飞行字 移动字 发光字 阴影字 查看更多的心情图标 背景音乐
点击加入表情
                         
选项
有回复时用短消息通知您?

   




老古网执行:16毫秒 最大:7276毫秒 查询6次