16f690 doesn't work with second Page


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2015
    Posts
    2

    Default 16f690 doesn't work with second Page

    Hi community,

    I have a problem with my PIC 16F690. My program is now 2000 lines tall, and now I must use the second page. Normally it shout be no problem, but in my case it is.

    The problem is that if I programming my pic with the source code form the MPLAB then the Pic doesn't work correctly. In the debugger of MPLAB it works correct.

    I specify the second page at the program memory (org 0x800). When I'm looking in the listingfile, then i see that the source code of the second page is located at 0x800 forward.

    Has someone a idea why it doesn't work in the physical Pic but in the debugger? or what is may mistake ?

    cheers

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: 16f690 doesn't work with second Page

    I have scanned very quickly ! the data sheet and done a Google (Piclist), are you setting the registers needed to point to page 2 directly before you do a call to code there, and presumably, vice versa when going back to page 1. Some of your code would be helpful.

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Default Re: 16f690 doesn't work with second Page

    PBP takes care of paging ...

    soooo, may be wrong forum for this kind of behaviour ???

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Jun 2015
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: 16f690 doesn't work with second Page

    Hi Guys thanks for the response!

    befor I change to another page I do pagesel "name of function" (page 2) and after a return I do an pagesel to page 1. At the end of page 1 i declare with org 0x800 the program memory for the second page.

    org 0x800
    #include <Main_Init.inc>

    Everything after this lines is on the second page, right ? So all program code which is called will be called with pagesel, alternative with lcall.

    That is an example for a call to the second page.
    pagesel Init_ALL
    lcall Init_ALL ; initialized all important registers
    pagesel $

    What is wrong on my version ??

Similar Threads

  1. get a sensor digital input to work on a pickit 2 16f690 lpc
    By Jasonstew in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 26th June 2011, 21:26
  2. confuse page write??
    By MINHLE in forum General
    Replies: 7
    Last Post: - 22nd April 2010, 11:20
  3. Darrel's page is out
    By MarioC in forum General
    Replies: 1
    Last Post: - 14th August 2008, 07:34
  4. clockx.bas in samples page,can work good with the 16f84a?
    By lutherblissett in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd December 2005, 12:09
  5. Page boundaries
    By Desterline in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 16th August 2004, 17:36

Members who have read this thread : 1

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