电子存包柜-英文20498.pdf
《电子存包柜-英文20498.pdf》由会员分享,可在线阅读,更多相关《电子存包柜-英文20498.pdf(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、-.可修编.Design of electronic storage cabinet based on RTOS Small Department of electronics and munication 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 sys
2、tem 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 t
3、o 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 infor
4、mation 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 Smal
5、l 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
6、 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 micr
7、oputer is bined,the design idea of RTOS Small and the application of message queue munication mechanism are briefly analyzed.1.1 basic principles of RTOS51 Small RTOS51 Small is a very small kernel,fully integrated in the C51 KEIL piler,only take less memory space,you can run in the 51 single chip m
8、icroputer 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 f
9、unction.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 identificati
10、on,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 o
11、f 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()t
12、o 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 t
13、ask to be performed.Task call os_wait function,pending the current task,waiting for one or several intervals(K_IVL),time out(K_TMO),signal(K_SIG)events.If waiting for event has occurred,continue to implement the current task;if waiting for events did not occur,the corresponding waiting sign,suspend
14、the task to task switching program segment switch to the next task.Small RTOS51(init)by performing a function to register initialization,call the function OSSTart()to initialize each task stack and perform the first task,and the choice of the first task for the reason that the task priority level.In
15、 the selection process to plete the task of scheduling.1.2 munication between tasks munication between tasks using the message queue,after 3 steps:to create a message queue OSQCreate(),to the message queue message OSQPost(),take message OSQPend().Call the OSQPost()function to send the message,if you
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 电子 存包柜 英文 20498
限制150内