Hi, i need to XOR couple of bytes. Im try to do it by this way:
pozice =0; adresa = 0x0A; data = 0x3F; data2 = 0x10; xdat =adresa ^ data ^ data2; //xdat = 0x25;
pozice =0; adresa = 0x0A; data = 0x3F; data2 = 0x10; xdat = adresa; xdat ^= data ; xdat ^= data2;//adresa ^ data ^ data2; xdat = 0x25;
I have frequency output - dificult to decode in osciloskop but target machine can decode it. And it can decide if its OK or wrong, however it cant do nothing else - its just reciever.
Sorry, I don't think I can be of any help. It did generate 0x25 in my program.