描述:LED Panel Mount Indicators Rect Blue 430nm Dif Lens No Wire/Con Manufacturer:Bivar Product Category:LED Panel Mount Indicators Product Attribute:Attribute Value
用中断的方式,有键按下进中断扫描键盘。P1口先置为0x0f,为中断准备。中断后P1口置0xff(关键是这里,中断进去后没用,不知道怎么办),然后扫描键盘。下面是程序:#include#include#include#include#define COM8155 XBYTE[0xff20] //8155控制口地址#define PA XBYTE[0xff21] //8155A口地址#define P
评论