Discussion in "General help Guidance and Discussion" started by    vrandesh    Jan 27, 2008.
Sun Jan 27 2008, 11:19 pm
#1
HI everybody.

I want some information over "programming in LINUX".
I also wanted to know more about SPI and programming using SPI as interface protocol.
Any example using SPI are also welcome to be mentioned.
Mon Jan 28 2008, 10:52 am
#2
read wiki
http://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus

SPI is easy to implement as compared to I2C. Try it

Programming Hints:
1. Data to be sampled at rising edge of clock
2. Data shifted as MSB to LSB i.e. MSB first.
Mon Jan 28 2008, 04:58 pm
#3
Hi Ajay .

I agree that SPI is easier to implement when compared to I2C. But i would like to know if there is any specific difference in using these protocols i.e SPI, I2C, CAN etc....

Well now the first doubt is that : Do we have to use these protocols as specified by the Manufacturer of the Micro controller/processor or is it upto the user to implement it?

Secondly , I would be glad if you can help me in giving information about programming in Linux.

Mon Jan 28 2008, 10:18 pm
#4
Regarding your doubt, So you should understand that word protocol means a standard defined for communication or data transfer between two peripherals. So SPI will be same for all the devices, it doesn't change for anyone or peripheral to peripheral. So while implement any protocol you have to follow its standards.
There are many things that counts in standard, like Voltage levels, data transfer rate, how data is to be transfered etc. So keep these things in mind while implementing protocols.
and regarding linux, I donno much about linux programming :-|

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

KevinTab
Sun Apr 28 2024, 05:35 am
Tumergix
Sun Apr 28 2024, 12:59 am
StevenDrulk
Sat Apr 27 2024, 08:47 pm
StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am