Stephen D. Barnes wrote : > I am learning ASM30 on the dsPIC30F2010. > I have configure the UART and have communications between > the PIC and the PC through a MAX 233. I can send single byte > characters reliably from the PIC to the PC. What I want to do > is send the data from a 16-bit SFR (POSCNT, part of the QEI > module) to my PC terminal program. So far all I get is > garbage characters. The ADPCFG register is correctly > configured for all digital inputs so the QEI module can > function properly. Any pointers will be appreciated. Have you verified that the values that you get from the EQI module (before they are written to the USART) are OK ? Like writing them to some PORTx and verifying them with a scope/meter or LEDs ? The key here is to find you where the "garbage" pops up first. My guess is that this is not an UART issue at all, but that is has something with how you have setup the QEI module (whatever *that* is, I've no idea...). Exactly how do you *know* that "the QEI module can function properly" ?? How is that verified ? Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist