Hello everyone!!! I need your help! I'm receiving (USART) and saving 17 bytes (128 bits) in 17 differents regis= ters (Byte1, Byte2,.......,Byte17). After receiving the data, I'd like to check all 17 bytes bit after bit for = "1". And each time I = encounter an "1" I should send to another applicaton 127 "0" and one "1". Here is an example: Received 17 bytes: 00010100 00001011 00110011 11111111 10110000 00000010 11= 001100 11111100 00001100 ..........etc the last byte is 11100001 The first byte is 00010100. My Assembly code should begin scanning this byt= e bit by bit. When the first "1" is encountered, I should stop scanning and= send the following to USART: my first byte to be sent is 00010000 and all other = bytes should be "0": So the 17 bytes I'd send would be: 00010000 00000000 0= 0000000 00000000 ....etc and = the last byte 00000000. After sending these bytes I should return and continue scanning the byte ju= st after the "1" where I stopped. = I hoppe you undestood the description of my probleme so that you can help m= e. I'd like to write the code in Assembly Language. Thank you in advance = = Jetzt neu! Sch=FCtzen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage = kostenlos testen. *http://www.pc-sicherheit.web.de/startseite/?mc=3D022220*= [http://www.pc-sicherheit.web.de/startseite/?mc=3D022220] = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist