Why are you putting the pic config stuff in the assembler code sections?
Here is one of my 12F683 configs..
It should be right at the start of the program.
Code:#config __config _FCMEN_ON & _IESO_ON & _BOD_OFF & _CPD_OFF & _CP_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & _INTOSCIO #ENDCONFIG DEFINE OSC 8 'Set PicBasic Pro processor speed to 8 Mhz (Must match oscillator value) INTCON = %10001000 'Internal oscillator OSCCON = %01110101 'Sets internal osc to 8 Mhz (Default) and stable CMCON0 = %00000111 'Comparators off TRISIO = %00101011 'Set Pins GPIO.0, GPIO.1 GPIO.3 & GPIO.5 as inputs ANSEL = %00000000 'No Analog Inputs OPTION_REG = %01111111 'Global Enable Weak Pull Ups WPU = %00000011 'Weak Pull Ups Enabled on GPIO.0 & 1




Bookmarks