What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    I would also try changing LED1 variable assignment to:
    Code:
    LED1 VAR LATB.0 ' Assign name "LED1" to LATB.0 on pin 33
    Louie

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    Isn't 1K on the LED a bit high?

    I usually have 330R.

    Robert

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    1k with high brightness LEDs is plenty.

    I think the problem is a missing register definition somewhere but I can't find it.

    Cheers
    BrianT

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    Hi Brian,
    I would guess it's something in the default configs that is/are? at odds with your code, better to hand code the configs so you know what you have.
    DEFINE OSC ??
    Last edited by Archangel; - 30th October 2013 at 02:02.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,141


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    Bit 7 of OSCCON, should not be a zero?

    Ioannis

  6. #6
    Join Date
    Apr 2007
    Location
    Pennsylvania, USA
    Posts
    158


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    bit 7 only matters if using sleep

    add led1=0 near the beginning of your code

    You should also define the osc to 08
    Shawn

  7. #7
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    Try

    OSCCON = %01111000
    OSCTUNE = %01000000
    DEFINE OSC 32

    I use "INTIO2" but your setting should make no difference if you don't use osc pins as digital in/out.

    Cheers

    Al.
    All progress began with an idea

  8. #8


    Did you find this post helpful? Yes | No

    Default Re: What is theabsolutely minimal hardware to run BLINK with a PIC18F4620?

    Thanks for the tip. I tried LATB.0 and it makes no difference.

Similar Threads

  1. ADCIN with PIC18F4620
    By Brian J Walsh in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 4th July 2008, 01:25
  2. PIC18F4620 Troubles
    By CluckShot in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th May 2007, 03:02
  3. pic18f4620 and flashlab77
    By igeorge in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th November 2006, 01:00
  4. LCD + keyboard matrix minimal I/O
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 21st June 2006, 19:49
  5. Sound and sound control with minimal parts
    By bartman in forum General
    Replies: 23
    Last Post: - 18th January 2005, 14:08

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