Click here to Skip to main content
15,884,176 members
Articles / Internet of Things / Arduino

Keypad Scanning Hardware/Firmware

Rate me:
Please Sign up or sign in to vote.
4.82/5 (7 votes)
14 Jan 2011CPOL7 min read 50.6K   687   15  
Scan any size switch matrix using 5 general purpose I/O ports.
#ifndef _UART_H_
#define _UART_H_ 1

#define UART_BAUD_SELECT(baudRate,xtalCpu) ((xtalCpu)/((baudRate)*16L)-1)

//Method declaration
void uart_init(word);
void SendDataPacket(char*, byte);
void SendByte(byte);

#endif  //_UART_H_

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired
United States United States
Currently enjoying retirement and working on projects without pressure, deadlines or any kind of management.

Comments and Discussions