if (Command == 0b01010101 && EmpfangeAufstromzeit == 1) { EmpfangeAufstromzeit =0; UARTInterruptZaehler = 0; USART_Senden(1); Command = 0; x=0; y=0; } if (UARTInterruptZaehler == 1) { AufstromzeitHB = Command; Aufstromzeit = (AufstromzeitHB << 8); while(y<1) { USART_Senden(1); y = y+1; } } if (UARTInterruptZaehler == 2) { AufstromzeitLB = Command; Aufstromzeit = Aufstromzeit | AufstromzeitLB; //Aufstromzeit = ( AufstromzeitHB << 8 ) | AufstromzeitLB; while(x<1) { USART_Senden(AufstromzeitHB); USART_Senden(AufstromzeitLB); x=x+1; } } if (UARTInterruptZaehler == 3) { EmpfangeAufstromzeit = 1; } /////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////// if (Command == 0b00000101 && EmpfangeAufstromzeit == 1) { cli(); buesy=1; PORTC |=(1<