【正文】
南昌航空大學(xué)信息工程學(xué)院 畢業(yè)設(shè)計(jì)英語(yǔ)文獻(xiàn)翻譯 摘自 專 業(yè) 自動(dòng)化 班 級(jí) 090441 學(xué) 號(hào) 09044137 姓 名 龔 亮 指導(dǎo)老師 李軍華 日 期 2021 年 3 月 15 日 1 Design and Implementation of Electronic Control Trainer with PIC Microcontroller Yousif I. Al Mashhadany Electrical Engineering Department, Engineering College, University of Anbar, Baghdad, Iraq Email: Received April 26, 2021。 revised May 23, 2021。 accepted May 30, 2021 ABSTRACT This paper describes the implementation of a PIC microcontroller in a conventional laboratorytype electronic trainer. The work prises software for the PIC and hardware for the software. The PIC controller uses an EasyPIC6 board and includes a PCinterfaced programmer for the PIC chip. It has many external modules: 128 64 graphic LCD dis play, 2 16 LCD display, 4 4 keypad, and port expander, all in the same bench. The trainer is capable of 36 experiments in logic/analogue electronic and control systems. A 5sided approximate sensor, two photoelectric sensors (BR56DDTP and BEN9MTFR),four CMOS,four BCD7segment driven by CD4511B, two relays (2pole and 3pole), six voltages, ammeter measurement, DC motor, and 24VDC power supply, connect through connectors and pinions. Results of all the experiments show the trainer satisfying requirements of undergraduate and postgraduate pro jects involving conventional electronic and classical control systems. Keywords: PIC Microcontroller。 Photoelectric Sensor。 Conventional Electronic Trainer 1. Introduction Modern microcontroller chips can store hundreds of thou sands of transistors each. The first microprocessors had external peripherals such as memory, inputoutput lines, and timers (Matic, 2021). In time came a new device called integrated circuit (IC), which contains both processor and peripherals. Also called a microcontroller, this was the first chip with a microputer [1,2]. Peripheral Interface Controller (PIC) is new to electronics control. Providing plete control in a single chip, a PIC microcontroller has special function registers, power on reset, interrupts, user RAM for storing of program data, EPROM program memory, timer circuits, instruction set, low power consumption, and onboard A toD converters. It replaces conventional control of in dustrial machinery (., motorspeed control) [2,3]. Microcontroller and microprocessor differ in many ways. In functionality, a microprocessor needs external ponents for receiving/sending data, and memory. A microcontroller does not need external ponents be cause all the necessary peripherals are builtin, saving time and space (see Figure 1 for microcontroller set [4 7]). The EasyPIC6 by MikroElektronika (see Figure 2) is an extraordinary development tool for programming and experimenting with PIC 174。 microcontrollers. It supports over 160 MCUs in PIC10, PIC12, PIC16, and PIC18 families, in DIP packages from 8 to 40 pins. The board es installed with PIC16F887. An impressive array of peripherals and expansion connectors are available on board, as are optional LCD displays and temperature sensor [8,9]. 2 An onboard programmer and mikroICD debugger allow direct connection to PC via USB cable. Fully functional demo versions of MikroElektronikas C, Pascal, and BASIC pilers are included (hex output limited to 2K program words), plete with documentation and dozens of sample programs. The EasyPIC6 also includes an external ICD connector patibl with MPLAB ICD2 and ICD3, allowing full patibility with MPL AB Integrated Development Environment (IDE) [10,11]. Its main problem is lack of facility for external experiments to be implemented in many undergraduate laboratory applications。 it is also daunting to beginner designers. This paper presents a practical implementation of EasyPIC6based electronic control trainer able to execute about 36 experiments, and rearrangement of the EasyPIC6 power supply to extend the trainer’ s capability to ACDCcurrent applications. Figure 1. Microcontroller set [7]. 3 Figure 2. EasyPIC6 cart by MikroElektronika [11]. . Integrated Development Environment (IDE) The core development tool set operates under the IDE umbrella called MPLAB. The tools look and feel the same,so learning of new tool interface is are the development capabilities of the MPLAB IDE: Sourcecode editing。 Project management。 Machinecode generation (from assembly or “ C” )。 Device simulation。 Device emulation。 Device programming. The prehensive tool suite allows plete project development without leaving the MPLAB environment [12].