SHOULDN'T need this line...Code:@ INCLUDE "16F886.INC"
Code:Include "bs2defs.bas" @ DEVICE PIC16F886, INTOSCIO,WDT_ON,MCLR_OFF,LVP_OFF,PROTECT_OFF,BOD_OFF,CPD_OFF,IESO_OFF,FCMEN_OFF,PWRT_OFF 'Device line DEFINE OSC 4 <-ALL DEFINES MUST BE IN CAPS, 'but 4Mhz is the default so it doesn't help or hurt here OSCCON=$60 : ANSEL=0 : ANSELH=0 : ADCON1=$0F adcon0=0 : trisa=0 : porta=0 run: porta.6=1 : pause 1000 : porta.6=0 : pause 1000 : goto run END <- good practice
Bookmarks