How to create the USB MIDI interface with ECIO40

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

How to create the USB MIDI interface with ECIO40

Post by VHDL »

I tried to create usb MIDI interface but It's so complicated... but looks like Ben is gonna help me out....
Thx. :mrgreen:

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to create the USB MIDI interface with ECIO40

Post by Benj »

Hello

I think I have most of the code in place. I will have a look at this tonight and see if I can it together so it compiles and runs correctly.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to create the USB MIDI interface with ECIO40

Post by Benj »

Hello

I have started the MIDI interface driver now and it looks promising. I have a custom component program complete with a MIDI USB descriptor that compiles anyway. The problem im having at the moment is that a lot of the low level usb midi endpoint communications is currently written in assembler in the example im using so its going to take a little while for me to dig through this and make it Flowcode friendly.

However good progress for one night :)

For now I suggest you have a play with the existing USB components they are quite fun to play with if you have the ECIO or any USB PIC microcontroller.

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

I am playing with the USB components
you right.. it's fun and it is worth it to buy Flowcode.
Thank you.. :lol:

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

I found USB MIDI Devices 1.0 on USB.org
http://www.usb.org/developers/devclass_docs/midi10.pdf
it looks so complicated.....

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to create the USB MIDI interface with ECIO40

Post by Benj »

Hello

Thankfully I found a Microchip example and the code is already fairly similar to the Flowcode USB code so thats most of the complications taken care of. However as I previously mentioned the interface code is all in assembler (DOH!!) which is causing the current hold up. I should get some more time over the next few days to get this all tied up and working so please bear with me.

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

That chears me thx...
I was using default RXINT in flowcode v4 but I am not getting Interrupt for Ecio40p....
what should I do? :shock:

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

I Got interrupt Working...

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

Hi..
How far are you?

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

Have you tried SALVO RTOS?

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: How to create the USB MIDI interface with ECIO40

Post by Benj »

No not personally but I have tried the "NOVO" RTOS that comes with the BoostC compiler. There is also a good RTOS available for AVR via the GCC compiler.

VHDL
Flowcode V4 User
Posts: 12
Joined: Tue Dec 22, 2009 4:47 am

Re: How to create the USB MIDI interface with ECIO40

Post by VHDL »

i was just looking for usb driver until you can help me with the usb midi...
Can you tell me how far you've done so far for that midi interface ?

Post Reply