To clarify...QEI is the quadrature encoder interface. The register POSCNT is a 16-bit position count register. The UART has a 4 byte transmit buffer that accepts data one byte at a time. I use the Microchip ICD2 with MPLAB 7.20 in debug mode to verify that POSCNT changes correctly when the encoder is rotated. What I have not been able to figure out is, how do I get a 16-bit value broken into two bytes to consecutively send via the UART? I have searched the PICList archives (probably looking for the wrong info) and Googled, and looked at the Microchip forums. I am not finding what I need to learn. I'm not asking for a coded solution (unless someone is willing). I just need to find out how to break that 16-bit register into 2 bytes. Please keep in mind that this is a dsPIC and I am using the ASM30 toolsuite in MPLAB. TIA -- Regards, Stephen D. Barnes -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist