LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-08-2011, 02:31 AM   #1
raulapati
Member
 
Registered: May 2010
Posts: 51

Rep: Reputation: 0
how to write i2c drver for keypad in linux for at91sam9261 board


hai all i have to interface a keypad to at91sam9261 board in linux platform..can any body help mee...


thanks in advance

with regards,
vishnu
 
Old 03-08-2011, 07:09 PM   #2
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Did I2C with Linux in the mid-90's so the dust is pretty thick and the rust is nice and brown. One thing that worked very well was to plan things out in advance rather than tinker-til-done.

I2C is first of all a serial connection so lots of the dancing one does with vanilla serial ports applies. Of course there are no modem signals to handshake. That happens in the I2C protocol itself. From what I remember, we started with COMx driver code and adapted. Today's USB is also serial and might be a better fit since COMx support has faded and so many things have USB connections and associated support.

We made a cable from I2C into the COM port on another computer. We watched what was happening with minicom or similar. Eventually, we built a small program that behaved according to our device spec. The "driver" would then talk to this bogus device until all of that worked. By that time, we had real device hardware and could sort the final details like timing there. We kept the COM port box as a spy on the serial data.

I'll tell you what I remember and help however I can.
~~~ 0;-Dan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] numeric keypad/board doesnt work fachamix Ubuntu 4 06-30-2012 06:30 AM
Access I2C from x86 board zvivered Linux - Embedded & Single-board computer 3 03-03-2011 02:25 PM
Embedded LINUX on AT91SAM9261 BenBB Linux - Embedded & Single-board computer 3 07-23-2009 04:12 AM
How to write a i2c chip driver which handles different addresses avyadavnitw Linux - Embedded & Single-board computer 0 06-15-2009 11:57 AM
Linux KeyPad Driver on Target board MKSrivastava Linux - Laptop and Netbook 0 01-22-2006 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration