All pastes #405196 Raw Edit

Bo^Dick

public c v1 · immutable
·published 2007-03-21 16:15 UTC
rendered paste body
//================================================// incoming USART interrupt routine//================================================ISR(UART_RX_vect){  UDRfoo = UDR;  UCSRB &= ~(1<<RXCIE); // disable USART irqs  // midi status byte  if ((UDRfoo&0x80)==0x80)  {    unsigned char temp = UDRfoo&0x07;	/*if (temp==0x00) // key up event      PORTA=0x00;*/    if (temp==0x01) // key down event	{      static int a=0;	  PORTA=a++;	}  }    UCSRB |= (1<<RXCIE); // enable USART irqs}