At 03:38 PM 6/8/07, you wrote: >PORTC &= ~ADCS; /* select A/D device */ >//RC2=1; >SSPBUF = 0x00; /* output start bit */ >while(!(SSPSTAT & BUSY)) >{ >/* wait for transfer complete */ >} Hi Binu, You should read the SSPBUF register at this point to clear the BF (your BUSY) bit. Josef >SSPBUF = 0x01; /* output start bit */ >while(!(SSPSTAT & BUSY)) >{ >/* wait for transfer complete */ >} -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist