[sdiy] MIDI I/O c code..

Jean-Pierre Desrochers jpdesroc at oricom.ca
Fri Mar 20 19:46:05 CET 2020


> also, without knowing the uC you are using, is there DMA for the UART?
No, So far I test with an old Microchip PIC16F887 @ 20Mhz.


-----Message d'origine-----
De : Synth-diy [mailto:synth-diy-bounces at synth-diy.org] De la part de Vladimir Pantelic
Envoyé : 20 mars 2020 10:58
À : synth-diy at synth-diy.org
Objet : Re: [sdiy] MIDI I/O c code..

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

_______________________________________________
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