element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design I2c
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 11 replies
  • Subscribers 343 subscribers
  • Views 1341 views
  • Users 0 members are here
Related

I2c

arjunbk09
arjunbk09 over 13 years ago

Zynq-7020 has 2 I2c controllers, Can anybody please tell  how many peripherals can be controlled from a single controller.
                        Thank you

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 13 years ago

    Hi arjunbk09,

    In looking at UG585, the Zynq-7000 Technical Reference Manual, it appears that the I2C controller is capable of addressing in 7-bit or 10-bit mode as a bus master. 

    http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf

    Theoretically, this should allow you to access well over 100 devices on the bus.  The reality is that you are limited to the configurable address space of the devices that you wish to add to the bus.  Take a look at this article for a better explanation:

    http://en.wikipedia.org/wiki/I%C2%B2C

    From the article:  "The assignment of slave addresses is one weakness of Iu00B2C. Seven bits is too few to prevent address collisions between the many thousands of available devices, and manufacturers rarely dedicate enough pins to configure the full slave address used on a given board. Three pins is typical, giving only eight choices of slave address. While some devices can set multiple address bits per pin, e.g., by using a spare internal ADC channel to sense one of eight ranges set by an external voltage divider, usually each pin controls one address bit. Manufacturers may provide pins to configure a few low order bits of the address and arbitrarily set the higher order bits to some value based on the model. This limits the number of devices of that model which may be present on the same bus to some low number, typically between two and eight. That partially addresses the issue of address collisions between different vendors. Ten-bit Iu00B2C addresses are not yet widely used, and many host operating systems don't support them..."

    Hopefully this provides some insight into this topic.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • arjunbk09
    0 arjunbk09 over 13 years ago in reply to zedhed

    Thank you

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gayathrivlsi
    0 gayathrivlsi over 9 years ago

    I'm new to ZED board. i have to connect my accelerometer (1TG MPU 6050)  to the ZED board through the I2C protocol.

    If it is possible ?? If it is possible how to connect it? please anyone help me

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 9 years ago

    Hello Gayathrivlsi,

    Yes you can, please refer to the below post.

    http://zedboard.org/content/mpu6050i2c-based

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gayathrivlsi
    0 gayathrivlsi over 9 years ago

    Thank you  Jfoster

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gayathrivlsi
    0 gayathrivlsi over 8 years ago in reply to jafoste4

    Sir, I referred the link that you have sent. I am new to SDK. I dont know how to start with SDK. Is there any  possible way to do I2C interface between 1TG MPU 6050 with the Zynq 7000  board other than SDK?

    Thanks in advance

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Gayathrivlsi,

    I am sure there is another tool you could use to interface I2C to your PMOD, however I believe using Xilinx SDK is the easiest since you are using a Zynq Device. I am going to suggest you go through our Developing Zynq Software Speedway we offer. By then end of it you will be familiar with how to operate SDK.

    http://zedboard.org/course/developing-zynq%C2%AE-7000-all-programmable-soc-software-vivado-20133-201441-20152-and-20162

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gayathrivlsi
    0 gayathrivlsi over 8 years ago

    If I am using xilinx SDK tool to interface accelerometer to ZYNQ board , do I have to write the program ?

    If yes, in which language I have to write the program?  or else the  tool itself can generate the program?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Gayathrivlsi,

    SDK will not automatically create the program for you. However there is template code for initializing I2C at C:\Xilinx\SDK\2016.2\data\embeddedsw\XilinxProcessorIPLib\drivers\iicps_v3_2 which is accessible after installing SDK. The programing language is C.

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gayathrivlsi
    0 gayathrivlsi over 8 years ago in reply to jafoste4

    If i am using vivado tool. How do  I have to do i2c interface between acceleometer (1TG MPU 6050)  and zynq  7000 board ?

    Thanks in advance

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube