登录
首页 » c » 嵌入式单片机 利用无符号类型巧妙设计定时函数

嵌入式单片机 利用无符号类型巧妙设计定时函数

于 2022-03-23 发布 文件大小:2.17 kB
0 103
下载积分: 2 下载次数: 1

代码说明:

开启一个1ms定时器中断(此定时器可与其他模块共享),使用无符号数据类型循环计时,巧妙的按需求设计定时模块

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

发表评论

0 个回复

  • IceRiver
    2010-04-14 16:40:35下载
    积分:1
  • 16乘以64点阵
    16乘以16点阵屏,4块8乘以8并排的效果,可实现上移,下移,左移,特效等功能,并且可以开关控制,是一个不错的程序
    2022-03-20 04:41:44下载
    积分:1
  • 学生出勤管理系统
    学生出勤管理系统 该系统要求建立一个简单的学生出勤管理系统,并具有排序、查找、计算、插入、计算、显示等功能。 (1)学生出勤信息包括:出勤信息记录了学生的缺课情况,它包括:缺课日期、第几节课、课程名称、学生姓名、缺课类型(迟到、早退、请假及旷课)等。 (2)需要实现的功能 1)使用文件保存学生出勤信息,程序运行时从文件读入数据,程序结束前将数据保存在文件中; 2)  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-25 09:18:55下载
    积分:1
  • 画点画线和四灰阶例程JLX256160G-680
    JLX256160G-681-PC的驱动  画点画线和四灰阶例程JLX256160G-680   驱动st75256
    2022-06-21 07:35:46下载
    积分:1
  • C#文字转语音
    说明:  使用C# 文字转语音 ( 可用于系统呼叫 )(Use C# text to voice (can be used for system calls))
    2020-11-01 11:07:16下载
    积分:1
  • Lsm_match
    最小二乘图像影像匹配方法,一个很详细的源码例程,有过程有结果,希望对初学者有帮助。高斯解方程,以及最小二乘匹配,里面都很详细。(Squares image image matching method, a very detailed source code routines, the outcome of the process, I hope to help beginners. Gaussian solution of equations, and least squares matching, which is very detailed.)
    2013-07-18 16:52:41下载
    积分:1
  • TestVC6DUI
    本程序基于VC6.0通过duilib库对mfc窗口进行设计,可设置背景,按钮等基本操作,对初学者很有帮助。因为在VC6.0中使用需要gdiplus.h头文件和相关库文件,因此将该压缩文件一并上传。(This procedure by duilib bank on mfc window design, you can set basic operations background, buttons, etc., useful for beginners.Because the need to use gdiplus.h header files and related libraries in VC6.0, so the compressed file be uploaded.)
    2016-09-12 09:49:28下载
    积分:1
  • cablfjllocate
    利用VC++开发的随机数生成程序,可以直接运行(The random number generating program developed by VC can run directly)
    2018-11-19 04:48:15下载
    积分:1
  • GP22_main_AN034
    时间间隔测量芯片tdc-gp22与STM32应用程序(STM32 μC Sample code of Application Note)
    2020-09-12 22:27:58下载
    积分:1
  • 11087 统计逆序对
    说明:  Description 设a[0…n-1]是一个包含n个数的数组,若在ia[j],则称(i, j)为a数组的一个逆序对(inversion)。 比如 有5个逆序对。请采用类似“合并排序算法”的分治思路以O(nlogn)的效率来实现逆序对的统计。 一个n个元素序列的逆序对个数由三部分构成: (1)它的左半部分逆序对的个数,(2)加上右半部分逆序对的个数,(3)再加上左半部分元素大于右半部分元素的数量。 其中前两部分(1)和(2)由递归来实现。要保证算法最后效率O(nlogn),第三部分(3)应该如何实现? 此题请勿采用O(n^2)的简单枚举算法来实现。 并思考如下问题: (1)怎样的数组含有最多的逆序对?最多的又是多少个呢? (2)插入排序的运行时间和数组中逆序对的个数有关系吗?什么关系? 输入格式 第一行:n,表示接下来要输入n个元素,n不超过10000。 第二行:n个元素序列。 输出格式 逆序对的个数。 输入样例 5 2 3 8 6 1 输出样例 5(Set a[0... N-1] is a n array containing n numbers. If there is a [i] > a [j] i n the case of I < j, then (i, j) is a n inversion pair of a array. For example, has five reverse pairs. Please use the idea of "merge sorting algorithm" to achieve the statistics of inverse pairs with O (nlogn) efficiency. The number of inverse pairs of a sequence of n elements consists of three parts: (1) The number of reverse pairs in the left half, (2) the number of reverse pairs in the right half, (3) the number of elements in the left half is greater than that in the right half. The first two parts (1) and (2) are implemented by recursion. To ensure the final efficiency of the algorithm O (nlogn), how should the third part (3) be implemented? Do not use O (n ^ 2) simple enumeration algorithm to solve this problem.)
    2019-01-07 23:52:06下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载