The order of changing several cell parameters in ADAU1701 by an external microprocessor.
Hello!
The circuit has some kind of cell, such as a switch with two positions. I look at the memory allocation and see that this cell has two parameters, with addresses 13 and 14.
Cell Name = SW1
Parameter Name = stereomux1940ns410
Parameter Address = 13
Parameter Value = 0
Parameter Data :
0x00, 0x00, 0x00, 0x00,
Cell Name = SW1
Parameter Name = stereomux1940ns411
Parameter Address = 14
Parameter Value = 1
Parameter Data :
0x00, 0x80, 0x00, 0x00,
If I switch this cell in the diagram, both parameters change the value. I'm going to switch the cell by writing new values through I2C. I can't change both at the same time. After changing one parameter, the cell will be in an unusual state for some time, when both parameters are 0 or 1. Is this acceptable? What intermediate state is better to choose?
Serg.
Audio Signal Processors
SigmaDSP Audio Processors
adau1701
Hello Serg,
If you look at the capture window in SigmaStudio you will see what it is doing. It is being rather simple and not too smart about it. This parameter number is the gain for each input. What SigmaStudio does is it sets the first one, first and the second one second no mater the state of the switch.
So if the first one is on then for a short time none of them are on.
If the second one is on then it will turn on the first one and for a short time both will be on. Keep in mind this is a very short time.
If you can get fancy with your program you can always make certain that both are muted before unmuting the other. This is if you want a break-before-make switch functionality.
If you want a make-before-break functionality then make sure both are on then shut one off.
Keep in mind this is for a switch with no slew. The slew types are different. They slew (crossfade) between the two signals. You could do that with your controller if you like without using up MIPS in the DSP. Just keep writing gain values turning one down while the other is coming up. But, for these writes you will need to use Safeload to prevent clicks. This DSP is one of our early ones and when you are writing to the memory the core is blocked from writing and that can cause glitches in the audio.
Dave T
Thank you! Did I understand correctly? If both are "On", the output will be the sum of the signals. Is that right?
Yes, it will sum the two signals.
Dave T
Thank you very much for the detailed answer!
Serg.
Please log in to reply.