电子存包柜-英文
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Design of electronic storage cabinet based on RTOS
Small
Department of electronics and communication engineering, PSG college, Coimbatore India Abstract:This paper introduces the design principle of the electronic storage control system based on RTOS Small, and introduces the system used in this system to make the controller, which can manage the N storage cabinet at the same time. The door lock is controlled by the electromagnetic valve, when customers need to save the package, can go to the lockers before press the "open" button, the microcontroller receives a pulse signal, and the system I/O port to send corresponding signals to control the electromagnetic valve lock door will be an empty box is opened, the customer can save the package and the door shut. When the customer needs to take the package, will as long as the bar code placed in front of the bar code reader, barcode reader bar code information collected by the output voltage signal corresponding to the microcontroller, the password system is relatively consistent, send out signals to the solenoid valve is open, the customer can remove the package.
Key words:Small RTOS;electronic storage cabinet; save package
1、Introduction
RTOS RAM Small demand for small, very suitable for such a relatively small resources of the system. RTOS has a multi tasking, strong real-time, and can be reduced to the kernel, making the design of real-time applications, expansion and maintenance easier. The introduction of the idea of RTOS, instead of the traditional software design method, so that it is no longer a single thread structure, through the application is divided into several independent tasks, RTOS makes the design process of application system is
simplified. In this paper, the software design of electronic storage cabinet based on single chip microcomputer is combined, the design idea of RTOS Small and the application of message queue communication mechanism are briefly analyzed.
basic principles of RTOS51 Small
RTOS51 Small is a very small kernel, fully integrated in the C51 KEIL compiler, only take less memory space, you can run in the 51 single chip microcomputer system without external data memory. The kernel is responsible for initializing and open, other tasks scheduling system, according to the priority of tasks, a reasonable distribution of CPU in different time between tasks, the kernel can generally provide task scheduling and interrupt service function. A program and a task, the task of each separate, independent implementation of the part called thread. All event driven and time driven are reflected in the settings of the corresponding task identification and thread identification. When the hardware environment, on the basis of the identification, by arranging the system interrupt and task scheduling algorithm adjust the response, by using the method of setting up environmental variables, which can interrupt exit after return to any more than one set of entrance in one to perform, and effectively solves the key problem of flexible switching of foreground and background tasks thread. RTOS Small 51 user tasks with a running state, ready state, wait and suspend, interrupt service program. At any moment, the state of the task is one of these four states. In order to save memory, create and delete mission OS dynamic, with the function OSSTART () to start a multi tasking environment, OS took all the tasks set up, and set them as the ready state, the highest priority task to run. Only when all the priority is higher than its task to wait. Ready to enter a state of operation. The scheduler will be the top priority of the task ready list as the next task to be performed.