Jump to content

sinosoidal

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Everything posted by sinosoidal

  1. Hi guys, Yesterday i achivied the communication. Maybe the 2 stop bits were messing everything up. Thx a lot!! Best regards, Nuno
  2. Hi, This is my code for the UART: #define MYUBRR ( F_CPU / (16*BAUD) - 1 ) void USART_Init(unsigned int ubrr) { // set baud rate UBRRH = (unsigned char) (ubrr>>8); UBRRL = (unsigned char) ubrr; // enable transmitter UCSRB = (1<<TXEN); // set frame format: 8 data, 2stop bit UCSRC = (1<<URSEL) | (1<<USBS) | (3<<UCSZ0); } void USART_Transmit(unsigned char data) { // wait for empty transmit buffer while (!(UCSRA & (1<<UDRE))); UDR = data; } Maybe the front/rear view is really a problem... Using this as a reference: http://www.midi.org/about-midi/electrical.shtml How should i interpret? My interpretation is: when i look at this i see my soundcard midi ports in a front view. Is this correct? Thx, Nuno
  3. Hi, I would like to know how the MIDI BOX implements the MIDI OUT. I'm building a custom MIDI controller based on a AVR microcontroller and i'm having problems putting MIDI coming out. The most strange thing is that i've already done it a few months ago in a breadboard. - I'm connecting UART out to a 220 omhs resistor and then to pin 5. - I'm connecting VCC to a 220 ohms resistor and then to pin 4. - I'm connecting ground to the pin 2. Well, i'm not getting an output. In the MIDI electrical specification exists 2 logic ports that seems to me inverters. Which component should i use? Are they really important? I know this kind of question is not a MIDIBOX particular question but i cant find any other place when so many MIDI people are togheter. Many thx, Nuno
×
×
  • Create New...