Post Go back to editing

Adau 1452

Thread Summary

The user is working on an ADAU1452 project with a CS42448 for digital (TOSLINK) and analog inputs, aiming to implement automatic signal detection. The final answer suggests a basic technique using signal energy detection to route the active input to the output, but warns of potential issues if both inputs are present at the same level. The user confirms the analog input works but reports no sound output from the digital input, indicating a configuration issue.
AI Generated Content
Category: Software
Product Number: Adau 1452
Software Version: SigmaStudio 4.7

Hello.
I'm working on a basic adau1452 project with a cs42448 for digital (toslink) and analog inputs.
I've implemented an Nx2, where I can manually select the input. However, I want signal detection to be automatic. Could you please tell me how to do this?
Thank you very much.

  • Hello Sergica,

    There are so many ways to do this, I do need some info.

    So, based on which input is present currently, you want that input to be routed to the output?

    will both SPDIF and I2S be present at the time or only either input is present at the time?

    How do you want to compare your two inputs to route one of them to outputs?

    Below is a basic technique which detects which signal path is present (has high signal energy) and routes that to the output. 

    If both inputs are playing at the same time and at almost same level, then the two inputs will be switching back and forth between them and playing at the outputs, which is undefined. So, that situation needs different methods.

    This above circuit is just a basic start; it can be optimized and customized based of applications.

    Regards,

    Harish

  • No comments...thank you so much for the instructions.
    My goal is to be able to input from both analog (CD player) and Toslink (streamer).
    Either one sound source or the other, not both at the same time.
    I followed your diagram, and it works perfectly for my purpose.
    I'm so grateful to people and spaces like this. Thank you.
  • For my purposes, the board is working almost perfectly.
    
    However, I still have a few simple questions.
    
    1. Does muting unused outputs from hardware configuration help at all?
    
    2. Is it possible to implement a block or set to minimize clicks during compilation?
    
    3. I tried powering the board with ADAU from a USB power cable, but it doesn't boot. Does it need prior power negotiation, and is that why I need a 4-wire USB cable?
    
    Thanks
  •  please help with the follow up questions. Thank you

  • Hello Sergica,

    Sorry for the delay in response.

    1. Does muting unused outputs from hardware configuration help at all?

    I didn't quite understand this; there are no options to mute the outputs in hardware configuration, it only has options to 'tristate unused output channels' in SPORT section.

    Moreover, the unused output channels don't need to be muted in the schematic, because if you didn't include the input or output channel blocks (unused channels) in the schematics, then those channels will not get into the core. which means, if you are using I2S in serial input port 0, then you don't need to worry about the unused 14 channels, it can be disabled (uncheck the box) So, you don't need to worry about the unused channels, it won't create any noise. I hope I understand your question. If not, then feel free to reach out.

    2. Is it possible to implement a block or set to minimize clicks during compilation?

    You can include a slew-based mute right before outputs and enable the muting before compiling the project, once the project is compiled and running then you can unmute the outputs. Both sigma studio and system controller can do this job, you can implement via which one is available in your system.

    . I tried powering the board with ADAU from a USB power cable, but it doesn't boot. Does it need prior power negotiation, and is that why I need a 4-wire USB cable? Thanks

    I need some info.

    The ADAU1452 processor’s worst-case maximum power dissipation is 960 mW, while a standard USB 2.0 port can supply up to 2.5 W (5 V × 500 mA), which is sufficient to power the processor alone.

    However, ADAU1452 evaluation boards typically require higher current (around 1.5 A at 5–7 V) because they include additional components such as codecs, op-amps, LEDs, and EEPROMs. The total current demand depends on all these peripherals.

    In your case, we’ll need to calculate the total power requirement based on the ICs and components used on your custom PCB. Could you please share your schematic so that we can estimate the power consumption accurately?

    Thanks   for the reminder.

    Regards,

    Harish