It's been a long time!!!


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    27


    Did you find this post helpful? Yes | No

    Default Re: It's been a long time!!!

    Thanks for the replies.
    The problem is, I can't even get an LED to blink. Does not come on at all, much less blink.
    Just trying to figure out the basics with this chip.

    According to this chart, using the internal OSC with 3x PLL and no clock divider, it should be at 48MHz if I am understanding it correctly.

    CONFIG FOSC=INTOSCIO
    CONFIG PLLSEL=PLL3X
    CONFIG CPUDIV=NOCLKDIV

    Name:  Untitled.png
Views: 597
Size:  22.9 KB

    Also, nPWRTEN, and nLPBOR are valid parameters in the PIC18F24K50.PBPINC file.

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    Did you find this post helpful? Yes | No

    Default Re: It's been a long time!!!

    ok looks like 48mhz clock is more likely to be correct , the table makes no mention of the /4 option as depicted in the osc diagram fig 3.1 ,and a 0 divide option seems more probable

    what are you using to pgm the chip , its not holding mclr low or something easy like that . pwr ok ? led works ?

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    Did you find this post helpful? Yes | No

    Default Re: It's been a long time!!!

    OSCCON = %01110010

    might by worth a try

  4. #4
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: It's been a long time!!!

    Try reversing the order:
    OSCCON must always precede OSCTUNE

    Been there done that.

    Norm

  5. #5
    Join Date
    Oct 2004
    Posts
    440


    Did you find this post helpful? Yes | No

    Default Re: It's been a long time!!!

    Quote Originally Posted by Normnet View Post
    Try reversing the order:
    OSCCON must always precede OSCTUNE

    Been there done that.

    Norm
    Have you had a chance to try the above?
    This issue also came up on another forum.


    Norm

  6. #6
    Join Date
    Sep 2008
    Posts
    27


    Did you find this post helpful? Yes | No

    Default Re: It's been a long time!!!

    I tried swapping the two lines and it did not make a difference. But, I have come to the conclusion I either have a faulty chip/board or the bootloader is not actually sending the program to the chip.

Similar Threads

  1. How long... LED on time without resistors?
    By Heckler in forum General
    Replies: 9
    Last Post: - 14th March 2011, 17:49
  2. Hello, long time no post (ADC sample rate)
    By Jhong2 in forum General
    Replies: 0
    Last Post: - 14th April 2009, 04:13
  3. Long start time
    By ttease in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th April 2007, 02:45
  4. Replies: 2
    Last Post: - 27th March 2007, 12:48
  5. Using RTC to generate long time delays
    By schlaray in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 3rd January 2007, 00:31

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