[sdiy] MIDI I/O c code..

Vladimir Pantelic vladoman at gmail.com
Fri Mar 20 15:58:14 CET 2020


also, without knowing the uC you are using, is there DMA for the UART?

On 20.03.20 15:48, René Schmitz wrote:
> On 20.03.2020 15:11, Jean-Pierre Desrochers wrote:
>> Hi Mikko,
>>
>> Here is my USART Rx  interrupt routine :
>> Maybe you’ll spot any errors or things I forgot.. ??
> 
> Without looking at the interrupt setup code I'm not sure, but it seems
> you check the USART in a Timer ISR is that the intention? (by how you
> named things.)
> if so, it could be that sometimes you miss a byte because there is an
> overrun between two timer cycles. have you tried seeing if the overrun
> flag is actually set? (maybe toggle a pin so you can check with a scope.)
> 
> Best,
>  René
> 
> -- 
> synth at schmitzbits.de
> http://schmitzbits.de
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy




More information about the Synth-diy mailing list