8051 Microcontroller Projects DISCUSSION

C Program to Interface Keypad Using 8051

Started by syedzainnasir C Program to Interface Keypad Using 8051
2 replies 248 views 2 participants
Latest activity · 25 Feb 2017

C Program to Interface Keypad Using 8051

syedzainnasir 8051 Microcontroller Projects Forum
#1
I wanna make a program in c which will scan the keypad and send the result to first serial port.
P1.0 to P1.3 stands for columns and P2.0 to P2.3 stands for rows. Serial port should have a band 56k, 8 bit and 1 stop bit.
Help me do + understand it.. Thanx
A beginner is here..

Community replies 2

Re: C Program to Interface Keypad Using 8051

#2
[quote=Josephine post_id=188 time=1488022955 user_id=81] I wanna make a program in c which will scan the keypad and send the result to first serial port.
P1.0 to P1.3 stands for columns and P2.0 to P2.3 stands for rows. Serial port should have a band 56k, 8 bit and 1 stop bit.
Help me do + understand it.. Thanx
A beginner is here.. [/quote]
The coding method I followed is implementing small functions: column_scan, row_scan and then the main. You may also need a 2-D array as lookup for getting the value of the key that is pressed.

Once you get the keypad value, sending it through serial port is easy.
Recommended tutorial: [url=http://www.theengineeringprojects.com/2015/12/interfacing-keypad-8051-microcontroller-proteus-isis.html]Interfacing of Keypad with 8051 Microcontroller in Proteus ISIS[/url]

Re: C Program to Interface Keypad Using 8051

#3
C was initially created by Dennis Ritchie in the vicinity of 1969 and 1973 at Bell Labs and used to re-actualize the Unix working framework. It has since turned out to be a standout amongst the most broadly utilized programming dialects ever with C compilers from different merchants accessible for the lion's share of existing PC structures and working frameworks. c programming pdf C has been institutionalized by the American National Standards Institute (ANSI) since 1989 (see ANSI C) and consequently by the International Organization for Standardization (ISO).

Notwithstanding its low-level abilities, the dialect was intended to support cross-stage programming. A norms consistent and movably composed C program can be accumulated for a wide assortment of PC stages and working frameworks with few changes to its source code. The dialect has turned out to be accessible on an extensive variety of stages, from implanted microcontrollers to supercomputers. Unix was one of the principal working framework portions actualized in a dialect other than gathering. Prior occasions incorporate the Multics framework which was composed in and Master Control Program for the Burroughs B5000 written in ALGOL in 1961. In around 1977, Ritchie and Stephen C. Johnson rolled out further improvements to the dialect to encourage conveyability of the Unix working framework. Johnson's Portable C Compiler filled in as the reason for a few usage of C on new stages.
TEP COMMUNITY