基于单片机的数控电压源课程设计_毕业设计(编辑修改稿)内容摘要:

将送 D/A数字量减 01H 相等 不等 大于送 D/A数字量。 是 否 将送 D/A数字量加 01H 1 基于单片机的数控电压源课程设计 图 19 键盘子程序框图框图 4. 1 步进步减子程序 图 20 步进,步减子程序框图 由步进,步减子程序框图可以看出,如果每次把 D/A的数字量加 01H,可以使步进量和步减量由。 如果采用更高位的 D/A转换器。 可以使步进量和步减量进一步的减小 ,以满足更高的要求。 开始 判断按键 + 设 置 其 它 步进,步减 子程序 设 置 子程序 返回 开始 D/A 数字量加02H 为“ +”。 1 否 是 D/A 数字量加02H 返回 是否为 否 是否为 否 保持不变 为“ ”。 是 是 是 基于单片机的数控电压源课程设计 4. 2 设置子程序 图 21 设置子程序框图 返回 数字键。 显示 〈 PLEASE SET〉 VOLTAGE V 判断按键 显示 〈 PLEASE SET 〉 VOLTAGE X V 否 判断按键 是 显示 〈 PLEASE SET 〉 VOLTAGE X. V 是 取消键。 显示 〈 SET CANCLE 〉 VOLTAGE V ( A. B 为设置前电压值) 是 否 判断按键 “。 ”键。 否 取消键。 是 2 2 否 3 数字键。 否 取消键。 是 否 3 判断按键 显示 〈 PLEASE SET 〉 VOLTAGE V 是 4 确认键。 否 取消键。 否 是 4 显示 〈 SET COMPLATE 〉 VOLTAGE V 是 开始 基于单片机的数控电压源课程设计 由设置子程序可以看出,进入设置子程序后就屏蔽了“ +”,“ ”和设置键。 然后逐步判断按键,执行相应程序。 五. 设计总结 六.附件 A、程 序 实 现 单片机系统初始化和存储器分配程序 $NOMOD51。 This file is part of the C51 Compiler package //这个文件是 c51 链接的数据。 : This code is executed after processor reset. 这个代码在程序重启之后执行。 To translate this file use A51 with the following invocation:。 A51。 To link the modified file to your application use the following。 BL51 invocation:。 BL51 your object file list, controls。 Userdefined PowerOn Initialization of Memory。 With the following EQU statements the initialization of memory。 at processor reset can be defined:。 the absolute startaddress of IDATA memory is always 0 IDATALEN EQU 80H。 the length of IDATA memory in bytes. IDATA存储的字节长度。 XDATASTART EQU 0H。 the absolute startaddress of XDATA memory XDATA 存储的实际起始地址 XDATALEN EQU 0H。 the length of XDATA memory in bytes.。 PDATASTART EQU 0H。 the absolute startaddress of PDATA memory PDATALEN EQU 0H。 the length of PDATA memory in bytes.。 Notes: The IDATA space overlaps physically the DATA and BIT areas of the。 8051 CPU. At minimum the memory space occupied from the C51 基于单片机的数控电压源课程设计。 runtime routines must be set to zero.。 Reentrant Stack Initilization。 The following EQU statements define the stack pointer for reentrant。 functions and initialized it:。 Stack Space for reentrant functions in the SMALL model. IBPSTACK EQU 0。 set to 1 if small reentrant is used. IBPSTACKTOP EQU 0FFH+1。 set top of stack to highest location+1.。 Stack Space for reentrant functions in the LARGE model. XBPSTACK EQU 0。 set to 1 if large reentrant is used. XBPSTACKTOP EQU 0FFFFH+1。 set top of stack to highest location+1.。 Stack Space for reentrant functions in the COMPACT model. PBPSTACK EQU 0。 set to 1 if pact reentrant is used. PBPSTACKTOP EQU 0FFFFH+1。 set top of stack to highest location+1.。 Page Definition for Using the Compact Model with 64 KByte xdata RAM。 The following EQU statements define the xdata page used for pdata。 variables. The EQU PPAGE must conform with the PPAGE control used。 in the linker invocation.。 PPAGEENABLE EQU 0。 set to 1 if pdata object are used.。 PPAGE EQU 0。 define PPAGE number.。 PPAGE_SFR DATA 0A0H。 SFR that supplies uppermost address byte。 (most 8051 variants use P2 as uppermost address byte)。 Standard SFR Symbols ACC DATA 0E0H B DATA 0F0H SP DATA 81H DPL DATA 82H DPH DATA 83H 基于单片机的数控电压源课程设计。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。