PIC16F819 LED not blinking


Results 1 to 16 of 16

Threaded View

  1. #7
    Join Date
    Oct 2009
    Location
    Austin, Texas
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    @ __CONFIG _INTRC_IO & _WDT_OFF & _PWRTE_OFF & _LVP_OFF & _MCLR_OFF & _BODEN_OFF

    This gives me illegal character "&" error message......asm.51

    So I need to go and make these settings permanent in MPASM file to keep from having to make this statement, correct?

    Also, datasheet (DS39598E)2004 shows:
    A. WDT is WDTEN (Watchdog Timer)
    B. MCLR is MCLRE (Memory Clear)
    C. BODEN is BOREN (Brown-Out)

    Is this correct?
    Thanks for the info Bruce....I appreciate all the help I can get.
    I will try to change the file settings...can you tell me what to have for pic16f819.inc file, I think I messed mine up.
    Here is mine:
    ;************************************************* ***************
    ;* 16F819.INC *
    ;* *
    ;* By : Leonard Zerman, Jeff Schmoyer *
    ;* Notice : Copyright (c) 2004 microEngineering Labs, Inc. *
    ;* All Rights Reserved *
    ;* Date : 01/07/04 *
    ;* Version : 2.45 *
    ;* Notes : *
    ;************************************************* ***************
    NOLIST
    ifdef PM_USED
    LIST
    include 'M16F81x.INC' ; PM header
    device pic16F819, intrc_IO, wdt_off, pwrte_off, lvp_off, protect_off
    XALL
    NOLIST
    else
    LIST
    LIST p = 16F819, r = dec, w = -302
    INCLUDE "P16F819.INC" ; MPASM Header
    __config _INTRC_osc & _WDT_OFF & _PWRTE_ON & _LVP_OFF & _CP_OFF
    NOLIST
    endif
    LIST
    Last edited by ronbowalker; - 30th November 2009 at 23:12. Reason: Info Update

Similar Threads

  1. Simple Blinking LED - WTF!!
    By johnnylynx in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st February 2010, 07:19
  2. Blinking an led problem on P16F84
    By aimenbukharie in forum General
    Replies: 1
    Last Post: - 20th March 2009, 06:00
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 21:19
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30
  5. simple LED Blinking project
    By koossa in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th December 2004, 02:25

Members who have read this thread : 1

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