[sdiy] PIC Baudrate Converter (Correction)
Scott Gravenhorst
music.maker at gte.net
Mon May 6 16:31:07 CEST 2002
Sorry, mistakes were made...
music.maker at gte.net wrote:
[snip]
>standard MIDI device *must* receive and
>transmit at 32.25 kilobaud.
I meant 31.25 kilobaud.
>
>I don't have code to offer, but I can imagine it would be fairly easy
>to do, since the interface between the serial port drivers is
>incredibly simple, no MIDI protocol has to be considered, simply pass
>the bytes. The speed differential is the only issue; I would code to
>run all ports from interrupts. The lower speed transmitter would need
>a ring buffer from which to take data since bytes could arrive from the
>computer faster than MIDI rate; those incoming bytes would be stored
>while the MIDI UART is transmitting. (BTW, running that side at a baud
>rate close to MIDI, as she has spec'd is one thing that limits the
>required size of the ring buffer.) The other side may not need a
>buffer at all if the PIC is fast enough to process it's byte (not much
>here: simply stuff it in the MIDI side transmitter buffer) which it
^^^^
\______ I meant high speed side.
[snip]
=========================================================
- Government: The other religion.
- The media's credibility should always be questioned.
- Lambs who lie down with lions are lunch.
-- Scott Gravenhorst | LegoManiac / Lego Trains / RIS 1.5
-- Linux Rex | RedWebMail by RedStarWare
-- FatMan: home1.GTE.NET/res0658s/FatMan/
-- NonFatMan: home1.GTE.NET/res0658s/electronics/
More information about the Synth-diy
mailing list