16F877 RAM Question


Results 1 to 9 of 9

Threaded View

  1. #7
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    I have made an interesting discovery.
    My program only contains two lines that change the bank select bit RP1.
    This means that my PBP program can only be accessing the first two RAM banks which is only a little more than half that the chip provides.

    It seems I will have to change the RP1 bit manualy in assembler to use the rest of the RAM. Surely I'm not the only one who has encountered this?



    ... well it seems I answered my own question.
    A little later I have found out that some of the exixting asm in my PBP code
    that addresses RAM does so incorrectly when PBP changes the location of
    that RAm without my asm code knowing about it.
    So a little thing like:
    @ incfsz _colcnt,f
    @ goto _decpnt
    can cause the whole program to break when the variable 'colcnt' requires
    a change tot he bank select bits in order to address it. or at least that's what
    I think is happening at the moment...

    Anyway I have solved my original problem
    Last edited by Art; - 6th August 2005 at 05:16.

Similar Threads

  1. On-Chip RAM
    By DaveC3 in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 28th July 2008, 10:16
  2. problem using 16f877
    By yrch in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 20th February 2006, 18:58
  3. Timer Question 16f877
    By Bonxy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th November 2005, 08:40
  4. PIC 16F877 Question
    By koossa in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th August 2005, 18:06
  5. 18f452 tables in ram - code?
    By rshanks in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st October 2004, 05:06

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