Greg Maki wrote: > > Thomas, > > You may be running into the old read-modify-write problem when doing > sucessive operations on an I/O port. You may want to look in the data > book for a paragraph entitled "Sucessive Operations on I/O Ports" to get > the details. Basically, you need to seperate I/O operations with some > instructions to allow the port pins to stabilize before performing > another operation on them. Hi Greg and everyone else, thank you for your answer, but this solved not my problem. here is a short progam showing my problem: But why is not going RA1 to the high level ? list p=16C84 port equ 0x05 start movlw 0x10 tris port movlw 0x00 option nop nop nop nop nop nop nop nop m_loop movlw 0x03 ; Ra0 goes to high but Ra1 is staying low, Why ? movwf port nop nop nop nop nop nop nop nop goto m_loop end; -- Thomas -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics