Your posted code has several problems, beginning with the lack of capitalization for the register names.
Do you intend it to turn PORTA.0 to a one and nothing else? If so, why delay?
Your issue is likely with the configuration bits. Please post your code for configuration...
Bookmarks