I just made this piece of code as test.
It works except the PORTA.6 will change it's status from 1 to 0 when the firt loop will be executed.Code:MYPORT var PORTA Loop var BYTE PORTA.0 = MYport.0 PORTA.1 = MYport.1 PORTA.2 = MYport.2 PORTA.3 = MYport.3 PORTA.6 = 1 'Test to check port's state change in simulator... Start: for LOOP = 0 to 3 myport.0[Loop] = 1 'High myport.0[loop] = 0 'Low next goto start END
Bookmarks