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.

I NEED HELP

Status
Not open for further replies.

HAMZAZAYYAD

New Member
hi
i need help


linker

CODEPAGE NAME=vectors START=0x0 END=0x1F PROTECTED

CODEPAGE NAME=page START=0x20 END=0x3FF








when i uses a sub program only, no errors
but when i uses more than one sub program ,this error apear


Copyright (c) 2005 Microchip Technology Inc.
Error - section 'INT_VECTOR' can not fit the absolute section. Section 'INT_VECTOR' start=0x00000000, length=0x0000005a
Errors : 1
BUILD FAILED: Mon Jun 06 14:59:42 2005



whats wrong??


my program USES PIC16F84A WITH ASSEMBLY ,MPLAB


SUB PROGRAM
/
//
/
//
RETURN

SUB PROGRAM1
//
/
//
RETURN

SUB PROGRAM2
/
//
/
//
RETURN




MAIN CODE
start


/
/
/
/
call SUB PROGRAM1
/
/
/
/

call SUB PROGRAM2


/
/
/
 
mhh i think

its the limit stack size you have problem with..

an sub is only used when you want be able to retun....

and you can only use 1 at a time...

you will need to think about an solution...

for example

Do

if x=x go sub number1
if x=x go sub number2

loop

sub number1


return

sub number2


return


if i was you and if your program isn't really big,

just copy the code or make an sub with both integrated (that means all the code dubble)

else get an proper device 16F877a


TKs
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top