Need help getting started.


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2014
    Posts
    2

    Default Need help getting started.

    Please help an Old Fart Out here.

    I have programmed some sofisticated programs using picaxe chips.

    I'm now trying to program pic16F690 chips, to start with.

    I have a PICkit2, which I can program HEX files to, so I know that works.

    also have the LPC Demo Board.

    MPLAB IDE v8.92
    PBP 3.0 Student Edition, activated.
    PiCKIT 2 programmer
    LPC demo board
    Windows 7 64bit.


    I've read [Beginner Tutorial] How to get started with PICBASIC PRO

    Demo, MPLAB & PICKIT 2

    and

    Presetting Configuration Fuses (PIC Defines) into your Program

    and

    Now My Brain Hurts.........


    I'm trying to assemble the demo programs, Led Blinky etc.

    I keep getting the dreaded 'Overwriting previous address contents

    (2007)' message.


    If I can get the program to assemble, with internal oscillator running I'll be

    able to proceed, and be a happy chappie..

    Doesn't matter how many times I 'comment' lines in the p16f690.inc file, I

    can't get past this stage.


    Please help.

    A listing of 'ledblinky' and 'p16f690.inc' that will compile would be

    appreciated.

    Thanks

    TOF.

  2. #2
    Join Date
    Sep 2009
    Posts
    737


    Did you find this post helpful? Yes | No

    Default Re: Need help getting started.

    Look for #CONFIG in manual...

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


    Did you find this post helpful? Yes | No

    Default Re: Need help getting started.

    This ought to get you started if you are using PBP 3.
    Code:
    #IF __PROCESSOR__ = "16F690"
    #config
    cfg1 = _INTRC_OSC_NOCLKOUT  ; Internal oscillator
    cfg1&= _WDT_OFF             ; Watch Dog Timer disabled
    cfg1&= _PWRTE_OFF           ; Power-up Timer disabled
    cfg1&= _MCLRE_ON            ; Master Clear Reset enabled
    cfg1&= _CP_OFF              ; Program Code Protection is disabled
    cfg1&= _CPD_OFF             ; Data Code Protection is disabled
    cfg1&= _BOD_OFF             ; Brown-out Detect disabled
    cfg1&= _IESO_OFF            ; Internal External Switchover mode is disabled
    cfg1&= _FCMEN_OFF           ; Fail-safe Clock Monitor is disabled
     __CONFIG  cfg1             ; Set the configuration bits   
    #ENDCONFIG
    #else
        #MSG "Wrong microcontroller selected!"
    #endif
    DEFINE OSC 4
    ANSEL = %00000000
    ;CMCON0 = %00000111
    ;CMCON1 = %00000010
    PORTC = 0
    ANSELH=0
    ADCON0 = 0
    ADCON1 = 0
    BTW I use those same demo boards.
    Last edited by Archangel; - 31st December 2014 at 18:45.
    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.

  4. #4
    Join Date
    Dec 2014
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: Need help getting started.

    Thank you Archangel,

    My brain don't hurt so much now......

    info: had to click 'release from reset'.

    Rgards

    TOF

Similar Threads

  1. Help Getting Started
    By doggitz in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 25th August 2009, 21:30
  2. getting started
    By cunninghamjohn in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 15th November 2008, 18:42
  3. Getting started... again...
    By Neosec in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 31st May 2008, 02:09
  4. getting started
    By rmow in forum Schematics
    Replies: 1
    Last Post: - 21st March 2008, 03:06
  5. How did you get started .....
    By keithdoxey in forum General
    Replies: 25
    Last Post: - 13th April 2007, 19:29

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts