导航:首页 > 源码编译 > c语言编译器毕业设计

c语言编译器毕业设计

发布时间:2024-10-07 05:04:46

1. 单片机的毕业论文怎么写

一、毕业设计题目及要求 (2个) 1、基于单片机控制的电动机Y-△启动的设计 要求:1)控制器为单片机,电动机为三相异步电动机;2)启动时间为3秒;3)由按键设置电动机Y-△运行、停止。 2、基于单片机控制的可调直流稳压电源的设计 要求:1)控制器为单片机,电压输出范围为0-10V,电压精度为0.1V;2)通过数码管显示电压值;3)由按键设置电压值。 二、毕业设计用到的主要软件(及功能) 毕业设计用到的主要软件(及功能):Keil 51(源程序编译),Proteus(电路仿真),AutoCAD(绘图), Visio(绘流程图), Protel 99SE(原理图电路设计,PCB板制作) 三、单片机方面毕业设计要求 1、学会编写程序(用C语言或汇编语言),用Keil 51软件对源程序进行编译。 2、学会用Proteus电路仿真软件对所设计的硬件电路进行仿真。 3、在写毕业论文时,学会用Word、AutoCAD, Visio,Protel 99SE等软件对程序流程图、电路原理图等进行绘制。 相关答案 ↓位朋友,以51单片机为例。51现在很多都是用仿真器来进行在线调试的,而每个公司的仿真器都会有自带的编程软件,当然,跟keil是差不了多少的。 步骤大体如下: 1.新建,进行程序的编写 2.连上仿真器或烧写器,这一步有可能要对仿真器或烧写器进行设置,具体可看它们的使用说明 3.对程序进行编译,这一步会自动检测你的程序有没错,如果有错,是不能进入下一步的.如果你用的是仿真器,这一步编译成功后就可以直接运行进行在线调试了。 4.如果用的是烧写器,那就进行烧写 各个软件和调试方法会有些不同,但大体就是这样,一些调试工具的说明书也有很详细的说明。 学参数测量技术涉及范围广,特别是微电压、微电流、高电压以及待测信号强弱相差极大的情况下,既要保证弱信号的测量精度又要兼顾强信号的测量范围,在技术上有一定的难度。传统的低成本仪表在测量电压、电阻时都采用手动选择档位的方法来转换量程。在使用中,当忘记转换档位时,会造成仪表测量精度下降或损坏。 现代电子测量对系统的精度要求越来越高且智能化程度也越来越高。全量程无档自动量程转换电压表和电阻表是在保证测量精度不下降的前提条件下省去手动转换量程的工作,得到了广泛应用。 本文介绍了一种基于AT89S52 单片机 的智能多用表。该表能在单片机的控制下完成直流电压、电阻和直流电流的测量。测量电流部分采用了简单的I/V转换电路完成测试;测量电压部分结合模拟开关CD4051和运算放大器OP07构成程控放大器,实现了自动量程转换;测量电阻部分也由模拟开关CD4051和运算放大器OP07相结合,在单片机控制下完成了自动量程转换。电流、电压和电阻的最终测量信号都在单片机的控制下由12位A/D转换器TLC2543进行采集,采集的信号经单片机数据处理后通过LCD(12864)显示出来,测量结果还可以由带有串行EEPROM的CPU存储器和监控器的X25045进行多个数据保存。 关键词:TLC2543 自动量程转换 程控增益放大器 电压 电阻 电流 目录 摘要1 Abstract 2 第一章 绪论 5 1. 1 概述 5 1. 2 智能仪器/仪表国内外发展概况 5 1. 3 课题研究目的及意义 6 第二章 系统结构及功能介绍 8 2. 1 系统功能和性能指标 8 2. 1. 1 仪表功能 8 2. 1. 2 性能指标 8 2. 1. 3 本机特色 8 2. 1. 4 系统使用说明 9 2. 2 系统工作原理概述 9 第三章 方案设计与论证 11 3. 1 量程选择的设计与论证 11

2. 学习编译原理之前,除了需要学习c语言外,还需要学什么

主要是会数学逻辑,你可以看看离散数学,其实话说回来 主要看你学编译原理用来干什么了,如果只学理论 你会发现你学完以后依然不知道怎么具体运用,只能知道大概的程序编译过程, 如果你想可以自己也能写出词法分析器语法分析器 甚至语义分析 那么 你最重要的是学好数据结构,我的毕业设计是C语言编译器 刚开始我觉得自动机什么的 是难点 可是到后来我才发现 最重要的是要有良好的数据结构的运用能力 数据结构是一切程序的灵魂!没有合理的存储结构 程序就像没有根基的浮萍

3. 用C语言编程预测身高的毕业设计怎么做

每个做父母的都关心自己孩子成人后的身高,据有关生理卫生知识与数理统计分析表明:影响小孩成人后的身高的因素包括遗传,饮食习惯与体育锻炼等,小孩成人后的身高与其父母和身高和自身的性别密切相关.
设faHeight为其父身高,moHeight为其母身高
身高预测公式为:
男性成人时身高=(faHeight+moHeight)×0.54cm
女性成人时身高=(faHight×0.923+moHeight)/2cm
此外如果喜爱体育锻炼,那么可增加身高2%,如果有良好的卫生饮食习惯,那么可增加身高1.5%.
编程从键盘输入用户的性别(用字符型变量 ----存储,输入字符F表示为女性.输入字符M表示男性),父母身高用实型变量存储.faHight为其父身高,moHeight为其母身高.是否爱体育锻炼(用字符型变量sport存储,输入字符Y表示喜爱,输入字符N表示不喜爱)是否有良好的饮食习惯等条件(用字符型变量diet存储,输入字符Y表示良好,输入字符N表示不好)利用公给定公式和身高预测方法去对身高进行预测.

4. 求助如何找到关于单片机的外文文献翻译,用于毕业设计

Getting Started with µVision2
The Keil Software 8051 development tools listed below are programs you use to compile your C code, assemble your assembly source files, link and locate object moles and libraries, create HEX files, and debug your target program.
 µVision2 for Windows™ is an Integrated Development Environment that combines project management, source code editing, and program debugging in one single, powerful environment.
 The C51 ANSI Optimizing C Cross Compiler creates relocatable object moles from your C source code.
 The A51 Macro Assembler creates relocatable object moles from your 8051 assembly source code.
 The BL51 Linker/Locator combines relocatable object moles created by the C51 Compiler and the A51 Assembler into absolute object moles.
 The LIB51 Library Manager combines object moles into libraries that may be used by the linker.
 The OH51 Object-HEX Converter creates Intel HEX files from absolute object moles.
 The RTX-51 Real-time Operating System simplifies the design of complex, time-critical software projects.
Software Development Cycle
When you use the Keil Software tools, the project development cycle is roughly the same as it is for any other software development project.
1. Create a project, select the target chip from the device database, and configure the tool settings.
2. Create source files in C or assembly.
3. Build your application with the project manager.
4. Correct errors in source files.
5. Test the linked application.
µVision2 IDE
The µVision2 IDE combines project management, a rich-featured editor with interactive error correction, option setup, make facility, and on-line help. Use µVision2 to create your source files and organize them into a project that defines your target application. µVision2 automatically compiles, assembles, and links your embedded application and provides a single focal point for your development efforts.
LIB51 Library Manager
The LIB51 library manager allows you to create object library from the object files created by the compiler and assembler. Libraries are specially formatted, ordered program collections of object moles that may be used by the linker at a later time. When the linker processes a library, only those object moles in the library that are necessary to create the program are used.
BL51 Linker/Locator
The BL51 linker creates an absolute object mole using the object moles extracted from libraries and those created by the compiler and assembler. An absolute object file or mole contains no relocatable code or data. All code and data reside at fixed memory locations. The absolute object file may be used:
 To program an EPROM or other memory devices,
 With the µVision2 Debugger for simulation and target debugging,
 With an in-circuit emulator for the program testing.
