毕业设计 - 电子密码锁

发布时间 : 星期四 文章毕业设计 - 电子密码锁更新完毕开始阅读

摘要

电子密码锁系统在很多实时系统中得到了广泛的应用,随着ARM技术和网络技术的发展,本文提出了一个基于ARM和μC/OS-II的电子密码锁技术的研究,该系统采用三星公司的32位高性能S3C2410内核,以嵌入式实时操作系统μC/OS-II为软件平台,在ADT(ARM Development Tools)环境下进行系统软件的开发。该系统充分利用了ARM微处理器高性能、低功耗、低成本的优势,发挥了μC/OS-II和可移植性好、开发成本低的优点,为电子密码锁系统的研发提供了一个可行的解决方案。

在此基础上,本文主要进行了μC/OS-II的系统的移植,并通过S3C2410实现了串行接口的通信,键盘的输入扫描和CF卡的数据读写等主要模块的功能。完成一个具有键盘输入和卡片读取,并与服务器进行数据通信的电子密码锁系统的识别卡端。

关键词:电子密码锁; 嵌入式系统; ARM ; μC/OS-II

I

ABSTRACT

The electronic password locking system has been applied widely in a lot of real-time systems. With swift development of ARM and network technology, a new technology of electronic password locking system based on ARM and μC/OS-II was brought forward and researched in this paper. The system adopted SAMSUMG 32 bit high-powered ARM92410 core and utilizing embedded real time operating system μC/OS-II as software platform, at the same time ,this software system has been developed in ADT (ARM Development Tools) environment .In this system,some predominance of ARM MPU (microprocessor) were adequately used,such as the high-powered, low power waste, low cost,which bring into play its excellence in good transplantation and low development-cost, therefore, the new study in this paper affords a feasible scheme for the research of electronic password locking technique system.

In this foundation, this article has mainly carried on the μC/OS-II system transplant, and has realized the serial interface correspondence, keyboard input scanning and CF card data read-write and so on main module function through S3C2410. Completes the electronic password locking system recognition card end with to have the keyboard entry and the card reads takes, and carries on the data communication with the server.

Key words: Electronic password lock; embedded system; ARM; μC/OS-II;

II

目录

1 绪论 ....................................................................................... 1

1.1 本课题的提出 ....................................................................................1 1.2 论文主要工作 ....................................................................................2

2 电子密码锁系统 ..................................................................... 3

2.1 电子密码锁系统介绍 ........................................................................3 2.2 电子密码锁系统的性能 ....................................................................4

3 ARM介绍.............................................................................. 6

3.1 ARM技术..........................................................................................6 3.2 ARM微处理器的应用领域及特点..................................................7 3.3 ARM9微处理器系列........................................................................8 3.4 基于ARM9的S3C2410介绍 ..........................................................9 3.5 基于ARM9平台的电子密码锁系统............................................. 11

4 嵌入式操作系统μC/OS-II .................................................... 13

4.1 μC/OS-II简介 ..................................................................................14 4.2 μC/OS-Ⅱ系统的特点 ......................................................................15 4.3 μC/OS-Ⅱ的任务 ..............................................................................16 4.4 μC/OS-Ⅱ任务的存储结构 ..............................................................16 4.5 μC/OS-Ⅱ任务的状态 ......................................................................17

5 系统开发环境ADT............................................................... 19

5.1 ADT简介 .........................................................................................19 5.2 ADT Emulator for ARM ..................................................................20

6 系统设计与功能实现 ............................................................ 21

6.1 电子密码锁系统的核心设计 ..........................................................21 6.2 μC/OS-II系统的移植 ......................................................................22 6.3 串行接口介绍 ..................................................................................29 6.4 CF卡读写程序设计 ........................................................................32 6.5 键盘识别与扫描 ..............................................................................39

7 总结 ...................................................................................... 40

III

参考文献..................................................................................... 40 致 谢 .......................................................................................... 41 附录1英文原文............................................................................ 42 附录2中文译文............................................................................ 48

IV

联系合同范文客服:xxxxx#qq.com(#替换为@)