[sdiy] Atmel AVR midi controller examples?

James Patchell patchell at cox.net
Thu Feb 26 02:05:17 CET 2004


I have done MIDI stuff on the AVR, but the AT90S8515.....and only recieving 
(the other way around from what you are doing).

You can find details of what I did here :

http://www.oldcrows.net/~patchell/synthmodulesII/index.html

Somewhere on that page is a link to the firmware I wrote (with ICCAVR of 
course :-)


At 02:44 PM 2/25/2004 -0800, Bret Truchan wrote:

>Hello everyone!
>
>I'm playing around with making a midi controller out of my Atmel Mega 16 
>microcontroller.  Has anyone else done this?  I would love to see some 
>example code.  I seem to be sending out messages, but it seems like the 
>numbers I intend to send are not the numbers that are reaching the computer.
>
>Thanks!
>- Bret
>
>Here's my code so far for Bascom AVR ----
>
>$regfile = "m16def.dat"
>
>Dim Mybaud As Long
>Dim Channel As Byte
>Dim Note As Byte
>Dim Velocity As Byte
>
>Mybaud = 31250
>
>Channel = 90
>Note = 60
>Velocity = 64
>
>Wait 1
>
>Do
>
>Waitms 10
>Serout Channel , 1 , D , 1 , Mybaud , 0 , 8 , 1
>
>Waitms 10
>Serout Note , 1 , D , 1 , Mybaud , 0 , 8 , 1
>
>Waitms 10
>Serout Velocity , 1 , D , 1 , Mybaud , 0 , 8 , 1
>
>Wait 1
>
>Loop
>
>End
>
>_________________________________________________________________
>Dream of owning a home? Find out how in the First-time Home Buying Guide. 
>http://special.msn.com/home/firsthome.armx

         -Jim
***************************************************************
         Be sure to attend the PSW Synth DIY meet
Come for the fun....
Come to meet fellow DIYers

Details at:
http://www.oldcrows.net/~patchell/SynthDIY2004.html
***************************************************************
http://www.oldcrows.net/~patchell

***************************************************************




More information about the Synth-diy mailing list