need to blink


Closed Thread
Results 1 to 3 of 3

Thread: need to blink

  1. #1
    henery8's Avatar
    henery8 Guest

    Question need to blink

    I can't get started with a 16F628. The blink model is for external crystal and I want to use internal OSC and /MCLR - nothing extra. We need to start but this fat monarch is stuck.

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


    Did you find this post helpful? Yes | No

    Default

    first reading
    http://www.picbasic.co.uk/forum/showthread.php?t=543

    If you plan to blink on PORTA, read datasheet section 9 to know how to disable analog comparator.
    Steve

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

  3. #3
    henery8's Avatar
    henery8 Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks Steve
    It was a good lead and I've been trying to understand the configuration word from the pic manual. And I tried varous options but nothing actually flashed. I know my hardware is ok because I used another pic made with something else on it. My problem is that configuration word stuff seems quite advanced. As a beginner I don't know enough about pics to know what I need to set. It's simply lack of understanding. Chicken and egg ? Yes.

    This is my best guesswork but not good enough


    @ DEVICE pic16F628, INTRC_OSC_NOCLKOUT
    @ DEVICE pic16F628, WDT_ON
    @ DEVICE pic16F628, PWRT_ON
    @ DEVICE pic16F628, MCLR_OFF
    @ DEVICE pic16F628, BOD_ON
    @ DEVICE pic16F628, LVP_OFF

    TRISB = %00000000
    loop: High PORTB.2
    pause 500
    Low PORTB.2
    Pause 500
    Goto loop
    End
    Last edited by henery8; - 7th April 2006 at 11:24.

Similar Threads

  1. Trouble with most basic BLINK on PIC 16F819
    By confusedperson in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 16th April 2009, 21:46
  2. Simple Blink program doesnt work.
    By sccoupe in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st March 2009, 20:30
  3. Can't Blink 2 LEDs
    By dfort in forum mel PIC BASIC
    Replies: 2
    Last Post: - 5th March 2008, 22:36
  4. Can't get blink circuit to work :(
    By Techbuilder in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 31st January 2008, 13:00
  5. I Just Can't Get it to Blink - 16F628
    By Spindle in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 31st May 2005, 15:54

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