文件名称:timer
介绍说明--下载内容来自于网络,使用问题请自行百度
单片机C语言提高资料!
熟了各个基本模块之后,就是要提高程序的鲁棒性和高效性,并且要便于移植.发几个个人觉得非常好的C语言资料.有些还是在其它论坛上花积分下来的.呵呵
首先,要重视程序的构架,这个会影响编程思路,.c .h文件要因地制宜地用.条理需要清楚.
其次,合适的时候多用指针,这个不用多说了.VC之所以流氓效率高,很大一部分原因是用了引用和指针.
另外,程序函数的接口要封装好,实参形参调用才方便,在适当的时候用数据参数,适当的时候用地址参数.
最后,结构体,联合体,宏定义可以提高程序效率,适当的时候运用不仅会提高效率,还可以理清程序条理.变量的定义要按需要的长度定义.并加上关键字优化程序.
这些都是平时的一些经验,小的方面还是看资料吧.-After the microcontroller C language to improve the information! Cooked various basic modules, the program is to improve the robustness and efficiency, and to be portable. Made a few individuals feel very good C language data. Some still spend integral in other forums down. Oh, first of all, pay attention to the framework of the program, this will affect the programming ideas, .c .h file you want to use the local conditions. coherent needs clearly. Secondly, when appropriate multi-pointer, this goes without saying why rogue .VC high efficiency, in large part because with the references and pointers. In addition, the interface must wrapper function well, the arguments parameter it is convenient to call, at the appropriate time with the data parameters, the appropriate time with the address parameters. Finally, the structure body, the Commonwealth, the macro definition can improve program efficiency, when appropriate use will not only improve efficiency, but also to clarify procedures co
熟了各个基本模块之后,就是要提高程序的鲁棒性和高效性,并且要便于移植.发几个个人觉得非常好的C语言资料.有些还是在其它论坛上花积分下来的.呵呵
首先,要重视程序的构架,这个会影响编程思路,.c .h文件要因地制宜地用.条理需要清楚.
其次,合适的时候多用指针,这个不用多说了.VC之所以流氓效率高,很大一部分原因是用了引用和指针.
另外,程序函数的接口要封装好,实参形参调用才方便,在适当的时候用数据参数,适当的时候用地址参数.
最后,结构体,联合体,宏定义可以提高程序效率,适当的时候运用不仅会提高效率,还可以理清程序条理.变量的定义要按需要的长度定义.并加上关键字优化程序.
这些都是平时的一些经验,小的方面还是看资料吧.-After the microcontroller C language to improve the information! Cooked various basic modules, the program is to improve the robustness and efficiency, and to be portable. Made a few individuals feel very good C language data. Some still spend integral in other forums down. Oh, first of all, pay attention to the framework of the program, this will affect the programming ideas, .c .h file you want to use the local conditions. coherent needs clearly. Secondly, when appropriate multi-pointer, this goes without saying why rogue .VC high efficiency, in large part because with the references and pointers. In addition, the interface must wrapper function well, the arguments parameter it is convenient to call, at the appropriate time with the data parameters, the appropriate time with the address parameters. Finally, the structure body, the Commonwealth, the macro definition can improve program efficiency, when appropriate use will not only improve efficiency, but also to clarify procedures co
(系统自动生成,下载前可以参看下载内容)
下载文件列表
单时钟的多路高效定时实现.pdf
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.