PDA

View Full Version : Problem with Bank 3 in 16F946



karlosguay
- 19th September 2006, 17:16
Sorry.

1º. If i compile a program for 16F946, i have "Warning[219] c:\....\pbppic14.lib 892: Invalid RAM location specified"

2º. In the file "16F946.bas" of PicBasic directory there is "BANK3 $0190, $01EF".

3º. I read the datasheet of 16F946 and the start address of General Purpose Register in bank 3 is 1A0h and end address is 1EFh.


There is a problem in the start address of "16F946.bas"????

Best Regards, Karlos

Darrel Taylor
- 19th September 2006, 23:41
Hi karlosguay,

That's good information! And it appears to be correct.

You might want to drop a message to meLabs to let them know, since they never actually come around here to check things out.

Could help out others in the future.

[email protected]
<br>

Bruce
- 20th September 2006, 00:19
In the mean time, to fix the problem you're having, simply change the entry in
your 16F946.BAS file from;

BANK3 $0190, $01EF

to;

BANK3 $01A0, $01EF

And you should be good to go.

As Darell mentioned, I would inform MeLabs of the header file problem for this
device.