PIC16F648A big differences assembler


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

    Question PIC16F648A big differences assembler

    I have a friend who does only assembler projects...just for fun..
    stuff like morse code memory keyer toys for radio operators.
    We give the stuff away, its not for profit.
    His web site is www.qrpis.org
    He ran into a space problem on PIC16F628 chips so I shared
    some PIC16F648A chips with him. We figured they had 4K of
    program space so this should be fun.
    He sent me the following email talking about crossing memory
    page boundaries. I strictly use PBP and was wondering if I
    have to worry about any boundaries and also was wondering if
    anyone had any great advice for my friend using assembler and
    the 648 chips:::::::::::::::
    -------------------------------------------------------------------
    I'm programming the chips with my parallel port programmer and different software. I have found free software yet that does in circuit programming for this chip.

    I can compile all the code but I've hit a new problem with 648A. I'm crossing memory page boundaries so Im going to have to do 'pagesel' before nearly every goto for the compiled code to actually work. I'm disappointed that the Microchip compiler doesn't handle this automatically. The datasheet doesn't come right out and talk about memory paging. You have to put two and two together and read between the lines in the datasheet to figure out WTF is going on.

    If pagesel works, I should have all the code on the 648A by tonight or the end of the weekend.
    ----------------------------------------------------------------------

  2. #2
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Microchip Technology Inc.
    Application note AN586
    Macros for Page and Bank Switching
    http://ww1.microchip.com/downloads/e...tes/00586b.pdf

    Microchip Technology Inc.
    Application note AN581
    Implementing Long Calls
    http://ww1.microchip.com/downloads/e...tes/00581b.pdf

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


    Did you find this post helpful? Yes | No

    Default

    If you're using PBP, then you don't need to worry about page or bank selection. PBP handles this for you automatically.

    Your friend that's using assembler will.
    Regards,

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

Similar Threads

  1. PIC assembler forum?
    By Lajko in forum Off Topic
    Replies: 1
    Last Post: - 29th September 2008, 05:34
  2. Assembler problem
    By om3bc in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th March 2008, 19:12
  3. Big big big memory or tiny SDs!
    By Ron Marcus in forum Off Topic
    Replies: 9
    Last Post: - 25th May 2007, 18:02
  4. Replies: 2
    Last Post: - 22nd May 2006, 13:19
  5. Replies: 26
    Last Post: - 2nd January 2006, 18:31

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