µVision2 Debugger
The µVision2 symbolic, source-level debugger is ideally suited for fast, reliable program debugging. The debugger includes a high-speed simulator that let you simulate an entire 8051 system including on-chip peripherals and external hardware. The attributes of the chip you use are automatically configured when you select the device from the Device Database.
The µVision2 Debugger provides several ways for you to test your programs on
real target hardware:
 Install the MON51 Target Monitor on your target system and download your program using the Monitor-51 interface built-in to the µVision2 Debugger.
 Use the Advanced GDI interface to attach use the µVision2 Debugger front end with your target system.
Monitor-51
The µVision2 Debugger supports target debugging using Monitor-51. The monitor program resides in the memory of your target hardware and communicates with the µVision2 Debugger using the serial port of the 8051 and a COM port of your PC. With Monitor-51, µVision2 lets you perform source-level, symbolic debugging on your target hardware.
RTX51 Real-Time Operating System
The RTX51 real-time operating system is a multitasking kernel for the 8051 microcontroller family. The RTX51 real-time kernel simplifies the system design, programming, and debugging of complex applications where fast reaction to time critical events is essential. The kernel is fully integrated into the C51 Compiler and is easy to use. Task description tables and operating system consistency are automatically controlled by the BL51 linker/locator.
C51 Optimizing C Cross Compiler
The Keil C51 Cross Compiler is an ANSI C Compiler that was written
specifically to generate fast, compact code for the 8051 microcontroller family.
The C51 Compiler generates object code that matches the efficiency and speed
of assembly programming.
Using a high-level language like C has many advantages over assembly language
programming:
 Knowledge of the processor instruction set is not required. Rudimentary knowledge of the memory structure of the 8051 CPU is desirable (but not necessary).
 Details like register allocation and addressing of the various memory types and data types is managed by the compiler.
 Programs get a formal structure (which is imposed by the C programming language) and can be divided into separate functions. This contributes to source code reusability as well as better overall application structure.
 The ability to combine variable selection with specific operations improves program readability.
 Keywords and operational functions that more nearly resemble the human thought process may be used.
 Programming and program test time is drastically reced.
 The C run-time library contains many standard routines such as: formatted output, numeric conversions, and floating-point arithmetic.
 Existing program parts can be more easily included into new programs because of molar program construction techniques.
 The language C is a very portable language (based on the ANSI standard) that enjoys wide popular support and is easily obtained for most systems.
Existing program investments can be quickly adapted to other processors as needed.
Code Optimizations
The C51 Compiler is an aggressive optimizing compiler that takes numerous steps to ensure that the code generated and output to the object file is the most efficient (smallest and/or fastest) code possible. The compiler analyzes the generated code to proce the most efficient instruction sequences. This ensures that your C program runs as quickly and effectively as possible in the least amount of code space.
The C51 Compiler provides nine different levels of optimizing. Each increasing level includes the optimizations of levels below it. The following is a list of all optimizations currently performed by the C51 Compiler.
General Optimizations
 Constant Folding: Constant values occurring in an expression or address calculation are combined as a single constant.
 Jump Optimizing: Jumps are inverted or extended to the final target address when the program efficiency is thereby increased.
 Dead Code Elimination: Code that cannot be reached (dead code) is removed from the program.
 Register Variables: Automatic variables and function arguments are located in registers whenever possible. No data memory space is reserved for these variables.
 Parameter Passing Via Registers: A maximum of three function arguments
 may be passed in registers.
 Global Common Subexpression Elimination: Identical subexpressions or address calculations that occur multiple times in a function are recognized and calculated only once whenever possible.
 Common Tail Merging: Common instruction blocks are merged together using jump instructions.
 Re-use Common Entry Code: Common instruction sequences are moved in front of a function to rece code size.
 Common Block Subroutines: Multiple instruction sequences are packed into subroutines. Instructions are rearranged to maximize the block size.

