PIC newbie - took ages to program and i still have bugs


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default thanks guys

    Thanks for the help so far - i'll check out piclist and make the above corrections.

    Regards,

  2. #2
    Join Date
    Sep 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default Thanks for the tips so far

    btw - I got a build succeeded confirmation - however I have the following error messages.

    Code:
    Clean: Deleting intermediary and output files.
    Clean: Done.
    Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84 "SPEED254.ASM" /l"SPEED254.lst" /e"SPEED254.err"
    Message[302] C:\PIC LAB\SPEED254.ASM 542 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 544 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 546 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 770 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 773 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1049 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1051 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1053 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1054 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1056 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1058 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1060 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1065 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Message[302] C:\PIC LAB\SPEED254.ASM 1068 : Register in operand not in bank 0.  Ensure that bank bits are correct.
    Loaded C:\PIC LAB\SPEED254.cod.
    BUILD SUCCEEDED: Wed Sep 26 07:47:42 2007
    it seems like the error occurs when accessing eeproms or clearing flags

    Does anyone know how to rectify a "Register in operand not in bank 0" error/warning?
    Last edited by Trickae; - 25th September 2007 at 22:53.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    As long as you're sure you did the BANK switching manually, there's no real problem. Unless you may spread some BANKSEL here and there... not sure enough it will solve the warning message so far

    BANKSEL is a nice MPASM tool, it avoid to do the bankswitching yourself AND manually. Same thing as CHK?RP do with PBP. NO YOU DON'T WANT TO USE BANKSEL WITH PBP unless you know some tricks. Even if you know them... i don't find any advantage myself. Maybe Darrel could confirm or contradict it.

    Assuming you already did it (as it seems to be), you just need to disable the warning message with the following

    Code:
    errorlevel -302

    HTH
    Last edited by mister_e; - 26th September 2007 at 00:23.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Sep 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    well as long as they're only warnings i'll move on to adding to the design.

    thanks

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