matrix key pad configuration lecturer: reza arjmandi autumn 2015 lecture 6: introduction matrix...

Download Matrix Key Pad Configuration Lecturer: Reza Arjmandi Autumn 2015 Lecture 6: Introduction Matrix KeyPad Configuration

If you can't read please download the document

Upload: amberlynn-shields

Post on 18-Jan-2018

221 views

Category:

Documents


0 download

DESCRIPTION

Matrix KeyPad: 4*4 4*3 3*3 …

TRANSCRIPT

Matrix Key Pad Configuration Lecturer: Reza Arjmandi Autumn 2015 Lecture 6: Introduction Matrix KeyPad Configuration Matrix KeyPad Matrix KeyPad: 4*4 4*3 3*3 Matrix KeyPad-Scan Methode Click Output Input xBB Code: Input Output For number 10 Matrix KeyPad-Table Code For 4*4 bit7bit6bit5bit4bit3bit2bit1bit0 C4C3C2C1R4R3R2R xEE xDE xBE x7E xED xDD xBD x7D xEB xDB xBB x7B xE xD xB x Matrix KeyPad 4*4 Not Clicked Code: 0xFF Matrix KeyPad-Scan Function For 4*4 Example: #include //include Header file unsigned char __flash code[16]= {0xEE,0xDE,0xBE,0x7E,0xED,0xDD,0xBD,0x7D,0xEB,0xDB,0xBB,0x7B,0xE7,0xD7,0xB7,0x77}; unsigned char scan(void); //function prototype void main(void) { char ch=scan(); for(unsigned char i=0;i