Amiga.org
Amiga computer related discussion => General chat about Amiga topics => Topic started by: mahen on December 14, 2011, 10:43:42 PM
-
Hi everyone !
I plan to write a piece of software which makes use of a MIDI interface on an A1200.
Is it possible to access such a device (RS232 port then) from a Blitz Basic program in BLITZ mode ?
Cheers !
-
Yeah, a quick look at the Hardware Reference Manual will tell you the address of the Serial Port registers, then hook up some code on the serial interrupts and send your MIDI commands! Simple... There is also probably library that can do all the hard work for you :)
-
Cool, thanks for the prompt reply ;) Not installed / used / read the manuals yet, I just had a doubt as I heard the BLITZ mode (and not the AMIGA mode) had restrictions regarding I/Os. But indeed, I guess I can have access to the registers directly !
-
Whatcha makin?
-
I have some crazy ideas, but I'll let you know once I have some kind of "working proof of concept" ;-)
-
Blitz allows full access to the hardware, and once you are in Blitz Mode you have the machine to yourself! You can do anything you like.
Midi is super simple and the Amiga Serial port only needs a simple adaptor to interface with it :)
-
Do you have to be in Blitz mode? Accessing the serial port in a system-legal way in Amiga mode is very easy, and AFAIR there's even a specific MIDI .include file to take care of the MIDI stuff for you.
But, as bloodline says, in Blitz mode you have full access to all the hardware, simply peek and poke the CIAs to your heart's content :) The Blitz manual even includes a table of all the registers and their functions...
-
Thanks again for the answers. Yeah, I would like to make to best possible use of the Amiga hardware, so I'll stick to BLITZ mode if possible ! I wonder how far one can go without switching to ASM...
Is there some kind of website / mailing list / NG still active nowadays about Amiga development or even Blitz in particular ?
-
Bump ! :)
Completely put this project aside for a couple of... years apparently :-)
I'll give it another go soon.
Just one question : I have no A1200 anymore but I would like to develop directly from my MiST instead (Minimig core), in order to be fully focus(s)ed on a single task ! ; did any of you guys figure out how to use a MIDI interface on this piece of hardware ?
Meanwhile I wish I could use FS-UAE on my Linux box but apparently it doesn't support MIDI yet... So in the end I might end up using WinUAE through WINE on my Linux box. Sigh ;)