For what its worth, I don't see anything that sets the TRIS bits for that port. Or is that something that the compiler is supposed to take care of? dwayne At 06:14 PM 5/28/2010, Xiao Xu wrote: >btw, here is my code if it helps: > >#include >void main() >{ > >RA0=1; >PORTAbits.RA0=1; >NOP(); >} > >the 0-bit of PORTA(0x05 for 16F684) refuse to turn into 1! > >- Xiao Xu -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax www.trinity-electronics.com Custom Electronics Design and Manufacturing -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist