Jump to content

USB MIDI using a PIC 18F2455


joeman0613
 Share

Recommended Posts

Dear All

It sounds the USB MIDI part of the project has been cancelled due to a silicon problem found on the EUSART of pic microcontrollers.

Is this issue now resolved with new pic silicon version ?

I would like to start the development of such MIDI USB project using a PIC18F2455.

Any chance to make it working ?

Thanks

J

Link to comment
Share on other sites

There are unconfirmed reports of software workarounds but they will have a negative performance impact and so are not practical for realtime use such as the MIDIBox. But then again that's not unusual for USB anyway ;)

Search the forums here and be sure to follow the link to the microchip website, and google for PIC18F EUSART bug. The answers you need are there (including the one above)

It doesn't send always, read around as above.

USB is done by the UART. Maybe you should google UART too :)

Link to comment
Share on other sites

Thanks for your answers ...

So what is the solution ?

The EZ-USB AN2131 from cypress is obsolete now, it seems very difficult to order parts now, and the pic solution is not working !

How can we develop a USB MIDI bridge ?

Can I find the USB MIDI source code for the PIC available somewhere for download ?

I would be happy to have a look to this code, althrough it does not work due to the silicon issue .

Thanks

J

Link to comment
Share on other sites

Hi J,

The silicon bug with the EUSART has not been corrected by Microsoft yet. The problem has been explained in threads here and on the Microchip forum. Back to back transfers are not possible since the TX port will transmit spurious bytes of all 0s. This makes it unacceptable for MIDI use.

However, do not dispair  :)

With the advent of the new IIC_MIDI project the Microchip USB is once again a viable alternative to the Cypress chip. Hang in there for a little longer.

Regards,

Synapsys

Link to comment
Share on other sites

Sorry, couldn't resist, but this is a rather nice typo...

The silicon bug with the EUSART has not been corrected by Microsoft yet.

Though this time it's not Microsoft being the culprit...  ;D ...I had to look twice to see where the mistake in that sentence was ;).

Best , ilmenator

Link to comment
Share on other sites

Yes, there is a workaround which is already working very nice - don't use the internal EUSART for MIDI Out, but external USARTs instead :)

Preview:

mbhp_iic_midi_preview.jpg

Can I find the USB MIDI source code for the PIC available somewhere for download ?

The firmware is currently only available for "known people", but I will release it sooner or later to the public.

Best Regards, Thorsten.

Link to comment
Share on other sites

After some research, it seems the C8051F321 or C8051F320 from Silicon laboraties are a good alternative for USB MIDI bridges.

The chips are < $4 according to www.mouser.com

Timers, ADC, UART, USB, I2C, 16K Flash, 2K RAM

All we need !

In addition a complete dev kit with eval board + debugger is < $99

more infos here http://www.silabs.com/tgwWebApp/public/web_content/products/Microcontrollers/USB/en/USBMCU_matrix.htm

Anybody here is familiar with these MCU ?

Any comment, suggestion ?

Link to comment
Share on other sites

  • 2 weeks later...

Hi,

There is a chip from FTDI called the FT232BM which is a USB to serial converter which supports many non standard baud rates, including 31250. Its is quite easy to use, i have used it on a number of other projects, but not as a MIDI interface (yet). I think they even hav a new version (the 232R?) which needs no external components, although i dont know if this one is available in a diy friendly package.

I think this would be a very simple solution to the problem, although it obviously provides only one MIDI port.

Cheers,

Fergus.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...