Newbie: Trying to blink a LED


Results 1 to 7 of 7

Threaded View

  1. #4
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    JackPollack,

    The following worked great on my 16F88:

    ;@ DEVICE INTRC_OSC_NOCLKOUT, MCLR_OFF, PROTECT_OFF, WDT_OFF
    OSCCON = $60
    LOW PORTB.1
    LOOP:
    Toggle PORTB.1
    Pause 1000
    GoTo LOOP

    Notice that I commented out your fuse settings. I suggest picking them in the EPIC menu until you can get it running. My best guess is that INTRC_OSC_NOCLOCKOUT is not a correct setting but I could not verify. (I use MPASM exclusively and had the fuses set as shown in the attached.) As a check, I had pin 5 tied direct to ground, pin 14 tied direct to 5V, and had an LED between pin 7 and ground. Again, Good Luck

    Oh, also see: http://www.picbasic.co.uk/forum/show...ighlight=16f88

    Paul Borgmeier
    Salt Lake City, Utah
    USA
    Attached Images Attached Images

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Newbie question about switch + led
    By mradde in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 24th January 2009, 17:40
  3. new and need help
    By smeghead in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd November 2008, 20:19
  4. Novice 16F83A BLINK LED program help
    By owali in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 25th July 2007, 05:02
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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