I just got version picbasic Pro 2.46 and am trying to compile a 4 line code as a sample. however it comes up with this error:
Fatal : 301 Out of memory
the chip is set to a 16F88 and I'm using code designer lite, here is the code below - I'm gonna ad LCD and stuff later I was just trying to see if i could successfully program it.
Thanks in advance for any suggestions
@ DEVICE INTRC_OSC, WDT_OFF, MCLR_OFF
DEFINE OSC 8
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 3
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 2
DEFINE LCD_COMMANDUS 2000
DEFINE ADC_BITS 10 'Set number of bits in result
DEFINE ADC_CLOCK 3 'Set clock source (3=rc)
DEFINE ADC_SAMPLEUS 50 'Set sampling time in us
TRISA = %00000001 'Set I/O
TRISB = %00000000 'Set I/O
CMCON = %00000111 'Disable analog comparators
ANSEL = %00000001 'Set PORTA.0 analog rest digital
ADCON1 = %10000000 'Right justify result
OSCCON = %01110000 'Set internal osc to 8MHz
Pause 500
Start:
PORTB.0 = 1
Pause 500
PORTB.0 = 0
Pause 500
GoTo start
Bookmarks