??? 02/13/06 17:09 Read: times |
#109864 - serial MIDI controller |
Hi everyone,
First of all, I must recognize I'm quite noob on programming mcu's so if I ask/say something nonsense please be comprehensive. I've started to develop a MIDI controller as a school project. I use a Philips P89C51RD2BA with a 20MHz crystal and I've managed to read values from four potentiometers using one PCF8591 via I2C bit-banging routines written in C (I use SDCC compiler). Now I need to send this values to the computer as MIDI control change messages (3 bytes, 320uS. I have a serial MIDI driver installed on the computer and a MIDI monitor (MIDI-OX). I set uart baudrate at 38400bps, 1 start bit, 8 data bits and 1 stop bit, but MIDI runs 1-8-1 at 31250bps. I tried to program timer0 interrupt to send one byte every 320uS but this don't work. MIDI needs each bit transmitted for 32uS and O. Any advice/suggestion? Maybe a software delay to time those messages (examples are welcome 'cause I don't have no clue on how to do it)? Thanks in advance. |
Topic | Author | Date |
serial MIDI controller | 01/01/70 00:00 | |
Midi "knob" box.![]() | 01/01/70 00:00 |