My MPLAB 7.01 installation is as following. There is nothing wrong with it. Maybe you need to check your installation. >From C:\Program Files\Microchip\MPASM Suite\LKR: // Sample linker command file for 16F870 // $Id: 16f870.lkr,v 1.5 2002/11/07 23:16:07 sealep Exp $ LIBPATH . CODEPAGE NAME=vectors START=0x0 END=0x4 PROTECTED CODEPAGE NAME=page0 START=0x5 END=0x7FF CODEPAGE NAME=.idlocs START=0x2000 END=0x2003 PROTECTED CODEPAGE NAME=.config START=0x2007 END=0x2007 PROTECTED CODEPAGE NAME=eedata START=0x2100 END=0x213F PROTECTED DATABANK NAME=sfr0 START=0x0 END=0x1F PROTECTED DATABANK NAME=sfr1 START=0x80 END=0x9F PROTECTED DATABANK NAME=sfr2 START=0x100 END=0x10F PROTECTED DATABANK NAME=sfr3 START=0x180 END=0x18F PROTECTED SHAREBANK NAME=gprnobnk0 START=0x20 END=0x6F SHAREBANK NAME=gprnobnk0 START=0x120 END=0x16F SHAREBANK NAME=gprnobnk1 START=0xA0 END=0xBF SHAREBANK NAME=gprnobnk1 START=0x1A0 END=0x1BF SHAREBANK NAME=gprnobnk2 START=0x70 END=0x7F SHAREBANK NAME=gprnobnk2 START=0xF0 END=0xFF SHAREBANK NAME=gprnobnk2 START=0x170 END=0x17F SHAREBANK NAME=gprnobnk2 START=0x1F0 END=0x1FF SECTION NAME=STARTUP ROM=vectors // Reset and interrupt vectors SECTION NAME=PROG1 ROM=page0 // ROM code space - page0 SECTION NAME=IDLOCS ROM=.idlocs // ID locations SECTION NAME=CONFIG ROM=.config // Configuration bits location SECTION NAME=DEEPROM ROM=eedata // Data EEPROM > -----Original Message----- > From: Vincent Vega [mailto:avalon991@yahoo.com] > Sent: Wednesday, March 09, 2005 4:48 PM > To: piclist@mit.edu > Subject: [PIC] MPLAB Linker script and Datasheet for 16F870 > don't match, > any ideas why? > > > Hello everyone, > According to the linker script that comes with MPLAB > ver7.01(16f870.lkr or 16f870i.lkr) all the > RAMs are unbanked. There's no DATABANK sections in the > script, only SHAREBANK. > According to the datasheet that's not the case, there are two > blocks of general purpose > registers (0x20 to 0x7F and 0xA0 to 0xBF) which are indeed banked. > The included with MPLAB template f870tempo.asm won't even > compile properly with the > supplied script. > Any ideas why is it so, any particular reason? > Best regards > VV -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist