Searching \ for 'Anyone doing PIC MIDI?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'Anyone doing PIC MIDI?'.

Truncated match.
PICList Thread
'Anyone doing PIC MIDI?'
1998\11\26@125224 by Vance Gloster

flavicon
face
Hi,

Anyone doing any MIDI stuff with PIC parts?  I am looking at doing a MIDI
project.  MIDI is async serial data at 31.25 Kbaud (this is 1 MHz / 32).
This seems a bit fast to do a software serial port so I am looking at using
one of the 17CXX devices which includes a hardware USART.  Any words of
wisdom about MIDI, 17CXX parts, or the hardware USART?  Any designs or code
available that I could adapt to the task?


I have the Parallax assembler for the 16CXX parts, but I do not see an
assembler for 17CXX parts on their site.  What development tools are people
using?  I also looked at the CCS C compiler, and the 17CXX parts are not
listed under the supported chips.  C would be my preference, but the $99
CCS compiler is about as much as I can spend.

Thanks in advance for your suggestions!

Vance Gloster           Friendship is far more tragic than love.
spam_OUTvanceTakeThisOuTspameni.net                      It lasts longer. -Oscar Wilde

1998\11\27@150957 by Harold M Hallikainen

picon face
On Thu, 26 Nov 1998 09:38:46 -0800 Vance Gloster <.....vanceKILLspamspam@spam@ENI.NET> writes:
{Quote hidden}

       Recall that the 16c74a has a UART that you can use.  I'm using it to
simultaneously transmit and receive DMX at 250 Kbps.


Harold

___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

1998\11\27@151010 by D. Schouten

picon face
I'm interested in midi apps with PICS too. I'm currently using a
16C73A in my midi project, but it doesn't work very reliable in
receiving the midi bytes.

Bye,

Daniel

{Original Message removed}

1998\11\27@152645 by Zack Cilliers

flavicon
face
Hi

I am doing it on a pic16c57 running at 8 Mhz no problem.

Zack

E-Mail: spazzmanspamKILLspaminame.com

One regrets more the things that you
did not do than the things you did do.


{Original Message removed}

1998\11\27@153651 by Danny Sulit

flavicon
face
Circuit Cellar Ink Oct & Nov issues have what you are looking for in the "From the Bench" column by Jeff Bachiochi.

http://www.circellar.com

>>> Vance Gloster <.....vanceKILLspamspam.....ENI.NET> 11/26 12:38 PM >>>
Hi,

Anyone doing any MIDI stuff with PIC parts?  I am looking at doing a MIDI
project.  MIDI is async serial data at 31.25 Kbaud (this is 1 MHz / 32).
This seems a bit fast to do a software serial port so I am looking at using
one of the 17CXX devices which includes a hardware USART.  Any words of
wisdom about MIDI, 17CXX parts, or the hardware USART?  Any designs or code
available that I could adapt to the task?


I have the Parallax assembler for the 16CXX parts, but I do not see an
assembler for 17CXX parts on their site.  What development tools are people
using?  I also looked at the CCS C compiler, and the 17CXX parts are not
listed under the supported chips.  C would be my preference, but the $99
CCS compiler is about as much as I can spend.

Thanks in advance for your suggestions!

Vance Gloster           Friendship is far more tragic than love.
EraseMEvancespam_OUTspamTakeThisOuTeni.net                      It lasts longer. -Oscar Wilde

1998\11\27@163614 by Markus Rohe

flavicon
face
Zack Cilliers wrote:
>
> Hi
>
> I am doing it on a pic16c57 running at 8 Mhz no problem.
>
> Zack

Hello Everyone,

I recently found a project on the net with a 16C84 @4Mhz transmitting
midi data. I can't remember the URL but if anybody should be interested,
I can email it privately.

The "Midi Program Change unit" was done by Maila Fatticcioni and Massimo
Grasso.

Though I haven't done anything on midistuff, I'd be very interested, if
there are more ressources on the net...

