摘要
介绍了应用于单片机矩阵键盘扫描原理,在行列扫描原理基础上通过配对行列扫描结果并进行"或"运算的编程方法,在C语言环境下,通过if语句实现矩阵键盘任意编码的目的。
This paper introduces the programming method applied to the matrix keyboard scanning principle of single chip computer,and puts forward a program model of pairing the result of row and column scanning and performing OR operation on the basis of the principle of row and column scanning,in C language environment.The purpose of arbitrary encoding of matrix keyboard is realized by if statement.
出处
《工业控制计算机》
2018年第7期141-142,共2页
Industrial Control Computer
关键词
单片机
矩阵键盘
编码方法
C语言
single chip computer
matrix keyboard
coding method
C language