No change !
Name:  error3.jpg
Views: 2399
Size:  147.0 KB

Code:
@ ERRORLEVEL -306 
#CONFIG
 __CONFIG _XT_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _BODEN_ON & _LVP_OFF & _CP_ON  		
#ENDCONFIG

;INCLUDE "D:\PBP\ALLDIGITAL.PBP"
DEFINE OSC 4             ' 4MHz 
CMCON = 7                ' Disable on-chip comparator, PORTA in digital mode   

TRISA = %00011100           	
PORTA = %00011100
TRISB = %00000000
PORTB = %00000000

oldState VAR BYTE
newState VAR BYTE
status_1 VAR BYTE
status_2 VAR BYTE
status_3 VAR BYTE
DIR      VAR Byte
j        var byte
BitCount VAR BYTE           	' Index variable for above array
i        VAR BYTE           	' General purpose

dir = 2
Main:
    PortA.1 = 0
    newState = PortA & %00011100         ; this is for my hw : 11100 = 28
    PortA.1 = 1