Darren Gibbs wrote: > I need to communicate via MIDI both with a PIC and with other MIDI > devices from an embedded Linux world. Its UARTs are cabable of: > > 14.7456M/16*29 = 31779 > 14.7456M/16*30 = 30720 > > MIDI spec says 31250 +-1%. My error is 1.7%, Is this close enough? Only if you are dealing with NOT back-to-back characters. The accumulated error over a stream of data, e.g. voice or patch upload/download, will likely cause bytes to be dropped or errored. I would lean toward using the lower baud rate so that the remote side UART is more likely to resync on the start bit. The linux side will have a FIFO and likely smarter UART that can handle the narrower incoming bytes better. With note data you only have doublets of bytes to worry about (note number and velocity) so your small error shouldn't be an issue. > I figure this problem can't be new, but I'm finding very little info > about it on the net. Some sites hint that an error of up to 3% is OK > with certain MIDI devices. I wonder if anyone has real-world experience > with this. > > Any advice appreciated, > > darren > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist