AnsweredAssumed Answered

STM32F429 High speed DAC interupt + USART interrupt misses characters

Question asked by Bright on Nov 13, 2014
Latest reply on Nov 13, 2014 by Clive One
To drive my application I use two DAC in a interrupt. The data sended to the DAC needs to count up and count down between two variable(bits) so that it creates a triangular wave. The maximum value is 4095. 

The frequency of the wave needs to be around 100Hz. To create the wave I use TIM2 interrupt.
Sysclk = 180Mhz, Tim2Clk = 90Mhz. Interrupt frequency = 100Hz*(4096*2) = 819200 Hz.
Problem is that because of the interrupt frquency is 820kHz (what is really high) the Usart interupt routine misses some characters.

How can I solve this? The only thing i can come up with is to use DMA for the USART receiving. But better should be to cut the DAC loose from the CPU somehow.