Need help getting started.


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Need help getting started.

    Look for #CONFIG in manual...

  2. #2
    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.

  3. #3
    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 : 0

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