[sdiy] Pic program to midi interface

patchell patchell at silcom.com
Mon Nov 25 16:23:52 CET 2002


    Can't really help you, although, one thing I have noticed, there
isn't really a whole lot of source code posted for such things on the
internet.  If anybody knows of any links for such things, I would like
to know...

    Here are my suggestions for getting to your goal.

    There are several books on programming the PIC, find one that you
like.  Then, sit down and start with simple programs.  Generally, the
first thing I do with any new system is write a short program that will
turn an LED on and off.  This is important, because, it is about the
only way you are going to get any "debug" information from your PIC,
unless you purchase an in circuit emulator (I am too cheap to do that
myself).

    The biggest leap you are going to have to make is interfacing up to
the MIDI port itself  And then comes the code for parsing the Midi
Stream.  This is another thing somebody should post, is an algorithm for
parsing the Midi Stream.  While this is not complicated, it is involved.

    Another thing you will need to decide is, "Do I program in Assembly
or C?"  This is a tough question.  C compilers cost a lot more than
Assemblers (the Assemblers are generally free).  But, they can take some
of the drudgery out of programming, and this is true for the PIC in
particular (you have to handle some rather strange paging).

    I was going to post a link to some MIDI code I wrote for the 68000,
but noticed that I must not have ever gotten around to putting it up on
my website...oh, here it is:
http://www.silcom.com/~patchell/midictl/midictl.html...I realize this
won't help you, but it may give you some ideas.

    I am currently working on code for the AVR...infact, I just got the
ISP cable hooked up to the board last night, so hopefully soon I will
have some code for the AVR posted soon as well.

bo ca wrote:

>    Hi to everyone!
>
> I am trying to build a MIDI interface with a PIC16F84, i have no idea
> about programming, and I would like to know where I can find the
> program. I have found lots of circuits, and I just want to know how it
> works to adapt it to what I need.
>
> Thank you

--
 -Jim
------------------------------------------------
* Visit:http://www.silcom.com/~patchell/
*-----------------------------------------------
*I'm sure glad Merry Christmas comes just once a year
* -Yogi Yorgensen
------------------------------------------------




More information about the Synth-diy mailing list