[sdiy] MIDI I/O c code..

René Schmitz synth at schmitzbits.de
Fri Mar 20 16:13:54 CET 2020


On 20.03.2020 15:55, Jean-Pierre Desrochers wrote:
> Here is my complete interrupt routine,
> 
> This routine could be called by the USART, Timer0 or Timer1
> 
> And so reacts on which is calling..
> 
> Problem doing that ?

Would use seperate ISRs, so I'm not an expert on this.
(I'd check: When do the flags get cleared? Could there be race conditions?)


> And yes I have to check for any USART overrun OERR flag here
> To see if it sometimes happens..

If you can rule that out, it isn't that.

However I miss a check if there is room left in your buffer.

Best,
  René

--
synth at schmitzbits.de
http://schmitzbits.de


More information about the Synth-diy mailing list