登录
首页 » SCM » 本程序主要通过外部中断INT0及3.3端口读取PS2键盘值并通过LCD1602显示,键扫描码的解码通过数组方式解码,程序的解码功能主要针对数字及大小写字母和常用...

本程序主要通过外部中断INT0及3.3端口读取PS2键盘值并通过LCD1602显示,键扫描码的解码通过数组方式解码,程序的解码功能主要针对数字及大小写字母和常用...

于 2022-03-05 发布 文件大小:33.39 kB
0 181
下载积分: 2 下载次数: 1

代码说明:

本程序主要通过外部中断INT0及3.3端口读取PS2键盘值并通过LCD1602显示,键扫描码的解码通过数组方式解码,程序的解码功能主要针对数字及大小写字母和常用标点符号 硬件描述:PS2键盘的时钟线(clk)接89S51的INT0(P3.2),数据线data接(P3.3) LCD的控制端口分别为: RS = P2^7,RW = P2^6,EP = P2^5,数据端口为P0,液晶显示偏压VL必须接 -This procedure mainly through external interrupt INT0 and 3.3 read PS2 keyboard port value through LCD1602 display, key scan code decoder way through an array of decoding, the procedure for decoding function of the major figures and upper and lower case letters and punctuation marks commonly used hardware description: PS2 keyboard clock line (clk) then 89S51 the INT0 (P3.2), data lines data access (P3.3) LCD control port, respectively: RS = P2 ^ 7, RW = P2 ^ 6, EP = P2 ^ 5, data ports for the P0, LCD bias VL must be received

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一个解码器程序,内含派尔高-D协议,自已写的,只写了一个协议.同时增加了一个串口,用51单片机的一个脚进行模拟串行口.有兴趣可以看一下....
    一个解码器程序,内含派尔高-D协议,自已写的,只写了一个协议.同时增加了一个串口,用51单片机的一个脚进行模拟串行口.有兴趣可以看一下.-a decoder procedures intron Pelco-D agreements own writing, just write an agreement. While an additional serial port, using the MCU 51 feet for a simulated serial port. Interested can look at.
    2022-02-11 11:53:21下载
    积分:1
  • 80C51单片机
    采用80C51单片机为控制核心,利用超声波传感器检测道路上的障碍,控制电动小汽车的自动避障,快慢速行驶,以及自动停车,并可以自动记录时间、里程和速度,自动寻迹和寻光功能。-80C51 single-chip microcomputer used for the control of the core, the use of ultrasonic sensors detect obstacles on the road, control of electric cars automatic obstacle avoidance, fast low traffic speeds, as well as the automatic parking, and can automatically record time, mileage and speed, automatic track finding and searching optical function.
    2022-08-17 13:10:35下载
    积分:1
  • 触摸屏幕资料!还有电路图!可以借鉴的!是初学者的好资料...
    触摸屏幕资料!还有电路图!可以借鉴的!是初学者的好资料-touch screen information! There circuit! We can draw! Beginners is a good information!
    2022-07-19 04:20:05下载
    积分:1
  • 这是单片机编程的一些资料,让大家一起看看吧
    这是单片机编程的一些资料,让大家一起看看吧-MCU programming information, so we take a look at it
    2022-04-08 01:06:25下载
    积分:1
  • 自己用C语言编的一个看门狗,由于刚学单片机,写得功能比较简单...
    自己用C语言编的一个看门狗,由于刚学单片机,写得功能比较简单-Own use C language compiled a watchdog, as just learning microcontroller, written in relatively simple function
    2022-06-18 18:48:02下载
    积分:1
  • CY68013 USB2.0 speed on the bulk of the test procedure, interested can download...
    关于CY68013 USB2.0批量速度的测试程序,感兴趣的可以下载看看.-CY68013 USB2.0 speed on the bulk of the test procedure, interested can download and see.
    2022-02-24 16:46:19下载
    积分:1
  • sanDisk sd card standard protocol manual, very good information
    sanDisk sd卡标准协议手册,很好的资料-sanDisk sd card standard protocol manual, very good information
    2022-12-01 00:05:03下载
    积分:1
  • ARM7系列单片机的,键盘输入与LED扫描人机对话程序
    ARM7系列单片机的,键盘输入与LED扫描人机对话程序-ARM7 MCU series, keyboard input and LED scanning procedures man-machine dialogue
    2022-08-03 15:46:55下载
    积分:1
  • 本系统采用MSC
    本系统采用MSC-51系列单片机ATSC51和可编程并行I/O接口芯片8255A为中心器件来设计交通灯控制器,实现了能根据实际车流量通过8051芯片的P1口设置红、绿灯燃亮时间的功能;红绿灯循环点亮,倒计时剩5秒时黄灯闪烁警示(交通灯信号通过PA口输出,显示时间直接通过8255的PC口输出至双位数码管);车辆闯红灯报警;绿灯时间可检测车流量并可通过双位数码管显示。本系统实用性强、操作简单、扩展功能强。 -The system uses MSC-51 series single-chip ATSC51 and programmable parallel I/O interface chip 8255A-centric device designed to control traffic lights, can be achieved in accordance with the actual traffic flow through the P1 port 8051 chip set red, green fuel Liang function of time traffic light cycle, the countdown five seconds left when the yellow light flashing warning (traffic lights through the PA output signal indicates the time directly through the PC port output 8255 to double-digits) vehicle alarm闯红灯 green time traffic flow can be detected through a double-digital display. The system practical, simple and strong extensions.
    2022-08-26 05:28:44下载
    积分:1
  • lcd1602.驱动程序和1602中文资料
    lcd1602.驱动程序和1602中文资料- lcd1602.驱动程序和1602中文资料
    2023-01-05 11:25:04下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载