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 |
|
|
Saulius
Joined: 08 Dec 2011, 09:35 Posts: 138
|
Some progress - I2C example.
|
10 Jan 2012, 19:08 |
|
|
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 |
|
|
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 |
|
|
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
_________________ | |
|
11 Jan 2012, 07:56 |
|
|
gedass
Joined: 07 Dec 2011, 16:01 Posts: 525 Location: Lithuania
|
|
11 Jan 2012, 08:05 |
|
|
David
Joined: 16 Dec 2011, 14:44 Posts: 105 Location: The Netherlands
|
_________________ | |
|
11 Jan 2012, 08:53 |
|
|
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 |
|
|
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 |
|
|
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
|
|