Hello all! Thanks for all the replies. I've opted for the code from Paul B. Webster. I was able to make a serial output using the following code (with eight repetitions): MOVF (byte_to_send, W_); // byte_to_send is self explanatory :^) XORWF (PORTA, W_); // derive "difference" value. ANDLW (0b.0000.0001); // fmask for bit 0 is defined as 0x01 XORWF (PORTA, F_); // Flip bit if not same. - Bit 0 RRF (byte_to_send, F_); // Rotate so the next time next byte will be sent Best regards, Brusque ___________________________________________________________________________ | | || |\| | || || |\|\ Edson Brusque :-^= (brusque@flynet.com.br) | | || ||| | || || |||| Musician, Tech Consultant, Programmer, Developer | |_||_||| |_||_||_|||| Rodeio / SC / Brazil / Earth / Solar Syst / Milk... | \_\\_\|| \_\\_\\_\||| Giro In'Italia homepage: http://flynet.com.br/giro | | | | | | | || C.I.Tronics Lighting Designers: citronics.com.br |__|__|__|__|__|__|__||---------------- ICQ# 15937748 --------------------- \__\__\__\__\__\__\__\| The SoundFont Users Group Mailing List is at ----------------------| http://www.geocities.com/SiliconValley/Port/6619/ ---------------------------------------------------------------------------