Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Error[113] C:\PROJECTS\PIC\TEST\LESSON4A\LESSON4.ASM 4 : Symbol not previously defi

Status
Not open for further replies.
hi,
As Diver points out you should have an appropriate Header to your program.

There is no need to change the Radix, if you use .5 thats 5 decimal,
0xFF 0FFh and .255 are the same value.

This is an example.
Code:
         list      p=16F84A            ; list directive to define processor
	#include <p16F84A.inc>        ; processor specific variable definitions
	errorlevel -302, -207	

	__CONFIG   _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC

		ORG     0x000             ; processor reset vector
  		goto    main              ; go to beginning of program


		ORG     0x004             ; interrupt vector location
		nop
		retfie                    ; return from interrupt

main:
;your code goes here.
     movlw .5
     clrw
     nop
     end
 
Last edited:
Last edited by a moderator:
Diver300 introducing the 'org 0x00' work fine whilst maintaining the first code. below is the initial code thanks guys for the assist. Final working code is below for reference:


processor 16f84a
include <p16f84a.inc>
__config _HS_OSC & _WDT_OFF & _PWRTE_ON
org 0x00
movlw D'5'
clrw
nop
end
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top