AnsweredAssumed Answered

ADAU1701 I2C communication with mcu

Question asked by op-electronics on Mar 11, 2014
Latest reply on Mar 23, 2014 by Yagami

Hi,

 

i'm new to SigmaDSP devices and to DSP in general. I have the ADAU1701 evaluation board and i'd like to control parameters data through a microcontroller via I2C. As microcontroller i'm using an ATmega328 and i'm writing code in the Arduino environment to keep things simple. The board which hosts the ATmega328 is a self-made, it runs from 3.3V  and i'm using a standard library named Wire http://arduino.cc/en/reference/wire#.Ux82Uc4z2YN

 

The problem is that i can't write anything to the ADAU1701 and actually i have no clue where to address the issue. On the hardware side i have SDA and SCL connected together on both boards at VDD level with pull-up resistors. I can see both clock and data when tracking with my oscilloscope.

 

The source code in Arduino is the following:

 

#include <Wire.h>

void setup()
{
Wire.begin();
}

void loop()
{
  Wire.beginTransmission(0x68);
  Wire.write(0x00);        
  Wire.write(0x00); 
  Wire.write(0x00);
  Wire.write(0x00);
  Wire.write(0x00);
  Wire.write(0xFF);
  Wire.endTransmission();    

  Wire.beginTransmission(0x68);
  Wire.write(0x00);        
  Wire.write(0x00);   
  Wire.write(0x00);
  Wire.write(0x00);
  Wire.write(0x06);
  Wire.write(0xD4);
  Wire.endTransmission();
  
  Wire.beginTransmission(0x68);
  Wire.write(0x00);        
  Wire.write(0x01);
  Wire.write(0x00);
  Wire.write(0x00);
  Wire.write(0x00);
  Wire.write(0x00);
  Wire.endTransmission();    
  
}

 

I'm just trying to turn off a sine tone which has the following data (as exported from Sigma Studio):

 

Safeload Write

Time:  17:27:46 - 160ms

IC:  IC 1

Cell Name:  Sine Wave

Param Name:  sin_lookupAlg19401mask

Param Address:  0x0000

Param Value:  255

Bytes:  4

Param Data: 0x00,     0x00,     0x00,     0xFF

 

Safeload Write

Time:  17:27:46 - 160ms

IC:  IC 1

Cell Name:  Sine Wave

Param Name:  sin_lookupAlg19401increment

Param Address:  0x0001

Param Value:  0.000208377838134766

Bytes:  4

Param Data: 0x00,     0x00,     0x06,     0xD4

 

Safeload Write

Time:  17:27:46 - 160ms

IC:  IC 1

Cell Name:  Sine Wave

Param Name:  sin_lookupAlg19401ison

Param Address:  0x0002

Param Value:  0

Bytes:  4

Param Data: 0x00,     0x00,     0x00,     0x00

 

 

Can you help?

 

Thank you!

Omar

Outcomes