2374 views|6 replies

23

Posts

1

Resources
The OP
 

51 MCU 4*4 matrix keyboard scanning (beginner) [Copy link]

Function:
Scan and read the input of 4*4 matrix keyboard and display it on digital tube, and the scanning includes de-jitter processing. Contains C source code and Proteus simulation file, including schematic diagram;

Note: Only the display of 0-15 is realized, and the numbers displayed by the 6 digital tubes are the same.

Key_scan.rar

29.94 KB, downloads: 8

This post is from 51mcu

Latest reply

Thanks  Details Published on 2023-1-8 18:44
 

23

Posts

1

Resources
2
 

The first floor is reserved for personal use

This post is from 51mcu
 
 
 

2

Posts

0

Resources
3
 

It is not recommended to use delay to eliminate jitter, or even not to use it. In a small-scale program, the impact may not be very obvious. Try not to use soft delay. Use timed delay, which will not interfere with the operation of the main program, and can determine whether the key is long pressed.

This post is from 51mcu

Comments

OK, thanks for the reminder.  Details Published on 2021-9-10 10:32
 
 
 

23

Posts

1

Resources
4
 
Confession of the Spacebar was published on 2021-9-10 09:21 It is not recommended to use delay to eliminate jitter, or even not to use it. In smaller programs, the impact may not be very obvious. Try not to use soft delay, use timed delay...

OK, thanks for the reminder.

This post is from 51mcu
 
 
 

122

Posts

2

Resources
5
 

During keyboard scanning, do not wait until the key is released before proceeding. It is best to consider the operation of concurrent events, which will make the program more flexible.

This post is from 51mcu

Comments

When you are just getting started, you can only start writing from the simplest and most concise.  Details Published on 2021-9-10 15:29
 
 
 

23

Posts

1

Resources
6
 
baopodao posted on 2021-9-10 14:27 During keyboard scanning, do not wait until the key is released before executing. It is best to consider the operation of concurrent events, so that the program is more flexible.

When you are just getting started, you can only start writing from the simplest and most concise.

This post is from 51mcu
 
 
 

2

Posts

0

Resources
7
 
Thanks
This post is from 51mcu
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list