Vincent Vega wrote : > Hello everyone, > According to the linker script that comes with MPLAB > ver7.01(16f870.lkr or 16f870i.lkr) all the RAMs are unbanked. Well, no RAM location is only accessable from a *single* bank. > There's no DATABANK sections in the > script, only SHAREBANK. Maybe becuse all RAM are accessable from 2 or 4 banks. > 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. All RAM locations are accessable from (at least) two banks. > 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? An error inte the tamplate maybe ? :-) Regards, Jan-Erik. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist