'reserving' memory space


Results 1 to 12 of 12

Threaded View

  1. #6


    Did you find this post helpful? Yes | No

    Default

    ok, going to have to come clean...

    the reason i want to block off some memory addresses is because one of my original PIC's (877A) has faulty memory locations due to a slight power surge and brownout while being programed... yes, my PC PSU was wrecked... luckerly the only other damage was my graphics card...

    i have a low level, really basic task for it to do, if i can get the program to skip the affected memory locations...

    The blocks are...

    0x0008 to 0x003F
    0x0108 to 0x013F
    0x0208 to 0x023F
    0x0308 to 0x033F
    0x0408 to 0x043F
    0x0508 to 0x053F
    0x0608 to 0x063F
    0x0708 to 0x073F

    Anyone see a paturn?... lol

    the thaught occured to me to alter the ASM so that the memory table thing....
    Code:
    RAM_START       		EQU	00020h
    RAM_END         		EQU	001EFh
    RAM_BANKS       		EQU	00004h
    BANK0_START     		EQU	00020h
    BANK0_END       		EQU	0007Fh
    BANK1_START     		EQU	000A0h
    BANK1_END       		EQU	000EFh
    BANK2_START     		EQU	00110h
    BANK2_END       		EQU	0016Fh
    BANK3_START     		EQU	00190h
    BANK3_END       		EQU	001EFh
    EEPROM_START    		EQU	02100h
    EEPROM_END      		EQU	021FFh
    avoides the faulty locations and recompile it using mplabs compiler...

    But then i realised it wasn't going to be that easy...

    :edit
    Having said that... i could alter EEPROM_START to after the first bad block, manually insert a jump followed by enough 3FFF's, and hope the program fits in befor the seconds one (unlikely)...
    Last edited by comwarrior; - 23rd September 2009 at 22:13.

Similar Threads

  1. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  2. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  3. Replies: 4
    Last Post: - 2nd March 2007, 06:12
  4. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38
  5. Memory Space of the PIC16F84...
    By Tear in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st July 2005, 19:55

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