Sie sind auf Seite 1von 1

* * * *

Concept :keypad. Embedded Processor :AT89S51. Author :M.Malleswra Rao. Company :Essen Electronic systems Pvt. ltd.

***Descrption*** >> i have done the keypad program using 16 switches arranged as a 4*4 matrix. ro ws are connected to p1.4 to p1.7 and columns are connected to p1.0 to p1.3. **** Implementation Notes:**** >> The frame format of UART is used in this as follows: ( 1 start bit + data + no parity + 1 stop bit ) these bits are cofigure d in the U1LCR register. ****SOFTWARE FUNCTIONS Description ***** >> first of all i initialised the uart configuration for observing the outp ut on hyper terminal. so the baud rate is set as 9600. read_key function():in this function the rows are set high and columns are set a s low. and then i assigned a ascii character for each key corresponding its row and column. whenev er any switch is pressed the corresponding ascii character is printed on hyper terminal. send function():whenever the ascii character is coincides, that character should be stored in SBUF register. delay function():for delay purpose avoiding the bouncing.

Das könnte Ihnen auch gefallen