Simplest hardware and code to blink a LED with PIC18F4620


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,680


    Did you find this post helpful? Yes | No

    Default Re: Simplest hardware and code to blink a LED with PIC18F4620

    i'm not sure how you pgm your chip but since you are using pbp3 you should insert your config fuses in the pgm

    look at PIC18F46K20.INFO in the pbp3 device_reference folder for more info.
    just let pbp look after the wdt unless you really need to change it.

    until you get the config fuses right nothing will work right.

    #CONFIG
    CONFIG FOSC = INTIO67
    CONFIG PWRT = ON
    CONFIG BOREN = ON
    CONFIG DEBUG = OFF
    CONFIG WDTEN = ON
    CONFIG XINST = OFF
    CONFIG PBADEN = OFF
    CONFIG MCLRE = ON
    CONFIG STVREN = ON
    CONFIG LVP = OFF
    #ENDCONFIG

    oscon=$70 will give you a 8mhz clk $60 $4 MHz
    you need a
    DEFINE OSC 8 or whatever if the clk is not 4mhz
    if you are unsure about switching off the analog features have a look at the
    ALLDIGITAL.PBP file by daryl taylor thah can be found in this forum
    Last edited by richard; - 2nd November 2013 at 11:52. Reason: TYPO

Similar Threads

  1. Replies: 12
    Last Post: - 1st November 2013, 13:32
  2. Led blink and interrupt
    By critix in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th April 2012, 11:31
  3. PIC18F4620 , what's wrong with my A/D converter code
    By Porcusoru in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd July 2009, 20:35
  4. Newbie: Trying to blink a LED
    By JackPollack in forum General
    Replies: 6
    Last Post: - 29th March 2007, 06:31
  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