Joe P. Farr escreveu: > Thanks for the response BillW. > > The reason is that I'm not using assembler for this, and the read will > slow things down, and it's a waste of CPU time if I don't want the data, > hence hoping for something like a quick bit set. > > Joe > = Don't worry about slowing down, any good C compiler will waste at most one or to instruction cycles for each read. And you may use in-line assembly if you like. Plain asm (PIC12/16): movf RCREG,w Plain asm (PIC18): movf RCREG,w,ACCESS Plain 'C': dummy =3D RCREG; In-line assembly (Hi-Tech PICC): asm( "movf RCREG,w" ); In-line assembly (Hi-Tech PICC-18): asm( "movf RCREG,w,ACCESS" ); In-line assembly (MPLAB-C18): _asm movf RCREG,w,ACCESS _endasm Regards, Isaac __________________________________________________ Fa=E7a liga=E7=F5es para outros computadores com o novo Yahoo! Messenger = http://br.beta.messenger.yahoo.com/ = -- = http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist