- 1
- 2
- 3
- 4
- 5
对单片机C语言教材中一段程序的分析
资料介绍
C语言是一种结构化的高级语言,具有代码紧凑、可移植性强、符合人的日常思维方式等特点.由于不需要深入了解单片机的指令系统和硬件结构、上手容易等特点,单片机的C语言学习和应用变得很普及.一些单片机开发者由于不了解单片机C语言和通用计算机C语言之间的区别,当涉及单片机内部硬件及端口操作,特别是在单片机的应用中经常使用的位操作等,编程时经常出现一些不易发现的错误.本文通过对一段程序的分析,从语法错误、循环变量使用、移位操作、拼写错误和算法错误等几个方面归纳了产生错误的原因并给出了解决的方法.还进一步指出了用C语言进行单片机开发需要注意的一些其它事项.上述问题在多次再版的教材中也存在,可见这类错误的普遍性和代表性,应引起单片机的C语言学习者的重视.
C language is a kind of structured high-level language,which has the characteristics of compact code,strong portability and conforming to people’s daily thinking becomes very popular to study and use C language of MCU because of not needing to know the instruction system and hardware structure of MCU and its ease of ause of not understanding the difference between single chip microcomputer C language and general computer C language,some MCU developers often make some programming mistakes which are not easy to find,when it comes to the internal hardware and port operation of the single chip computer,especially the bit operation which is often used in the application of the single chip ough the analysis of a program,this paper sums up the causes of errors from grammatical errors,the use of cyclic variables,shift operations,spelling errors and algorithm errors,and provides some addition,some other matters needing attention in developing C single chip microcomputer are se problems also exist in many can be seen that attention needs to be paid to the universality and representativeness of these errors by C language learners of MCU.
部分文件列表
文件名 | 大小 |
对单片机C语言教材中一段程序的分析.pdf | 928K |
最新上传
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏5.00元 3天前
-
我来看看怎 打赏5.00元 3天前
用户:xzxbybd
-
21ic下载 打赏310.00元 3天前
用户:zhengdai
-
21ic下载 打赏310.00元 3天前
用户:gsy幸运
-
21ic下载 打赏310.00元 3天前
用户:小猫做电路
-
21ic下载 打赏270.00元 3天前
用户:liqiang9090
-
21ic下载 打赏210.00元 3天前
用户:w178191520
-
21ic下载 打赏210.00元 3天前
用户:kk1957135547
-
21ic下载 打赏110.00元 3天前
用户:w1966891335
-
21ic下载 打赏110.00元 3天前
用户:w993263495
-
21ic下载 打赏100.00元 3天前
用户:1111111ffgg
-
21ic下载 打赏40.00元 3天前
用户:jh03551
-
21ic下载 打赏30.00元 3天前
用户:WK520077778
-
21ic下载 打赏30.00元 3天前
用户:sun2152
-
21ic下载 打赏15.00元 3天前
用户:x15580286248
-
21ic下载 打赏25.00元 3天前
用户:xzxbybd
-
21ic下载 打赏25.00元 3天前
用户:ytt006
-
21ic下载 打赏10.00元 3天前
用户:poplarly
-
21ic下载 打赏20.00元 3天前
用户:muguang28
-
21ic下载 打赏10.00元 3天前
用户:konglongcong
-
21ic下载 打赏10.00元 3天前
用户:铁蛋锅
-
21ic下载 打赏20.00元 3天前
用户:muguang28
-
21ic小能手 打赏10.00元 3天前
资料: DeepSeek从入门到精通
-
POWER998 打赏5.00元 3天前
用户:SekiBetu
-
21ic小能手 打赏5.00元 3天前
资料:zTEB的应用程序
-
21ic小能手 打赏5.00元 3天前
资料:欧瑞伺服资料
-
21ic小能手 打赏5.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic小能手 打赏15.00元 3天前
-
21ic小能手 打赏10.00元 3天前
-
21ic下载 打赏310.00元 3天前
用户:kk1957135547
-
21ic下载 打赏310.00元 3天前
用户:zhengdai
-
21ic下载 打赏310.00元 3天前
用户:小猫做电路
-
21ic下载 打赏310.00元 3天前
用户:gsy幸运
-
21ic下载 打赏310.00元 3天前
用户:liqiang9090
-
21ic下载 打赏160.00元 3天前
用户:w178191520
-
21ic下载 打赏210.00元 3天前
用户:jh035511
-
21ic下载 打赏150.00元 3天前
用户:jh03551
-
21ic下载 打赏40.00元 3天前
用户:cooldog123pp
全部评论(0)