www.8devices.com
|
|
Working with SPI, GPIO and I2C
Author |
Message |
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
_________________ | |
|
10 Jan 2012, 13:36 |
|
![](./styles/serenity/theme/images/spacer.gif) |
Saulius
Joined: 08 Dec 2011, 09:35 Posts: 138
|
Some progress - I2C example.
|
10 Jan 2012, 19:08 |
|
![](./styles/serenity/theme/images/spacer.gif) |
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
Thanks for posting! Are the I2C pins are the same as GPIO 1 and GPIO 2 in your GPIO example?
What are R3 and R4 for? Are they protection resistors that limit the current in case something goes wrong?
_________________ | |
|
10 Jan 2012, 20:07 |
|
![](./styles/serenity/theme/images/spacer.gif) |
Saulius
Joined: 08 Dec 2011, 09:35 Posts: 138
|
Yes, it is.
R3 and R4 are recomended by I2C standard.
|
10 Jan 2012, 20:32 |
|
![](./styles/serenity/theme/images/spacer.gif) |
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
_________________ | |
|
11 Jan 2012, 07:56 |
|
![](./styles/serenity/theme/images/spacer.gif) |
gedass
Joined: 07 Dec 2011, 16:01 Posts: 525 Location: Lithuania
|
|
11 Jan 2012, 08:05 |
|
![](./styles/serenity/theme/images/spacer.gif) |
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
_________________ | |
|
11 Jan 2012, 08:53 |
|
![](./styles/serenity/theme/images/spacer.gif) |
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
Just a small bump. Do you guys have any idea why only some of the GPIO's are working, even if they are set to GPIO using mmio?
_________________ | |
|
17 Feb 2012, 14:27 |
|
![](./styles/serenity/theme/images/spacer.gif) |
Saulius
Joined: 08 Dec 2011, 09:35 Posts: 138
|
Some of them are defines as special functions, and probably used by some drivers.
|
17 Feb 2012, 17:36 |
|
![](./styles/serenity/theme/images/spacer.gif) |
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
_________________ | |
|
17 Feb 2012, 18:02 |
|
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|