RA.4 Open collector,...


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Thanks Gadelhas for the fast reply, I tried to compile using that and I get this error:


    @ __CONFIG _XT_OSC & _WDT_OFF & _MCLRE_ON & _LVP_OFF & _CP_OFF
    DEFINE OSC 4
    CMCON=%00000111
    VRCON = 0
    PAUSEus 10
    TRISA = %00000110
    TRISB = %11110001
    PORTA = %00000000
    PORTB = %00000000
    OPTION_REG.7 = 0
    OPTION_REG.6 = 0
    rf var porta.4

    main:
    low rf
    pause 500
    high rf
    pause 500
    goto main
    Error[118]c:\program~1\testled.asm 83 : overwriting previous address contents (2007)

    What does this mean?

    Many Thanks

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Perhaps I could use the external brown out protection with the 3.3V regulator as shown on the datasheet, I like the Example2 version.

  3. #3
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default

    Hi;

    To not give that error you need to go to the file of your pic model in the PBP directory and comment that line, like this;
    Code:
    ;*  16F628A.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  pic16F628A, xt_osc, wdt_on, mclr_on, lvp_off, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F628A, r = dec, w = -302
            INCLUDE "P16F628A.INC"  ; MPASM  Header
            ;__config _XT_OSC & _WDT_ON & _MCLRE_ON & _LVP_OFF & _CP_OFF '- COMENT THIS LINE WITH ";" ATE THE BEGINNING
            NOLIST
        endif
            LIST
    Thanks and Regards;
    Gadelhas

  4. #4


    Did you find this post helpful? Yes | No

    Default

    I did see that but just thought that was to easy and I must have been missing something. But I have done what you said and it works.

    Thank you very much for your help

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