ΣSigmaStudio Ask AI Русский Log in

Controlling a external device through i2c (Sigma350 family) not working

SigmaDSP & SigmaStudio IcaroViana2 Mar 6, 2023 00:00 3 replies Original on forum ↗
Subscribe
IcaroViana2 Question
Mar 6, 2023 00:00

Hi everyone,

I'm trying setup a PCM1865 through my ADAU1466 using the Master Control Port I/O block.

I tryed different ways to do this, never worked.

Can someone explain me the XML file? If mine is correctly configured?

The ADC serial control port use 16-bit data words

The ADC address is 0x94 8-bit, 0x4A 7-bit (last one modified by the R/W bit)

The register address is 113 and I need to configure to 0000 1111 binary, page 0, as this picture (mute all inputs):

The first try XML:

After that, I tried:

Without "Dspname"

With 00 0F and len="4" on register 113

Without page select

With address byte length=1 in xml and block (Mistake? Don't know, i'm just trying every combination possible)

Block configuration:

Ps.: The xml file is in the same folder as the project.

Ps2.: My i2c e2prom is in the same bus (master i2c), so the bus is working.

Thanks by advance

Audio Signal Processors

adau1452

adc

software

problem

adau

i2s

sigmastudio

SigmaDSP Audio Processors

SigmaDSP

SS 4.7

dsp&processors

audio

adau1466

dac

Show More

pastedimage1678131317237v2.png
pastedimage1678131317237v2.png
pastedimage1678131250262v1.png
pastedimage1678131250262v1.png
pastedimage1678131362534v3.png
pastedimage1678131362534v3.png
DaveThib Reply
Mar 6, 2023 00:00

Hello IcaroViana2,

Have you connected an oscilloscope or an I2C bus monitor to the I2C buss to see what is actually coming out? That would be helpful otherwise you are running blind not knowing what is actually being sent out.

Also, at least attach your XML file and your entire project would be better but I understand if you do not want to. Just use a simpler project as a test project and attach that.

Dave T

IcaroViana2 Reply
Mar 6, 2023 00:00

Hello Dave! Good to see you

The project is just a test... Just learning how to program i2c devices with the DSP... After this, I'll start the real program...

Attached are both xml and project that I'm using.

About the oscilloscope, I'm able to see i2c memory communicating, clocking, everything, but when I toggle switch on to trig the Control port Ext. Trigger, something happens:

One pulse. Just this. Nothing more. No communications at all.

This is like "Address not found", but I have the ADC correctly wired and configured in the block and XML... (I think).

The ADC

The files:

ADAU1466-IcaroViana2.rar

pastedimage1678144425817v1.png
pastedimage1678144425817v1.png
IcaroViana2 Reply
Mar 6, 2023 00:00

Solved. The Sub-Address byte is 1, not 2.