基于STC89C52单片机的实验系统开发与设计
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
洛阳理工学院
课程设计报告
课程名称单片机原理与应用
设计题目基于STC89C52单片机的实验系统开发与设计专业计算机科学与技术
班级B120505
学号
姓名
完成日期2014年6月27日
基于STC89C52单片机的实验系统开发与设计
摘要
STC单片机在8位的MCS51内核单片机行列中逐渐被认可,在单片机教学实验系统中普遍应用.由于STC单片机问世时间短,大部分写录器不能支持或仅支持它的部分功能.STC单片机在出厂时已经为用户写入程序做了充分的准备,在单片机内部设计了ISP在线下载模块,使得用户可以自行设计程序下载器.但其提供的PC 机程序下载软件只能通过Rs232串口下载程序,而目前一般的计算机特别是笔记本大多数没有配置RS232串行接口而只配置了USB串口.为此设计了STC单片机程序下载器,它利用F'1232BM组成串口转换器,将USB串口虚拟成RS232串121,解决了此问题。TC89C52是S一种低功耗、高性能CMOS8位微控制器,具有以下标准功能: 8k 字节Flash,512字节RAM, 32 位I/O 口线,看门狗定时器,内置4KB EEPROM,MAX810复位电路,3个16 位定时器/计数器,4个外部中断,一个7向量4级中断结构(兼容传统51的5向量2级中断结构),全双工串行口。本次课程设计就是利用STC系列单片机作为微控制器开发一套软、硬件相结合的单片机实验平台。
利用STC89C52单片机作为微控制器开发一套软、硬件相结合的单片机实验平台,在Keil C环境下进行软件设计,主要包括流水灯、数码管显示以及LCD显示模块,在Protues中仿真成功,下载到电路板中验证成功。实现流水灯的跳转显示流动,应用中断实现数码管60之内计数以及LCD显示不同字符的功能。
关键词:STC单片机,仿真设计,实验系统,计数器,串行通信
Experiment Platform Development Design Based on
STC Microcontroller
ABSTRACT
STC microcontroller gradually being recognized in the ranks of eight MCS51 microcontroller core, the teaching system in the SCM commonly used. STC microcontroller has been written for the user program at the factory made full preparations, the interior design of the microcontroller ISP online download module allows users to design their own program downloader. But it provides a PC download software only through Rs232 serial download, and in particular current general notebook computer is not configured for most RS232 serial interface and only equipped with a USB port. For this design the STC microcontroller program downloader, which uses F'1232BM composed of serial converter, USB to RS232 serial virtual string 121, solves this problem. S TC89C52 is a low-power, high-performance CMOS8 bit microcontroller with the following standard features: 8k bytes of Flash, 512 bytes of RAM, 32 digital I / O lines, Watchdog timer, built-in 4KB EEPROM, MAX810 reset circuit, three 16-bit timer / counter, four external interrupts, a 7-vector interrupt structure 4 (compatible with traditional 51 2 5 vector interrupt structure), full-duplex serial port. The curriculum design is the use of STC Series MCU microcontroller development as a software and hardware combination of single-chip experiment platform.
As the use of single-chip microcontroller STC89C52 develop a software and hardware platform combining single-chip experiment in Keil C environment for software design, including water lights, digital display and LCD display module, the simulation successfully Protues downloaded to successfully verify the circuit board. Jump to achieve water lights display flow achieved within the application interrupts the count, and 60 digital LCD display different character
.KEYWORDS:STC microcontroller, Simulation design, Experiment platform, Counter, Serial communication