文档详情

基于51单片机的数字频率计设计.doc

发布:2017-09-16约2.84万字共20页下载文档
文本预览下载声明
龙岩学院 毕业论文(设计) 题目:基于单片机的数字频率计的设计 专业:04电子信息工程      作者:吴清贵          指导教师(职称):傅智河(讲师) 二00八 年 四 月 二十四日 基于单片机的数字频率计的设计 学校:龙岩学院 专业:电子信息工程 学号:200402135 姓名:吴清贵 指导老师:傅智河 【摘要】 本设计以AT89S52单片机为核心充分利用硬件资源设计的一种频率计,该频率计首先将被测信号放大整形处理,变成满足单片机I/O口接受的TTL/ CMOS 兼容信号从单片机的T1输入口输入直接累加脉冲数,将单片机内部定时器定时为1S,这时累加的脉冲数即为被测信号的频率。最后经单片机处理送至lcd液晶显示屏显示。 【关键字】 单片机(AT89S52)、放大整形、 数据处理、1602aLCD、 【Abstract】 This design take at89S52 monolithic integrated circuit as the core full use hardware source designs one kind of frequency meter, this frequency meter will be measured first that signal enlargement reshaping processing, turns satisfies TTL/which the monolithic integrated circuit I/O mouth accepts the CMOS compatible signal from monolithic integrated circuits T1 input port input direct summation pulse number, the monolithic integrated circuit interior timer fixed time is 1S, by now accumulated the pulse number namely for is measured the signal the frequency. Finally passes through monolithic integrated circuit processing to deliver to the lcd liquid crystal display monitor demonstration. 【Keyword】AT89S52、 Larger plastic、Data processing、1602aLCD……………………………………………………………………………………………4 1.系统概述……………………………………………………………………………………5 1.1数字频率计概述…………………………………………………………………………5 1.2频率测量仪的设计思路与频率的计算 ……………………………………………………5 1.3基本设计原理 …………………………………………………………………………5 2.数字频率计(低频)的硬件结构设计……………………………………………………5 2.1 系统硬件的构成 ………………………………………………………………………5 2.2 AT89S52单片机及其引脚说明 …………………………………………………………6 2.3 信号调理及放大整形模块 ………………………………………………………………7 2.3.1工作原理 ………………………………………………………………………8 2.3.2 信号放大仿真图 …………………………………………………………………8 2.3.3 信号转换成方波 …………………………………………………………………8 2.3.4 LF353双运算放大器简介 ………………………………………………………8 2.4 显示模块 ………………………………………………………………………………9 2.4.1 1602ALCD与单片机的接法 ………………………………………………………9 2.4.2 1602ALCD基本技术 ……………………………………………………………10 3.软件设计 …………………………………………………………………………………12 3.1 系统工作流程图 ………………………………………………………………………12 3.1.1 T0的1s定时……………………………………………………………………13 3.
显示全部
相似文档