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 On Fri, May 28, 2010 at 8:13 PM, Xiao Xu wrote: > nope. I tried PORTAbits.RA0=1, PORTA.RA0=1. > During debugging, I looked into the file register, and 0x05 (location > for PORTA) never changed from 0. > > > - Xiao Xu > > > > On Fri, May 28, 2010 at 5:53 PM, Bruno L. Albrecht wrote: >> compiler? >> In C18, it's PORTAbits.RA0=1; >> >> On Fri, May 28, 2010 at 6:31 PM, Xiao Xu wrote: >> >>> To set, for example RA0, to high in C, can you just do PORTA0=1? >>> - Xiao Xu >>> -- >>> http://www.piclist.com PIC/SX FAQ & list archive >>> View/change your membership options at >>> http://mailman.mit.edu/mailman/listinfo/piclist >>> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist