PIC programming

Status
Not open for further replies.

warrior21

New Member
hi
i am using PIC16F84 in my project & the project is heartbeat monitor by keith wilson. I have taken the source code from some site . Actually when we buld the program it shows two warning messages. So I want to correct this code.
please help me regarding this project.
THE CODE is GIVEN BELOW:

;****************************************************************
;Name : Initialisation
;Description : system initialisation and mainloop
;Inputs : none
;Outputs : none
;****************************************************************
Initialisation:

;system initialisation

;port A and port B initialisation

bcf status,rp1 ;select bank1 register
bsf status,rp0

movlw PORTA_CONFIG1 ;porta configuration
movwf trisa
movlw PORTB_CONFIG1 ;portb configuration
movwf trisb

bcf status,rp0 ;select bank0 registers

movlw 0x00 ;disable all displays
movwf porta
********************************************************

Message[302] D:\HEARTBEAT MONITOR SOURCE CODE\HEMON.ASM 79 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\HEARTBEAT MONITOR SOURCE CODE\HEMON.ASM 81 : Register in operand not in bank 0. Ensure that bank bits are correct.


I am attaching the source code of this file.
 

Attachments

  • hemonsourcecode_123.zip
    3.5 KB · Views: 168
these messages are just warnings to make sure that u have set the bank bits correct , look at the .lst file or line number so see that it is rightly set. and just ignore the message
 
You can't "correct" the source, because the warning messages are supposed to be there - it's a function of the assembler.

If you want to disable them, you can use the 'errorlevel' assembler directive, it's explained in the MPASM helpfile, but basically add this line in the header of your source code:

Code:
ERRORLEVEL	0,	-302	;suppress bank selection messages
.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…