10f206 Blink led


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2004
    Location
    Scarborough UK
    Posts
    77

    Angry 10f206 Blink led

    Hi all

    Anyone know how to get a 10f206 going ?.

    i tried a simple blink prog to start but cant even get that to run, i've looked at datasheet and tried all sorts of option_reg and trisgpio combinations but the damn thing just sits there doing nothing, please help if you can.

    TRISIO = %11111101
    OPTION_REG = %00000000

    main:
    High GPIO.1
    Pause 50
    Low GPIO.1
    Pause 50
    GoTo main
    End
    Reading the datasheet & understanding it are two different things.

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i used those few times in the past without too much problems. I can't check everything where i'm right now but as i remind, you have to disable the analog comparator with CMCON0 register if my memory is good.
    try this line at the top of your code... but double check in the datasheet before... i can be wrong here... as often...
    CMCON0.3=0
    or
    CMCON0=0

    i can't remind how to exactly... but the first one sounds familiar to me... anyways let us know

    Look for your default config fuses... if i'm right MCLR= enable so MCLR should check that.
    HTH
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Dec 2004
    Location
    Scarborough UK
    Posts
    77


    Did you find this post helpful? Yes | No

    Smile 10f206 blink led

    Hi Mister_e

    It worked first go, THANK YOU !!.
    It was the CMCON0=0.



    CMCON0=0

    main:
    High GPIO.1
    Pause 30
    Low GPIO.1
    Pause 30
    GoTo main
    End
    Reading the datasheet & understanding it are two different things.

Similar Threads

  1. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  2. Novice 16F83A BLINK LED program help
    By owali in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 25th July 2007, 05:02
  3. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  4. Using HPWM to blink an LED?
    By Christopher4187 in forum General
    Replies: 8
    Last Post: - 7th August 2006, 00:48
  5. Can't get a 12F629 to blink a led
    By Sharky in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th June 2005, 11:28

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