Just tried a test program (can't get more simpler than this)
And it compiles OK, loads and varifies in the PIC OK, but won't work ! The PIC and PSU are cold so there is nothing shorting out on the breadoardCode:CMCON = 7 ' Digital inputs CCP1CON = 0 ' PWM off TRISA=%11100111 'set PORTA as all input apart from A3 & A4 TRISB=%00000000 'set PORTB as all output @WDT_ON @PWRT_ON @MCLR_OFF @BOD_ON @LVP_OFF @CPD_OFF @PROTECT_OFF @ errorlevel -202 main: high portb.0 pause 1000 low portb.0 pause 1000 goto main




Bookmarks