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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 Setting up ADAU1761 Audio Codec With IIC AXI Peripheral
  • 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 0 replies
  • Subscribers 338 subscribers
  • Views 730 views
  • Users 0 members are here
Related

Setting up ADAU1761 Audio Codec With IIC AXI Peripheral

Former Member
Former Member over 11 years ago

Hi,

I'm trying to set up the ADAU1761 Audio Codec on the Zedboard with Vivado 2013.4. I want to use the I2C (IIC) interface available on the ADAU1761 to do this. To communicate, I need an IIC interface on the Zynq, so I added one connected to my Zynq PS through the AXI bus.
Then I selected the "make external" option by right-clicking the port on I2C IP core present on my block digram view. I connected the created port to the correct pins (On zedboard, ADAU1761 I2C signal pins are connecter to AB4 and AB5
pins of Zynq chip) with Pin Planner. Then I exported the project to Xilinx SDK and ran the example project Peripherals Test, which works (step by step execution in debug mode passed the IIC peripheral test).

Now I'm trying to write on I2C line to communicate with the audio codec. For that I add lines in the xiic_selftest_exemple.c used by the main function of the example. After reading the doc, I added theses lines :

unsigned char Msg[3]; tt//Array of bytes

Msg[0] = 0x40; tttt//Subadress of the ADAU1761
Msg[1] = 0x00;tttt//It corresponds to Register R0 (Clock Control)
Msg[2] = 0x0E;tttt//The value I want to write in the register.

unsigned char *MsgPtr = Msg;//A pointer to my array

XIic_SetAddress(&Iic,XII_ADDR_TO_SEND_TYPE,0x76); t//Driver function to set up the adress of the slave we want to communicate with. On the Zedboard, this adress is 0b01110110 or 0x76 for write operations
XIic_MasterSend(&Iic,MsgPtr,3);tttttt//This function is supposed to send the three bytes of my buffer Msg.

Checking with the oscilloscope, the two pins of the ADAU used for SDA and SCL are LOW, and stay LOW. The ready state for I2C is HIGH, and I don't understand why I don't event have a I2C line whith a HIGH state. What am I missing ?

  • Sign in to reply
  • 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