In need to build a sine wave generator with amplitude 0.1 and frequency 10k max by using PiC micro and a DAC IC. I can generate the wave by a for loop but it's not exactly in the frequency I need. I think it's better to use timer of micro. But the problem is here. The minimum interval of timer without prescale is much bigger that what I need. So the problem is making an exact interval between generating a voltage by DAC using e.g. 10 sample per cycle or 100kHz sample rate or less.
Could you give me any advice that how can I generate exactly the signal with the mentioned frequency by an idea or some code?
Could you give me any advice that how can I generate exactly the signal with the mentioned frequency by an idea or some code?