|
Are you just handling keystrokes Eric ? Consider the overhead compared to the algorithm. Algorithm, per input chunk - perhaps 100,000,000 cycles USART handling, interrupt per character - probably 50-100 cycles . so , it is really no problem. There's really no need to use DMA unless you want to move megabytes per second I can help you do that on the STM32 if you need a hand. Just write an interrupt handler to get the keystroke out of the fifo and move it to a buffer. Dont forget to check the status register on interrupt also, you need to read the DR to clear the stats if it isnt a char interrupt (ie error interrupt) . the interrupt will occur i seamlessly. At a convenient juncture, say between each frame, you can deal with the serial buffer. if you avoid using any FPU registers in the IRQ handler, even easier (and no need) NB NOTE WELL the datasheet- the USARTS are VERY different between all STM32s F4,F7,F3,F2,L1 etc On 7/09/2016 6:17 AM, [email protected] wrote:
|
------------------------------------------------------------------------------
_______________________________________________ Freetel-codec2 mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freetel-codec2
