摘要
分析了51系列单片机在KeilC开发环境中64位数据的显示问题。51系列单片机为8位,其常用的开发环境KeilC最大支持32的整数,因此无法显示64位的整数。对此作了分析,提出了两种解决办法:计算法和查表法。结合实例,对其原理和实现过程作了详细的分析,并用C语言实现了这两种算法,给出了源程序和流程图。
Analysis is made of how 64 bits data is displayed in 51 series single chip. 51 series single chip has 8 bits data width. The most popular IDE is Keil C,in which the max data is 32 bits integer and so 64 bits integer can not display directly. The question is studied,and two solutions(computing and looking up in a table) are given. The theory and realization are explained in detail with some examples. The two algorithms are realized by C language,and the source program and flow are given.
出处
《中国民航学院学报》
2006年第4期32-35,共4页
Journal of Civil Aviation University of China
基金
中国民航大学与衡水市广电局合作项目
关键词
51系列单片机
64位数据
显示
查表
51 series single chip
64 bits data
display
looking up in a table