摘要
在日常生活中,我们经常要用到键盘来实现对电子装置的控制。小到手表手机,中到电视电脑,大到各种复杂仪器,都需要通过各种按键来实现各种操作。本次课程设计以按键控制显示为主题,以MSP430G2553单片机及其接口芯片为核心构造一个键盘控制显示系统。单片机最大的特点是能单独实现电路控制所要求的智能化控制功能。单片机控制系统能够取代以前利用复杂电子线路和数字电路构成的控制系统,可以通过软件来实现。数码管4*4矩阵键盘按键号是按下任意键时,数码管都会显示其按键序号,通过MSP430G2553单片机的程序处理,扫描程序首先判断按键发生在哪一列,然后根据所在的行附加不同的值,从而得到按键的序号。
关键词: 单片机MSP430G2553 数码管 键盘显示
Abstract
In daily life, we often want to use the keyboard to realize the control of electronic devices. Small to watch phone, to TV in computer, big to all kinds of complex instruments, all need through all kinds of pressing buttons all kinds of operation. This course design buttons to control and display as the theme, MSP430G2553 single-chip microcomputer and its interface chip as the core structure a keyboard control and display system. The biggest characteristics is a single chip microcomputer control realization circuit can alone for the intelligent control function. Single-chip microcomputer control system can be replaced by complex before electronic circuits and digital circuit consists of the control system, by software to realize. Digital tube 4 * 4 matrix keyboard key number is press any key, digital tube will show the buttons, serial Numbers, through the MSP430G2553 microcontroller procedures, scanning program first judge where a list of key happen, then according to the line where additional different values, which get buttons serial number.
Keywords: SCM MSP430G2553 digital tube keyboard display
目录
TOC \o "1-3" \u
1 系统方案分析 PAGEREF _Toc330646309 \h 3
1.1键盘的选用 PAGEREF _Toc330646310 \h 3
1.2单片机的选用 PAGEREF _Toc330646311 \h 3
1.3显示器的选用 PAGEREF _Toc330646312 \h 4
1.4辅助功能的论证与选用 PAGEREF _Toc330646313 \h 4
2系统理论分析与计算 PAGEREF _Toc330646316 \h 5
2.1单片机主机系统电路分析 PAGEREF _Toc330646317 \h 5
2.2复位电路分析 PAGEREF _Toc330646318 \h 5
2.3矩阵式键盘电路分析 PAGEREF _Toc330646319 \h 5
2.4译码显示电路分析 PAGEREF _Toc330646320 \h 6
3.电路与程序设计 PAGEREF _Toc330646321 \h 6
3