实现实时数据精确采样定时的中断处理技术

来源 :微计算机应用 | 被引量 : 0次 | 上传用户:cykic
下载到本地 , 更方便阅读
声明 : 本文档内容版权归属内容提供方 , 如果您对本文有版权争议 , 可与客服联系进行内容授权或下架
论文部分内容阅读
在用Quick BASIC与汇编语言编写数据采集与处理程序时,首先在Quick BASIC中分配数据空间(用DIM定义数组,静态数组可用近地址访问,动态数组需用远地址),然后将第一个数组元素的地址通过堆栈传给汇编语言子程序,根据访问数组元素的远近地址要求,适当调整ES内容,并将DI指向第一个数组元素的偏移地址,这样在AX中每得到一个采样数据后,即可用一个STOSW语句直接将此数据传送到高级语言已定义的数组中,直到全部数据采集完成,实现了混合语言间大量数据的高速传送。 When writing programs for data acquisition and processing in Quick BASIC and assembly language, you first allocate data space in Quick BASIC (arrays defined by DIM, static array accessible by near address, dynamic array by far address), and then the first array The address of the element is passed to the assembly language subroutine through the stack. According to the near and far address requirements of accessing the array element, the ES content is properly adjusted and the DI points to the offset address of the first array element. After each sampling data is obtained in the AX, , You can use an STOSW statement to pass this data directly to the high-level language has been defined in the array, until all the data acquisition is completed, to achieve a large number of mixed language high-speed data transfer.
其他文献
期刊
期刊
期刊
在湖南卫视《爸爸去哪儿》第二季的热播持续带来的全民家庭亲子热潮强大影响力下,金鹰卡通的收视一路领先。暑假来临,孩子们的双卡通节目亲子节目的收视进入一个新高潮。7月,
期刊
期刊
本文提出大麦黄花叶病(BYMV)抗性遗传为多基因控制的数量性状遗传,补充了人们原认为仅系经典孟德尔质量性状遗传的观点;对大麦若干与啤酒质量有关的籽粒品质性状及农艺性状进
期刊
期刊
期刊