The worst programmer ever to grace this forum - ME!


Results 1 to 40 of 50

Threaded View

  1. #11
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    _MCLRE_OFF
    ???
    I do not have the board you have, just maybe..
    BINGO! That was it!!! Many thanks to you all!!

    For the record, anyone else with a PICkit 2 board (with a PIC16F690) .....to save you hours of puzzlement...

    In your C:\PBP\16F690.INC , comment out this one line (thanks to Bruce)...

    ; __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _CP_OFF

    Put all of the following code at the top of your PICBASIC programming window (thanks to mackrackit for the _MCLRE_OFF tip)...

    @MyConfig = _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON
    @MyConfig = MyConfig & _MCLRE_OFF & _BOR_OFF
    @ __config MyConfig

    DEFINE OSC 4

    i var byte

    ANSEL=0 ' all digital
    ANSELH=0 ' analog module disabled
    CM1CON0=0
    CM2CON0=0
    PortC = 0
    TRISC = 0



    And if you have - like I have - a burning desire to see your board's LEDs light in sequence, add this bit of code (thanks to Joe.S)...

    main:
    portc = 0
    pause 500
    for i = 1 to 15; step -1
    portC = i
    i=i << 1
    pause 250
    next i
    goto main
    end



    What's a beginner to do?!!! Most of this was (is!) double dutch....a what with a day & a half's effort just to get LEDs lit with the simplest of basic code....I think my programming interest is going to wane very fast!.

    Now to my main intention, a simple PIC based 'pulse counter' program for a coil winder.

    If your interested, you can read about what I'm trying to achieve here ....

    http://www.electro-tech-online.com/m...am-needed.html

    (you can see my appeal for the simple PIC program didn't get much of a response, hence me having to darken this forum's doorstep and try to figure it all out myself!)
    Last edited by HankMcSpank; - 15th March 2009 at 01:08.

Similar Threads

  1. Melabs U2 Programmer Command Line Options
    By Robert Wells in forum General
    Replies: 5
    Last Post: - 3rd July 2009, 02:11
  2. problems with USB programmer
    By malc-c in forum General
    Replies: 7
    Last Post: - 10th May 2007, 20:14
  3. USB programmer problems
    By uiucee2003 in forum USB
    Replies: 2
    Last Post: - 15th August 2006, 23:47
  4. General Programmer Questions
    By mslaney in forum General
    Replies: 1
    Last Post: - 17th December 2004, 18:16

Members who have read this thread : 0

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