Harry H. Arends wrote: > I have problem that my mind cant get right. There are four pieces of > data that must be send serial in a certain pattern: > ; 1111111111 0 AAAAAAAA 0 DDDDDDDD 0 EEEEEEEE 1 > ; DATA0 0 DATA1 0 DATA2 0 DATA3 1 > ; '1111 0 AAA' 'AAAAA0DD' 'DDDDDD0E' 'EEEEEEE1' > ; DATA0 DATA1 DATA2 DATA3 > > Between data0, data1 and data2 a zero must be included and at the end > of data3 a one. > The value of EEEEEEEE in data3 is the bitwise exclusive OR from the > AAAAAAAA and DDDDDDDD data. OK, so go ehead. I'm not totally clear on what you're trying to do, but I guess I don't need to since you haven't asked anything. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist