登录
首页 » 嵌入式系统 » 8051 定时器中断

8051 定时器中断

于 2023-04-02 发布 文件大小:31.65 kB
0 206
下载积分: 2 下载次数: 1

代码说明:

使用 8051 定时器作为中断,在嵌入式 C.中编写代码此示例程序演示如何配置定时器/计数器 0 作为一个 16 位定时器。调用中断服务例程 (ISR) 每一次定时器溢出 (0xFFFF 去 0x0000)。在 ISR 中,overflow_countvariable 的增量。若要测试此程序......启动调试器。在 ISR 中的 overflow_count + + 行上设置断点运行该程序。每次调用时中断例程,调试器停止运行该程序。将光标定位在要查看其当前值的 theoverflow_count 变量。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • linux下关于mtd层源代码分析
    嵌入式linux下关于mtd层源代码分析-Embedded linux on the MTD layer under the source code analysis
    2022-02-01 11:23:29下载
    积分:1
  • msp430g2553-SPI
    msp430g2553-SPI
    2022-02-03 06:56:38下载
    积分:1
  • Voltage measurement points of the system and the output of two major signals, vo...
    本系统分电压测量和信号产生输出两大部分,电压测量部分以模拟电路为主,配合放大模块、A/D转化模块、显示模块;通过凌阳单片机进行数据处理,在误差允许范围内显示测量电压值。信号产生以直接数字式频率合成器为核心,经过AT89S52对DDS芯片内部进行控制,使之输出标准正弦波形,利用编程实现频率预置、步进,达到电压输出频率的可调节步进。通过调试与测量完成了题目的基本部分和全部发挥部分的要求并有自己的创新。-Voltage measurement points of the system and the output of two major signals, voltage measurement circuitry to simulate the main part, with the amplification module, A/D conversion module, display module through Sunplus Single-chip data processing, in the range of error allowed shows the value of measuring voltage. Signal generated by direct digital frequency synthesizer for the core of the DDS chip AT89S52 after the internal control standards so that the output sine wave shape, frequency of use of pre-programming, step to the output voltage adjustable frequency step. Debugging and measurement, through the completion of the basic part of the topic and all the requirements to play a part and have their own innovation.
    2023-01-14 20:15:03下载
    积分:1
  • PIC单片机做的逆变器
    PIC单片机做的逆变器,有原理图和整套源代码!适合新手参考,也适合一些工程师直接使用,有详细的功能说明文件。可以下载下来看一下!很有用的,如果有不明白的可以联系我。
    2023-07-13 22:55:02下载
    积分:1
  • 这是关于编程的一本关于应该注意什么样的问题的小册子,此时前辈的经验精华,好好消化:)...
    这是关于嵌入式编程的一本关于应该注意什么样的问题的小册子,此时前辈的经验精华,好好消化:)-on embedded programming on the one should pay attention to what kind of the booklet, now experience the essence of the older generation, properly digest :)
    2022-07-05 02:30:59下载
    积分:1
  • ucos在平台上移植的一般方法和技巧
    ucos在嵌入式平台上移植的一般方法和技巧-ucos transplantation in the embedded platform, the general methods and techniques
    2022-04-10 17:12:11下载
    积分:1
  • 数字钟,欢迎大家指点
    数字时钟,欢迎您指点电子邮件:邮箱:cfdx2004@163.com
    2022-08-22 11:33:14下载
    积分:1
  • 基于 rfid 安全
    此项目基于基于 rfid 安全系统
    2023-06-28 18:30:03下载
    积分:1
  • RS232转RS485电路原理图,值得一看.
    RS232转RS485电路原理图,值得一看.-RS232 to RS485 circuit schematics, worth a visit.
    2022-02-03 14:45:34下载
    积分:1
  • 硬件PCB图,可参考。G2i4nac.rar
    硬件PCB图,可参考。G2i4nac.rar-Hardware PCB map reference. G2i4nac.rar
    2022-02-22 04:34:07下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载