Of course, the framework does not support doing audio without an external clock source, which is normal, but for my purpose i don't mind losing samples and having distortion for this phase of development.
i based my application off of the mc-audio configuration for the framework since it also has a xcore-200 chip. so far i have modified the mclk and mclk2 (for the 2 tiles) generation code in main.xc and audio.xc in this manner:
Code: Select all
//modified configure_clock_rate(clk_audio_mclk2, 100, 8); configure_port_clock_output(p_mclk_in2, clk_audio_mclk2); set_port_clock(p_for_mclk_count, clk_audio_mclk2); start_clock(clk_audio_mclk2); //default //set_clock_src(clk_audio_mclk2, p_mclk_in2); //set_port_clock(p_for_mclk_count, clk_audio_mclk2); //start_clock(clk_audio_mclk2);
I haven't looked into setting mclk for different sampling rates but i think it should work.
So i think this test setup should work, but im looking for a general validation.