Post Go back to editing

Reproduction of the MIC audio

Category: Hardware
Product Number: AD2428

Hello everyone,

I'm new on this platform and I hope you'll be able to help me.
Also, pretty new working with A2B, so my understanding it's really limited for the moment.

I'm working with EVAL-AD2428WD1BZ, AD2428WB1BZ, ADUSB2EBUZ and a custom PCB that has a AD2428W Transceiver on the board.
Idea is to have EVAL-AD2428WD1BZ as master, custom PCB as slave0 and AD2428WB1BZ as slave1.

I've followed the QuickStartGuide and managed to connect the hardware. Jumper configuration on EVAL-AD2428WD1BZ it's the one on the QuickStartGuide.
I can listen the audio source from slave1 on master.



Hardware Block Diagram:


SigmaStudio Configuration:


I have a couple of questions.

PROBLEM1: I keep getting this validation report error


Question1: How can I disable or enable PDM interfaces channels or any other interfaces on slave0? (I think that's why I'm keep getting Problem1, because of unused interfaces)
In the image below you can see that PDM0 is grey/inactive.

I don't have any mic on my custom PCB, slave0. I think there's a way to send the mic signal from slave1 to master
but I don't know how to enable PDM on slave1. If I'm not wrong, I should connect Tx1-Ch from Microphone to PDM Slave1.
It's needed any other config to send upstream the mic sound?



Question2:
 If I have understood correctly, the Audio Source from Slave1 arrives at Slave0 on BN/BP pins and sent out via AN/AP pins.
Shouldn't I see some data from the sound on DTX0/DTX1 on Slave0 ? I have configured register 0x42, TX0EN = 1.
With the oscilloscope, I see a wave signal on Slave0 DTX0 Pin but it doesn't matter if TX0EN it's 0 or 1.
Also, I'm unable to set RX0EN = 1.


Question3: 
There is some AD2428W enable flow ? I've read the datasheet but still can't figure it out.
Maybe, I2SConfigure Register > I2S Global Configure Register > I2S Rate Register ... 

The thing that I would like to know is the correctness or not of my SigmaStudio setup.

If I missed to specify something please tell me.

Thanks!

 

  • Hi  

    Thank you for the correct details in the question.

    1. You can click on the RX0 pin at the respective node to toggle between RX and TDM functionality. I have copied a sample screenshot below. It is required to have one audio source connected to the receiving pin and an audio sink connected to the transmit pin.

      

    2. To enable the RX and TX functionality, you need to have one audio source connected to the receiving pin and an audio sink connected to the transmit pin. You can check the register values after a successful discovery by selecting the required registers and then clicking on the read button.

    3. This is mentioned under the "System Bring-Up and Discovery" section in the TRM. You can refer to the discovery options there to understand the flow of how discovery and configuration of registers should be done.

    If you have more questions, please let me know.

    Regards

    Arun

    .

  • Hello  

    Thank you for your reply. 


    I've managed to make it work, as shown in the demo. I can hear on main_nodethe audio source from slave1.

    Q1: 


    I'm still getting error messages, any idea why ? 

    Q2: # In response to your second point
    Probably I didn't make myself understood. 
    I'm was not talking about UART when I said "Also, I'm unable to set RX0EN = 1.", I was referring to RX0EN I2S Bit. (AD2428W Register 0x42)


    So, topic still open, I cannot change the state of RX0EN Bit. (I'm talking about the AD2428W register )



    I try to write 0x33 in the register (RX0, RX1, TX0, TX1 = Enable) But instead it is writing 0x23. 
    It is mentioned on the Pin Description that "This bit has no effect if the A2B_PDMCTL.PDM0EN bit is set." ( I checked and PDM0EN it's 0 and cannot change the state)


    So, as a quick reminder, this is my Hardware Configuration:



    SOC(Linux OS) 
    from custom PCB can record audio (.wav). via I2S. [I checked with oscilloscope DTX0 Pin and there is data]
    Then, I want to send the recorded .wav file from SOC to AD2428W Transceiver and I can see with the oscilloscope that
    there is data on AD2428W DRX0 Pin but I cannot hear anything on the main_node/slave1 audio sink.
    So, I'm assuming it is because AD2428W RX0EN Bit it's not enabled and the received data is not being upstreamed to the A2B.

    If I missed to specify something please tell me.
    Thanks!

  • Hi  

    1. This issue usually arises when you have assigned the stream from one node to another but have not enabled the RX pin from the node to the other one.

    The second line of the error message indicates that the TDM mode you have chosen is not sufficient to accommodate the stream you have provided. You may need to change the TDM mode to the next available one or reduce the stream channels.

    1. As I mentioned in my previous email, due to the SigmaStudio dependency, it is required to have an audio source or sink in the schematics and to connect it with the AD2428 blocks' TX and RX pins to enable them.

    Regards

    Arun

Before You Switch


Switching languages will make ADI Explorer unavailable. Resume your session by switching back to English and reopening ADI Explorer.