Lab X1 and 16F877 examples for beginners


Results 1 to 7 of 7

Threaded View

  1. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Lab X1 and 16F877 examples for beginners

    To use MPASM Assembler, use this config:

    Code:
    @ __config _HS_OSC & _WDT_OFF & _PWRTE_ON & _BODEN_ON & _LVP_OFF & _CPD_OFF & _WRT_ENABLE_OFF & _DEBUG_OFF & _PWRTE_OFF

    Open 16F877.INC in PBP folder and comment out CONFIG for MPASM like this:

    Code:
            NOLIST
        ifdef PM_USED
            LIST
            include 'M16F87x.INC'   ; PM header
            device  pic16F877, xt_osc, wdt_on, pwrt_on, lvp_off, protect_off
            XALL
            NOLIST
        else
            LIST
            LIST p = 16F877, r = dec, w = -302
            INCLUDE "P16F877.INC"   ; MPASM  Header
           ; __config _XT_OSC & _WDT_ON & _PWRTE_ON & _LVP_OFF & _CP_OFF
            NOLIST
        endif
            LIST

    Don't forget to include the config in all your 16F877 programs now that the default setting is commented out.
    Last edited by Demon; - 8th January 2012 at 02:52.

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