I am new to the pic16f84a. I use mplab as my debugger and am not sure of all the errors. If anyone has anything on them I would appreciate it if you could post a link. Thankyou. The problem I am having is when I insert the shift register command and compile I get error messages that say the overwriting the previous address. If anyone can help me with what I am doing wrong it would make my day.
LIST P=16F84a ;tells which processor is used
INCLUDE "p16f84a.inc" ;defines various registers etc. Look it over.
RA4 EQU H'0004'
RP0 EQU H'0005'
STATUS EQU H'0003'
PORTA EQU H'0005'
PORTB EQU H'0006'
TRISA EQU H'0085'
TRISB EQU H'0086'
CLRF PORTA ;Initialize PORTA by clearing output data latches
BSF STATUS, RP0 ;Select Bank 1
MOVLW 0x0F ;Value used to initialize data direction
MOVWF TRISA ;Set RA<3:0> as inputs, R4 as output, TRISA<7:5> are ;always read as '0'
ORG H'0000'
BSF STATUS, RP0
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84A "final.asm" /l"final.lst" /e"final.err"
Message[302] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 14 : Register in operand not in bank 0. Ensure that bank bits are correct.
Error[118] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 16 : Overwriting previous address contents (0000)
Error[118] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 16 : Overwriting previous address contents (0000)
Error[129] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 20 : Expected (END)
Halting build on first failure as requested.
BUILD FAILED: Thu Sep 08 16:17:50 2005
Ultimately what I am wanting to do is make a counter that automatically incrimates when a clock pulse is sent to it. We are controlling the clock pulse maunally. After we push a button, the counter will automtically incrimate. Thanks lots.
LIST P=16F84a ;tells which processor is used
INCLUDE "p16f84a.inc" ;defines various registers etc. Look it over.
RA4 EQU H'0004'
RP0 EQU H'0005'
STATUS EQU H'0003'
PORTA EQU H'0005'
PORTB EQU H'0006'
TRISA EQU H'0085'
TRISB EQU H'0086'
CLRF PORTA ;Initialize PORTA by clearing output data latches
BSF STATUS, RP0 ;Select Bank 1
MOVLW 0x0F ;Value used to initialize data direction
MOVWF TRISA ;Set RA<3:0> as inputs, R4 as output, TRISA<7:5> are ;always read as '0'
ORG H'0000'
BSF STATUS, RP0
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84A "final.asm" /l"final.lst" /e"final.err"
Message[302] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 14 : Register in operand not in bank 0. Ensure that bank bits are correct.
Error[118] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 16 : Overwriting previous address contents (0000)
Error[118] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 16 : Overwriting previous address contents (0000)
Error[129] C:\DOCUMENTS AND SETTINGS\CHAD\MY DOCUMENTS\FINAL.ASM 20 : Expected (END)
Halting build on first failure as requested.
BUILD FAILED: Thu Sep 08 16:17:50 2005
Ultimately what I am wanting to do is make a counter that automatically incrimates when a clock pulse is sent to it. We are controlling the clock pulse maunally. After we push a button, the counter will automtically incrimate. Thanks lots.
Comment