rPCOND = 0x0000; regval1 = rPDATD; rPCOND = 0x0001; rPDATD = 0xFF; rPCOND = 0x0000;