« 3D Final Project Ideas | Main | Architecture and Sound »

November 10, 2005

MIDI

The midi plug that goes into the circuit.

IMG_0540.JPG
IMG_0354.JPG

Thanks to Todd H, I was able to get hold of the 20Mhz Clock. This clock needs to be powered. The square corner pin, has nothing connected to it. The pin on the top right has power going to it, pin on the bottom right is the pin for clock IN. The pin on the bottom left is ground.

Overall the connections were easy to make, the midi cable needs to be connected to the TX pin of the PIC, which is the PortC.6

IMG_0355.JPG

I attempted to use 3 different pots to control the volume, the tones and the speed of the tones being generated by the midi. Code here


HSEROUT [Item {,Item...}]

Send one or more Items to the hardware serial port on devices that support asynchronous serial communications in hardware.
HSEROUT is one of several built-in asynchronous serial functions. It can only be used with devices that have a hardware USART. See the device data sheet for information on the serial output pin and other parameters. The serial parameters and baud rate are specified using DEFINEs:

' Set receive register to receiver enabled
DEFINE HSER_RCSTA 90h

' Set transmit register to transmitter enabled
DEFINE HSER_TXSTA 20h

' Set baud rate
DEFINE HSER_BAUD 2400

' Set SPBRG directly (normally set by HSER_BAUD)
DEFINE HSER_SPBRG 25

IMG_0357.JPG
IMG_0359.JPG


I had a few glitches with some MIDI Synths but overall, I was able to get what I wanted out of this lab.

IMG_0360.JPG
IMG_0361.JPG

What a big mess.

IMG_0362.JPG

Posted by min at November 10, 2005 01:24 AM

Comments