[sdiy] Tips for writing a MIDI parser wanted
Simon Brouwer
simon.oo.o at xs4all.nl
Wed Mar 25 00:58:58 CET 2009
Tom Wiltshire schreef:
> One thing I've noticed with the transmit is that it is possible to
> send bytes from the PIC too quickly - there seems to be a minimum
> space required between them. Does anyone know how long this pause
> should be between the transmission of individual MIDI bytes? I can
> always find a value by trial and error, but that seems a bit uncertain.
Then you probably don't check the UART transmit register empty flag (in
the PIC18Fxx20 for example, this is the TRMT bit in the TXSTA register)?
As long as you wait for the transmit register to become empty before
writing each byte, they will be transmitted correctly.
--
Vriendelijke groet,
Simon Brouwer.
| http://nl.openoffice.org | http://www.opentaal.org |
More information about the Synth-diy
mailing list