??? 03/25/09 09:33 Read: times |
#163831 - It is for a Midi to DMX project... new trouble Responding to: ???'s previous message |
I want to make a Midi to DMX project.
As I learned to send and to receive DMX it uses mode 2 serial port, 9bit and 16mhz crystal. And midi uses 8bit. So, I found a new trouble to me, midi uses 8bit serial, and as I learned, the 8051 cant send serial with 9bit and receive serial with 8bit at same time. I dont have any DMX device at home to try sending data to it using 8bit serial. I think it probably wont work. Maybe waiting 4uSec after sending a byte? Maybe receiving the midi by serial port, and sending the DMX by a normal output pin using a high priority timer? I think it may be not possible, only 4uSec per DMX bit. A second microcontroller? Is this right?... serial line when free (not busy) is all time high... when send a byte it sends a start bit, which is low... then the data bits... then the stop bit which is high taking it to same state as free (not busy)... Start and stop bits takes same time as a data bit. |