Fuses Again


Closed Thread
Results 1 to 16 of 16

Thread: Fuses Again

Hybrid View

  1. #1

    Exclamation Fuses Again

    as it seems i have to go beyond pbp to get certain programs to work

    damm fuses again

    i am trying something very simple to start the training

    chip 16f627a
    assembler mpasm

    trying to set chip for external osc because most people say this is required to run serial communications

    tried the following statements
    @ device xt_osc

    @device pic16f627a,xt_osc

    @_config_xt_osc

    _config_xt_osc

    all commands generate error messages in a simple 4 line program which assembles fine without the commands

    wish pbp would include these setups as part of the compileing

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


    Did you find this post helpful? Yes | No

    Thumbs up

    Have a look to the following. Everything should be covered.

    Presetting Configuration Fuses (PIC Defines) into your Program
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    Steve

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

  3. #3


    Did you find this post helpful? Yes | No

    Cool link

    mister e
    thats where i went to get started seemed simple enough
    however all the commands shown see above
    generate a error

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


    Did you find this post helpful? Yes | No

    Default

    errors or warning.. that's the question!

    tell me
    1. the error number your program return e.g. Error[118]c:\... Overwriting previous address content (2007)
    2. MPASM version
    3. PBP version
    4. your config line
    5. the modified .INC file in your PBP folder.

    Here, PBP 2.47, MPASM 5.06
    Code:
            @ __CONFIG  _INTRC_OSC_NOCLKOUT & _MCLRE_ON  &  _LVP_OFF & _WDT_OFF & _PWRTE_ON  & _BODEN_ON
    and the 16F627A.INC file
    Code:
    ;****************************************************************
    ;*  16F627A.INC                                                 *
    ;*                                                              *
    ;*  By        : Leonard Zerman, Jeff Schmoyer                   *
    ;*  Notice    : Copyright (c) 2003 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 11/06/03                                        *
    ;*  Version   : 2.45                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
        ifdef PM_USED
            LIST
            include 'M16F62xA.INC'  ; PM header
            ;device  pic16F627A, xt_osc, wdt_on, mclr_on, lvp_off, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F627A, r = dec, w = -302
            INCLUDE "P16F627A.INC"  ; MPASM  Header
            ;__config _XT_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF
            NOLIST
        endif
            LIST
    Last edited by mister_e; - 22nd February 2007 at 01:06.
    Steve

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

  5. #5


    Did you find this post helpful? Yes | No

    Default

    pbp 2.46 mpsam 5.


    errors 113 and 118 are listed when i try the first line above


    this is warning with the second part above

    WARNING: Unable to open INCLUDE file P16F627A.INC.
    ERROR Line 25: Syntax error. (mistre.pbp)
    ERROR Line 26: Bad parameter to LIST command. (mistre.pbp)
    ERROR Line 27: Syntax error. (mistre.pbp)
    ERROR Line 31: ELSE without a matching IF..THEN. (mistre.pbp)
    ERROR Line 32: Bad parameter to LIST command. (mistre.pbp)
    ERROR Line 33: Bad parameter to LIST command. (mistre.pbp)
    ERROR Line 37: ENDIF without a matching IF..THEN. (mistre.pbp)
    ERROR Line 38: Bad parameter to LIST command. (mistre.pbp)

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


    Did you find this post helpful? Yes | No

    Default

    post your whole code... and make sure your MPASM PATH is right and MPASM is checked in the Compile and Program Option> assembler tab of MicroCode Studio.
    Steve

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

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jcleaver View Post
    as it seems i have to go beyond pbp to get certain programs to work

    damm fuses again

    i am trying something very simple to start the training

    chip 16f627a
    assembler mpasm

    trying to set chip for external osc because most people say this is required to run serial communications

    tried the following statements
    @ device xt_osc

    @device pic16f627a,xt_osc

    @_config_xt_osc

    _config_xt_osc

    all commands generate error messages in a simple 4 line program which assembles fine without the commands

    wish pbp would include these setups as part of the compileing
    Computers are stupid, PICs are stupid, they are not however, sloppy. So when they want some piece of code they will not accept a peace of kode, because they are stupid.
    Now look at mister_e's code, the word config is preceded by __ not _ , that's two little Hyphen slash thingies, not one.
    I hope this helps.
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8


    Did you find this post helpful? Yes | No

    Default update

    might want to take a look at mikroelekronika there assembler and programer
    make duck soup out of working with fuses just check off like a list
    looks very simple

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. old chestnut, 18f2550, fuses, osc's leds...
    By f_lez in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st October 2009, 17:18
  3. 18F4620 Fuses configuration
    By Pimentel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th October 2008, 13:23
  4. 18F Config fuses
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 18th December 2007, 15:59
  5. configuration fuses
    By mischl in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th April 2005, 10:50

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