I'm using the ADSP-21469 EZ-Board and I would like to use the AD1939 and the SPDIF for input and output (analog in/out and digital in/out)an mix the signals, for example analog in to digital out or digital in to analog out. At the moment both are connected to the Core through SPORTs.
When the input buffers are filled both input SPORTs generate an interrupt. Each ISR sets a flag an if both flags are set the audio processing starts.
My Problem is that the clocks of the SPORTs have different sources, so the SPORTs work asynchronus.
I have already looked to some code examples and I think I need to use a PCG before I can connect the clock from SPDIF to the clock of AD1939 SPORT.
Perhaps someone can help me programming the PCG.
At the attachment you can find my current signal routing.