« 3D Final Project Ideas | Main | Architecture and Sound »
November 10, 2005
MIDI
The midi plug that goes into the circuit.
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
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
I had a few glitches with some MIDI Synths but overall, I was able to get what I wanted out of this lab.
What a big mess.
Posted by min at November 10, 2005 01:24 AM