--
Friendly regards

Markus Rohe

--------------------------------------
 /"\
 \ /
  X  ASCII RIBBON CAMPAIGN
 / \ AGAINST HTML MAIL

Markus Rohe
maro0019spamspam_OUTstud.uni-sb.de

Universitaet des Saarlandes
--------------------------------------

1998\11\27@170959 by Bob Shaver

flavicon
face
On Thursday, November 26, 1998 12:39 PM, Vance Gloster [SMTP:@spam@vanceKILLspamspamENI.NET]
wrote:
> Hi,
>
> Anyone doing any MIDI stuff with PIC parts?

Yes, I have done a couple of MIDI interfaces.

> MIDI is async serial data at 31.25 Kbaud (this is 1 MHz / 32).
> This seems a bit fast to do a software serial port so I am looking at
using
> one of the 17CXX devices which includes a hardware USART.  Any words of
> wisdom about MIDI, 17CXX parts, or the hardware USART?  Any designs or
code
> available that I could adapt to the task?

I used the 16C73 (the 16C7x parts have hardware UART and you don't have to
hunt for development tools support).  Other than that, use *fast*
opto-isolators in the receive circuit, not the older and slower ones.

Good Luck.
Bob.

1998\11\29@180108 by PIC List

flavicon
face
Microchip's datasheet does say that using a 73 or 74 with the BRGH=1, which
I assume you do,
may produce a high rate of errors. had you though about trying a 76 or 77?




>I'm interested in midi apps with PICS too. I'm currently using a
>16C73A in my midi project, but it doesn't work very reliable in
>receiving the midi bytes.
>
>Bye,
>
>Daniel
>
>{Original Message removed}

1998\11\29@191258 by Dale Wescombe

flavicon
face
Correct. Have a look at the errata sheet for the pic16c73 on the microchip
web site. it give an average work around for the BRGH=1 problem.
Dale

1998\11\30@150419 by John Payson

flavicon
face
|Anyone doing any MIDI stuff with PIC parts?  I am looking at doing a MIDI
|project.  MIDI is async serial data at 31.25 Kbaud (this is 1 MHz / 32).
|This seems a bit fast to do a software serial port so I am looking at using
|one of the 17CXX devices which includes a hardware USART.  Any words of
|wisdom about MIDI, 17CXX parts, or the hardware USART?  Any designs or code
|available that I could adapt to the task?

PIC-based MIDI applications can be divided into four types:

[1] PIC generates MIDI based upon external stimuli; does not receive.

[2] PIC receives MIDI, but does not have to do anything while data is arriving.

[3] PIC receives MIDI, but has other (relatively non-critical) stuff to do while
   data is arriving.

[4] PIC receives and transmits data simultaneously, or receives when time-critic
al
   stuff is going on.

The first type is easy, and even a 4MHz PIC will suffice easily; you can just
"spin-loop" 32us between bits.  For the second type, you can simply "busy-wait"
for the start bit, then spin-loop 48us for the first data bit and 32us for each
data bit thereafter.  You don't have much time at the end of a byte to do stuff
before you need to be ready for the next one, but if you're controlling lights o
r
something in response to MIDI you should be okay.

For the third type, you're probably best off using an ISR which is triggered by
the falling edge of the incoming start bit and which keeps controll of the CPU
until the entire byte is done.  This will give you good response to the incoming
MIDI data though the rest of your program might not get much CPU time.

For the final case, you're pretty much going to need a hardware UART, so get a P
IC
with one built-in.  It would be "possible" to do a software UART on a 20MHz PIC
at
the baud rate in question, but the code would have to be tightly-written and mak
ing
it work well would probably be more trouble than it's worth(*)

(*) Bear in mind that since a MIDI receiver is opto-based, if you're not careful
the
   rise and fall times of the data may not match.  This may, in some cases, be
a
   good thing if the times are known, but may lead to much bewilderment if you'
re
   not careful.

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...