Im playing some frequency between 15K to 20 K via TCC module. Whenever I disable the TCC after playing, the Tick sound comes at last.
I want to get rid of this tick sound..
A TCC on its own won't make any sound - so please describe how you are creating the sound.
Post your schematic (aka "circuit diagram") - see Tip #1 for instructions.
Please give a fuller description of what this "Tick sound" is ?
Do you have an oscilloscope to see what's happening?
If so, post a screenshot.
Perhaps post a minimal but complete code example which illustrates the issue. Again, see Tip #1 for instructions.
Are you stopping at the zero crossover or mid-waveform?
Tick sound is same as saying tick.
Im generating some sound via speaker through TCC0.
below is the code
void tcc_config_diff(int period)
struct tcc_config config_tcc;
config_tcc.compare.wave_ramp = TCC_RAMP_RAMP1;
tcc_init(&tcc_instance_diff, TCC0, &config_tcc);
tcc_set_compare_value(&tcc_instance_diff, 0, period/2);
When I do either tcc_disable or disable speaker the tick sound comes.
Also the frequency I'm generating is not stable and exact.
I want exact frequency with stability.
Kindly help to reach the goal.
Also please look into my DMA thread which is again big issue for me.
© 2020 Microchip Technology Inc.