Need help getting started.


Results 1 to 4 of 4

Threaded View

  1. #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 19: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.

Similar Threads

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