Yes, the chip selected is correct and also with your program it gives me the same error using the ICD COMPILE PROGRAM or only COMPILE PROGRAM, I stated in my previous post that I use for my projects demoborad QL 200 and its programmer connected to my PC via USB. Perhaps this could be the problem? However the list of errors that gave me compiling your program:
-------------------- PROGRAM ---------------------
@ __CONFIG _CONFIG1H,_OSCS_OFF_1H & _XT_OSC_1H
@ __CONFIG _CONFIG2L,_BOR_OFF_2L & _PWRT_ON_2L
@ __CONFIG _CONFIG2H,_WDT_OFF_2H
@ __CONFIG _CONFIG3H,_CCP2MX_OFF_3H
@ __CONFIG _CONFIG4L,_STVR_OFF_4L & _LVP_OFF_4L
DEFINE OSC 4 ' Clock a 4 Mhz
DEFINE ADC_BITS 8 ' Set number of bits in result
DEFINE ADC_CLOCK 3 ' Set clock source (3=rc)
DEFINE ADC_SAMPLEUS 50 ' Set sampling time in uS
DEFINE LCD_BITS 4 'NUMERO LINEE DI COMANDO 4 O 8
DEFINE LCD_DREG PORTB 'PORTA ChE GESTISCE LCD
DEFINE LCD_DBIT 4 'BIT INIZIALE BUS
DEFINE LCD_RSREG PORTC 'PORTA CHE GESTISCE RS
DEFINE LCD_RSBIT 5 'BIT CHE GESTISCE RS
DEFINE LCD_EREG PORTB 'PORTA CHE GESTISCE E
DEFINE LCD_EBIT 3 'PIN CHE GESTISCE IL SEGNALE E
DEFINE LCD_LINES 2 'NUMERO LINEE LCD
Addr VAR BYTE
Value VAR BYTE
Addr = 0
Value = 123
WRITE Addr, Value
READ Addr, Value
LCDOUT $FE,1,"Addr=",DEC Addr," Value=",DEC Value
STOP
--------------- ERROR MESSAGES----------------------
ERROR: Macro WRITEADDRESS?B not found in macro file.
ERROR: Macro WRITE?B not found in macro file.
ERROR: Macro READADDRESS?B not found in macro file.
ERROR: Macro READ?B not found in macro file.
Bookmarks