Compilation Failed

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Compilation Failed

Postby Sab » Tue Jun 14, 2011 12:50 pm

Hello,
anyone who ever met this problem and how to overcome?
MPLAB v8.70 pic16F877A configuration bit 0x290A
Error[151] F:\CODE\CODE2.ASM 23 : Operand contains unresolvable labels or is too complex
Message[302] F:\CODE\CODE2.ASM 31 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] F:\CODE\CODE2.ASM 36 : Register in operand not in bank 0. Ensure that bank bits are correct.

SWDel Set Del50

org 0x0000
BANKSEL ADCON1
movlw 0x06
movwf ADCON1
BANKSEL PORTA

bsf STATUS,RP0
movlw b'11110000'
movwf LEDTRIS
bcf STATUS,RP0
clrf LEDPORT

TQ
Sab
Newbie
 
Posts: 10
Joined: Tue May 17, 2011 2:21 am

Re: Compilation Failed

Postby ober » Wed Jun 15, 2011 9:54 pm

SWDel Set Del50

Frankly, never see this, what is this mean?

Searching through Internet, notice that this is for denouncing timing delay. It uses 'set', because it wanted to assign different level of delay.

Are you sure you include the whole code to compile?
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 4 guests

cron