Page 1 of 1

C Program to Interface Keypad Using 8051

Posted: Sat Feb 25, 2017 11:42 am
by Josephine
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..

Re: C Program to Interface Keypad Using 8051

Posted: Sat Feb 25, 2017 11:43 am
by Junaid_Shahid
Josephine wrote:
Sat Feb 25, 2017 11:42 am
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..
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: Interfacing of Keypad with 8051 Microcontroller in Proteus ISIS

Re: C Program to Interface Keypad Using 8051

Posted: Fri Mar 10, 2017 7:38 am
by ShraddhaKapoor
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.