3 ms·
I once needed to generate a good 60Hz sine wave from Linux via a DAC. All it did was copy a sample from a table to the DAC every degree [so every 1/(60*360)] se
by dreamcompiler 4y ago
I once needed to generate a good 60Hz sine wave from Linux via a DAC. All it did was copy a sample from a table to the DAC every degree [so every 1/(60*360)] seconds.
Used the PREEMPT-RT patch and a timer interrupt whose (non-threaded) handler produced the sample on the DAC. Worked great, but if it had needed to be more complicated I wouldn't have done the whole job in the handler.