Problem with Bank 3 in 16F946


Closed Thread
Results 1 to 3 of 3
  1. #1
    karlosguay's Avatar
    karlosguay Guest

    Exclamation Problem with Bank 3 in 16F946

    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

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    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>
    DT

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  2. Replies: 14
    Last Post: - 26th September 2007, 05:41
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Someone help me to simplify this
    By thrix in forum General
    Replies: 4
    Last Post: - 21st February 2004, 05:01
  5. Help wanted..
    By thrix in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 17th February 2004, 23:44

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts