【正文】
系統(tǒng)。 此向我的論文指導老師致以最誠摯的謝意。焉得諼草,言樹之背,養(yǎng)育之恩,無以回報。 附錄 蘇州大學本科生畢業(yè)設計(論文) 31 系統(tǒng)完整程序代碼 : ORG 0000H SJMP MAIN ORG 0003H SJMP UP ORG 000BH AJMP TIME ORG 0013H SJMP DOWN 主程序: ORG 0030H MAIN: MOV R7, 20H ACALL DISPLAY MOV TCON, 05H MOV TMOD, 02H MOV TH0, 0CEH MOV TL0, 0CEH SETB TR0 MOV IE, 87H SJMP “ $ 溫度設定中斷子程序: UP: PUSH A CJNE R7, 30H, GOUP SJMP UPEND GOUP: MOV A, R7 ADD A, 01 DA A MOV R7, A ACALL DISPLAY 蘇州大學本科生畢業(yè)設計(論文) 32 UPEND: POP A RETI 溫度設定中斷子程序: ORG 0060H DOWN: PUSH A CJNE R7, 10H, GODOWN SJMP DOWNEND GODOWN: MOV A, R7 CLR C SUBB A, 01 JNB , GOON SUBB A, 06 GOON: MOV R7, A ACALL DISPLAY DOWNEND: POP A RETI 顯示子程序: ORG 0075H DISPLAY: MOV DPTR, LEDTAB MOV A, 0FH ANL A, R7 MOVC A, DPTR+A MOV P1, A MOV A, 0F0H ANL A, R7 SWAP A MOV A, DPTR+A MOVC P2, A RET ORG 0090H LEDTAB: DB 0C0H,0F9H,0A4H,0B0H,99H 蘇州大學本科生畢業(yè)設計(論文) 33 DB 92H,82H,0F8H,80H,90H 定時中斷子程序: ORG 0100H TIME: PUSH A SETB SETB MOV P0, 0FFH MOV A, P0 MOV B, 10 MUL AB MOV A, 210 CLR C` SUBB A, B MOV B, 10 DIV AB SWAP A ADD A, B CJNE A, R7, CON CON: JNC STOP SETB SJMP TIMEEND STOP: CLR TIMEEND: POP A RETI END 外文文獻 蘇州大學本科生畢業(yè)設計(論文) 34 Temperature Control Using a Microcontroller: An Interdisciplinary Undergraduate Engineering Design Project James S. McDonald Department of Engineering Science Trinity University San Antonio, TX 78212 Abstract This paper describes an interdisciplinary design project which was done under the author’ s supervision by a group of four senior students in the Department of Engineering Science at Trinity University. The objective of the project was to develop a temperature control system for an airfilled chamber. The system was to allow entry of a desired chamber temperature in a prescribed range and to exhibit overshoot and steadystate temperature error of less than 1 degree Kelvin in the actual chamber temperature step response. The details of the design developed by this group of students, based on a Motorola MC68HC05 family microcontroller, are described. The pedagogical value of the problem is also discussed through a description of some of the key steps in the design process. It is shown that the solution requires broad knowledge drawn from several engineering disciplines including electrical, mechanical, and control systems engineering. 1 Introduction The design project which is the subject of this paper originated from a realworld application. A prototype of a microscope slide dryer had been developed around an OmegaTM model CN390 temperature controller, and the objective was to develop a custom temperature control system to replace the Omega system. The motivation was that a custom controller targeted specifically for the application should be able to achieve the same functionality at a much lower cost, as the Omega system is unnecessarily versatile and equipped to handle a wide variety of applications. 蘇州大學本科生畢業(yè)設計(論文) 35 The mechanical layout of the slide dryer prototype is shown in Figure 1. The main element of the dryer is a large, insulated, airfilled chamber in which microscope slides, each with a tissue sample encased in paraffin, can be set on caddies. In order that the paraffin maintain the proper consistency, the temperature in the slide chamber must be maintained at a desired (constant) temperature. A second chamber (the electronics enclosure) houses a resistive heater and the temperature controller, and a fan mounted on the end of the dryer blows air across the heater, carrying heat into the slide chamber. This design project was carried out during academic year 1996– 97 by four students under the author’ s supervision as a Senior Design project in the Department of Engineering Science at Trinity University. The purpose of this paper is to describe the problem and the students’ solution in some detail, and to discuss some of the pedagogical opportunities offered by an interdisciplinary design project of this type. The students’ own report was presented at the 1997 National Conference on Undergraduate Research [1]. Section 2 gives a more detailed statement of the problem, including performanc