-
PIC SINGLE-CHIP KEYSTROKE TEST
包括仿真电路及C程序,参考《PIC单片机入门和实战》。按键检测原理:PORTB的高4位设置为输入模式,且开启内部若上拉功能,这样,PORTB的高4位就全都是1,也就是按键的列线全是1,而PORTB的低4位全是0,也就是按键的行线全是0。若有按键按下,那么行线和列线就会连通,按键所在的列线的电压就会拉低,变为0。这个时候,读PORTB,低4位仍然为0 ,但是高四位就会有一位也是0。所以if((PORTB & 0xF0)!=0xF0)可以判断按键是否按下,因为如果按下了,高四位就不全为1。按键扫描,低4位依次输出0,而 低4位的另外3位输出1,那么,当输出0的行线,碰到按键按下的列线,就会将列线的电压拉低,这时候,读PORTB,就会得到按键的行列位置,即按键码。如果输出0的行线,未与按键的列线相连,那么高4位仍然全为1。就继续扫描。KeyCode[]数组中,存储了最近几次的按键码,最多可以存储最近8次,更改数组就可以更改存储大小。若多连接几个数码管,就可以依次显示按键的内容,如同计算器一样
- 2023-06-16 10:20:04下载
- 积分:1
-
s344b0 mp3 FOSS
s344b0的mp3源码-s344b0 mp3 FOSS
- 2023-02-01 12:15:04下载
- 积分:1
-
chip transceiver chip unlimited some of the information, including schematics, p...
单片无限收发芯片的一些资料,包括电路图,印版图,程序-chip transceiver chip unlimited some of the information, including schematics, printed map, procedures
- 2022-11-08 07:25:03下载
- 积分:1
-
8051系列教程范例
8051系列教程范例 -8051 Series 8051 Series Tutorial Tutorial Example Example
- 2022-01-26 15:08:43下载
- 积分:1
-
2410核心板的pcb电路图,具有很好的参考价值,方便学习arm的朋友。...
2410核心板的pcb电路图,具有很好的参考价值,方便学习arm的朋友。-2410 core pcb circuit board with a good reference value, to facilitate learning arm friends.
- 2023-03-24 15:45:04下载
- 积分:1
-
这是一个实现向一块ARM板上移植uclinux2.0的程序,通过PC机的串口1可实现向目标板的flash里面写入uclinux2.0...
这是一个实现向一块ARM板上移植uclinux2.0的程序,通过PC机的串口1可实现向目标板的flash里面写入uclinux2.0- This is a realization transplants uclinux2.0 together to the
ARM board on the procedure, 1 may realize through the PC machine
string mouth to inside goal board flash reads in uclinux2.0
- 2022-11-24 16:45:03下载
- 积分:1
-
The domestic company develops based on the LINUX operating
system graphical inte...
国内一家公司开发的基于LINUX操作系统的图形界面,可以用于嵌入式LINUX系统中。- The domestic company develops based on the LINUX operating
system graphical interface, may use in to insert in the type LINUX
system.
- 2022-01-25 18:20:21下载
- 积分:1
-
基于S3C44B0的USB测试试验程序源代码,在SDT集成开发环境开发的,修改自Samsung提供的源代码,分开后更便于学习...
基于S3C44B0的USB测试试验程序源代码,在SDT集成开发环境开发的,修改自Samsung提供的源代码,分开后更便于学习-S3C44B0 USB-based tests source code, the SDT integrated development environment developed by Samsung changes since the source code, the separation easier to learn
- 2023-08-07 09:55:03下载
- 积分:1
-
" see mips run" is a very classic study mips structure of information a...
"see mips run"是一本非常经典的学习mips结构的资料,最新中文版。-" see mips run" is a very classic study mips structure of information and the latest Chinese version.
- 2022-03-07 14:26:16下载
- 积分:1
-
LPC2106控制发光二极管,简单好用,可以帮助简单的了解LPC2106的编写...
LPC2106控制发光二极管,简单好用,可以帮助简单的了解LPC2106的编写
-LPC2106 Control of light-emitting diodes.Simple and easy to use,Learn easy to use.
- 2023-05-10 03:30:03下载
- 积分:1