element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MicroZed Hardware Design Microzed I2C clock speed
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 174 subscribers
  • Views 324 views
  • Users 0 members are here
Related

Microzed I2C clock speed

Former Member
Former Member over 5 years ago

Does anybody have any idea how to set the clock frequency of the PS I2C interface of a microzed running petalinux? Ideally this could be done by an application at runtime but this appears not to be possible.

The only way I have found to do it is to manually edit the pcw.dtsi files created by petalinux-config.

The relevant line is

    clock-frequency = <400000>;

That is not really satisfactory as one day I'll make a change and forget and my devices will fail in the field.

And on a related topic, when I do set it to 400000 I get 285kHz. When I set it to 100000 I get 90kHz. Setting it to 250000 gives you 196kHz. I realise that there are only integer dividers so not all frequencies are possible but my calcs suggest we should get a lot closer. 

  • Sign in to reply
  • Cancel
  • bhfletcher
    0 bhfletcher over 5 years ago

    Hello @dbbt,

    It sounds like this is not specific to the MicroZed but rather something specific to Zynq-7000 and the Cadence PS I2C hardware and driver. You should definitely request this information on the Xilinx forums as they have detailed product experts who can help as well.

    I did a bit of searching to get you started, and it looks like you are not the only one having similar issues. Check these out, and then I'd encourage you to open your own forum post with Xilinx.

    https://forums.xilinx.com/t5/Embedded-Linux/i2c-cadence-driver-frequency-in-petalinux/td-p/744270

    https://forums.xilinx.com/t5/Embedded-Development-Tools/Petalinux-2016-4-I2C-problem/td-p/788464

    https://forums.xilinx.com/t5/Embedded-Linux/Cadence-I2C-Clock-Frequency/td-p/759420

    https://forums.xilinx.com/t5/Embedded-Processor-System-Design/Adjust-I2C-clock-on-iic0-interface/td-p/562906

     

    Bryan

    • 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 © 2023 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