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
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default

    Hi,
    I'm not saying that you won't get any help but since this is a forum for PicBasic you MAY not get the help you're looking for. Something like the PICList may be more suitable if you're "writing" in, or having problems with ASM.

    BUT, with that being said, have you selected 16F84 in MPLAB? Configure/Select Device and then point to 16F84.

    /Henrik Olsson.

  2. #2
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    as a starters,

    C:\DOCUMENTS AND SETTINGS\\MY DOCUMENTS\SPEED254.ASM 323 : Symbol not previously defined (z) Error[113]
    C:\DOCUMENTS AND SETTINGS\\MY DOCUMENTS\SPEED254.ASM 362 : Symbol not previously defined (c) Error[113]
    change commands that look like this (with c or z in them)

    Code:
    	btfsc	STATUS,z	; check if 0
    to this

    Code:
    	btfsc	STATUS,Z	; check if 0
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    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,

  4. #4
    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.

  5. #5
    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.

  6. #6
    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