Xref: utzoo comp.sys.amiga:73801 comp.sys.amiga.tech:16799 Path: utzoo!attcan!telly!lethe!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!lth.se!newsuser From: e85rw@efd.lth.se (Ricard Wolf) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Setting the serial port baudrate from Basic Summary: How? Message-ID: <1990Dec7.080001.10766@lth.se> Date: 7 Dec 90 08:00:01 GMT Sender: newsuser@lth.se (LTH network news server) Reply-To: e85rw@efd.lth.se (Ricard Wolf) Organization: Lund Institute of Technology, Sweden Lines: 31 Hi Amiga fans! I friend of mine is wrting som compositional software for his Amiga, to drive synthesizers via MIDI. He has got a small hardware box converting the RS-232 signal levels to the current loop type interface required by MIDI. The problem is, he will be writing the code in BASIC, and he can not set the serial port baud rate to the required 31.25Kbaud requeired by the MIDI protocol. The only possible baud rates seem to be the cannonical 1200,2400,4800 etc. Obviously the serial port can be set to non-standard baud rates, since it has been done in various sequencer programs available for the Amiga. The question is, is it possible to do in a BASIC environment? And in that case, HOW??? Any hints would be appreciated, even short segments of assembler/machine code... Of course BASIC is quite slow compared to MIDI, but he is only interested in driving synthesizers via MIDI out, so even if the serial port is unbufferd on receiving data, it should be possible to write at a reasonable speed. Email would be nice (I don't really feel like wading through tons of Amiga info (I don't actually use one myself (no rotten eggs, please))), but I guess this would have a wide enough appeal to be posted. -- Ricard Wolf +--------------------------+-------------------------------------+ | Ricard Wolf | Lund Institute of Technology | | email: e85rw@efd.lth.se | If you can't buy 'em - build 'em !! | +--------------------------+-------------------------------------+