/// <summary> //Eingehenden Daten verschluesseln private void encodeReceivedData(String data) { try { char[] temp = data.ToCharArray(); //Ueberpruefe PortA auf Aenderungen if (m_oPIC.getSFR()[0x05] != ((temp[0] & 0x01) << 4) + (temp[1] & 0x0F)) { m_oPIC.getSFR()[0x05] = ((temp[0] & 0x01) << 4) + (temp[1] & 0x0F); m_oPIC.PortRA4Interrupt(); } //Ueberpruefe PortB auf Aenderungen if (m_oPIC.getSFR()[0x06] != ((temp[2] & 0x0F) << 4) + (temp[3] & 0x0F)) { m_oPIC.getSFR()[0x06] = ((temp[2] & 0x0F) << 4) + (temp[3] & 0x0F); m_oPIC.INTInterrupt(); } } catch { actuelConnectionState = ConnectionState.ABORTED; m_oGUI.GUI_UPDATE(); } }
//Bei Aufruf Interrupt ausfuehren public void INTInterruptHandler(object sender, EventArgs e) { m_oPIC.INTInterrupt(); GUI_UPDATE(); }