I should have see it first... You must set the TRIS register, unless those pin are set as input.
Code:MYPORT var PORTB Loop var BYTE TRISB=0 PORTB.6 = 1 'Test to check port's state change in simulator... Start: for LOOP = 0 to 3 myport.0[Loop] = 1 'High PAUSE 500 myport.0[loop] = 0 'Low next goto start END




Bookmarks