中文译文
Keil C 简介
Keil Software 的8051开发工具提供以下程序,你可以用它们来编译你的C源码,汇编你的汇编源程序,连接和重定位你的目标文件和库文件,创建HEX文件,调试你的目标程序。
Windows应用程序uVision2是一个集成开发环境,它把项目管理,源代码编辑,程序调试等集成到一个功能强大的环境中。
 C51美国标准优化C交叉编译器从你的C源代码产生可重定位的目标文件。
 A51宏汇编器从你的8051汇编源代码产生可重定位的目标文件。
 BL51连接/重定位器组合你的由C51和A51产生的可重定位的目标文件,生成绝对目标文件。
 LIB51库管理器组合你的目标文件,生成可以被连接器使用的库文件。
 OH51目标文件到HEX格式的转换器从绝对目标文件创建Intel HEX 格式的文件。
 RTX-51实时操作系统简化了复杂和对时间要求敏感的软件项目。
软件开发流程
当你使用Keil Software工具时,你的项目开发流程和其它软件开发项目的流程极其相似。
1. 创建一个项目,从器件库中选择目标器件,配置工具设置。
2. 用C语言或汇编语言创建源程序。
3. 用项目管理器实现你的应用。
4. 修改源程序中的错误。
5. 测试,连接应用。
uVision2 IDE
uVision2 集成开发环境集成了一个项目管理器,一个功能丰富、有错误提示的编辑器,以及设置选项,生成工具,在线帮助。利用uVision2创建你的源代码并把它们组织到一个能确定你的目标应用的项目中去。uVision2自动编译,汇编,连接你的嵌入式应用,并为你的开发提供一个单一的焦点。
C51编译器和A51汇编器
源代码由uVision2 IDE创建,并被C51编译或A51汇编。编译器和汇编器从源代码生成可重定位的目标文件。Keil C51编译器完全遵照ANSI C语言标准,支持C语言的所有标准特性。另外,直接支持8051结构的几个特性被添加到里面。Keil A51宏汇编器支持8051及其派生系列的全部指令集。
LIB51 库管理器
LIB51库管理器允许你从由编译器或汇编器生成的目标文件创建目标库。库是一种被特别地组织过并在以后可以被连接重用的对象模块。当连接器处理一个库时,仅仅那些被使用的目标模块才被真正使用。
BL51 连接器/定位器
BL51 连接器/定位器利用从库中提取的目标模块和由编译器或汇编器生成的目标模块创建一个绝对地址的目标模块。一个绝对地址目标模块或文件包含不可重定位的代码和数据。所有的代码和数据被安置在固定的存储器单元中。此绝对地址目标文件可以用来:
 写入EPROM或其它存储器件。
 由uVision2调试器使用来模拟和调试。
 由仿真器用来测试程序。
uVision2 调试器
uVision2源代码级调试器是一个理想地快速,可靠的程序调试器。此调试器包含一个高速模拟器,能够让你模拟整个8051系统,包括片上外围器件和外部硬件。当你从器件库中选择器件时,这个器件的特性将自动配置。
uVision2调试器为你在实际目标板上测试你的程序提供了几种方法:
 安装MON51目标监控器到你的目标系统并且通过Monitor-51接口下载你的程序。
 利用高级的GDI(AGDI)接口,把uVision2调试器绑定到你的目标系统。
Monitor-51
uVision2调试器支持用Monitor-51进行目标板调试。此监控程序驻留在你的目标板的 存储器里,它利用串口和uVision2调试器进行通信。利用Monitor-51,uVision2调试器 可以对你的目标硬件实行源代码级的调试。
RTX51实时操作系统
RTX51实时操作系统是一个针对8051系列的多任务核。RTX51实时内核从本质上简化了对实时事件反应速度要求高的复杂应用系统的设计,编程和调试。RTX51实时内核是完全集成到C51编译器中的,从而方便使用。任务描述表和操作系统的连接由BL51连接器/定位器自动控制。
C51优化的C语言交叉编译器
Keil C51交叉编译器是一个基于ANSI C标准的针对8051系列MCU的C编译器,生成的可执行代码快速、紧凑,在运行效率和速度上可以和汇编程序得到的代码相媲美。
和汇编语言相比,用C语言这样的高级语言有很多优势,比如:
 对处理器的指令集不必了解,8051 CPU的基本结构可以了解,但不是必须的。
 寄存器的分配以及各种变量和数据的寻址都由编译器完成。
 程序拥有了正式的结构(由C语言带来的),并且能被分成多个单独的子函数。这使整个应用系统的结构变得清晰,同时让源代码变得可重复使用。
 选择特定的操作符来操作变量的能力提高了源代码的可读性。
 可以运用和人的思维很接近的词汇和算法表达式。
 编写程序和调试程序的时间得到很大程度的缩短。
 C运行连接库包含一些标准的子程序,如:格式化输出,数字转换,浮点运算。
 由于程序的模块结构技术,使得现有的程序段可以很容易的包含到新的程序中去。
 ANSI 标准的C语言是一种丰常方便的,获得广泛应用的,在绝大部分系统中都能够很容易得到的语言。
因此,如果需要,现有的程序可以很快地移植到其他的处理器上,节省投资。
代码优化
C51是一个杰出的优化编译器,它通过很多步骤以确保产生的代码是最有效率的(最小和/或最快)。编译器通过分析初步的代码 产生最终的最有效率的代码序列,以此来保证你的C语言程序占用最少空间的同时运行的快而有效。
C51编译器提供9个优化级别。每个高一级的优化级别都包括比它低的所有优化级别的优化内容。以下列出的是目前C51编译器提供的所有优化级别的内容:
 常量折叠:在表达式及寻址过程中出现的常量被综合为一个单个的常量。
 跳转优化:采用反转跳转或直接指向最终目的的跳转,从而提升了程序的效率。
 哑码消除:永远不可能执行到的代码将自动从程序中剔除。
 寄存器变量:只要可能,局部变量和函数参数被放在CPU寄存器中,不需要为这些变量再分配存储器空间。
 通过寄存器传递参数:最多三个参数通过寄存器传递。
 消除全局公用的子表达式:只要可能,程序中多次出现的相同的子表达式或地址计算表达式将只计算一次。
 合并相同代码:利用跳转指令,相同的代码块被合并。
 重复使用入口代码:需要多次使用的共同代码被移到子程序的前面以缩减代码长度。
公共块子程序:需要重复使用的多条指令被提取组成子程序。指令被重新安排以最大化一个共用子程序的长度。

阅读全文

与c语言编译器毕业设计相关的资料

热点内容
条件加密 浏览:628
androidstudio设置中文 浏览:641
汽车换压缩机能提升制冷 浏览:628
安卓开发配什么电脑 浏览:607
linux下php模块 浏览:78
阿里云服务器终端在哪里 浏览:146
app纸有什么用 浏览:223
cuteftp命令 浏览:506
最开始的编程语言是什么 浏览:759
at远程命令 浏览:492
云服务器哪家好点 浏览:213
android系统源码阅读 浏览:931
dumpjava分析工具 浏览:680
怎么下载cpu源码 浏览:156
代码加密怎么取消 浏览:890
编译原理代码在哪里运行 浏览:586
解密摄影pdf 浏览:76
算法编程中级题目 浏览:253
c语言编译器毕业设计 浏览:719
医保卡申请app哪个好 浏览:950