Trouble with most basic BLINK on PIC 16F819


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default I got it!

    Hi folks,

    I finally figured it out through fastidiously reading through the docs you linked to and testing out all the settings I could. My led is blinking away happily now. It's amazing what a sense of accomplishment such a small thing can provide!

    However, I'm having trouble with one other element: whenever I try to load the config fuses in the code I get an assembler error:

    Code:
    @ __config _INTRC_IO & _WDT_OFF & _PWRTE_OFF & _MCLR_OFF & _BODEN_OFF & _LVP_OFF
    I'm using MPASM, and so I've checked these against the names used in the PIC16F819 file as described by Melanie here. But whenever I try to compile I get the message

    "Error[118] c:\docume~1\dave\desktop\dd_pic\blink.asm 44: Overwriting previous address contents (2007)"

    However, if I turn off "Update configuration from file" in the programmer, comment out this line, and set the config fuses manually in the programmer config, I can get it to work. Am I doing something obviously wrong here?

    Thank you all for your endless patience and helpful assistance!!

    Best,
    Dave

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


    Did you find this post helpful? Yes | No

    Default

    Have a look at post #5 in the thread I posted about the config fuses.
    http://www.picbasic.co.uk/forum/show...75&postcount=5

    Clear as mud huh?

    Don't give up.
    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

    Default

    Oh, I just needed to read all the way...doh!! Thank you Steve again for being patient with me and pointing out what you'd already showed me...haha.

    You guys have been a great help.

    Thanks--

    Best,
    Dave

Similar Threads

  1. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 07:09
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 9th December 2008, 00:40
  3. using AND as an IF statement
    By dw_pic in forum mel PIC BASIC
    Replies: 27
    Last Post: - 8th June 2006, 19:05
  4. vb6 to pic basic
    By Darrenmac in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 19th December 2005, 02:56
  5. The Ultimate PIC Basic
    By picnaut in forum PBP Wish List
    Replies: 4
    Last Post: - 9th November 2004, 23:10

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