oscillator problem


Closed Thread
Results 1 to 28 of 28

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post

    didnt make a difference), the code im using is:

    Code:
    DEFINE OSC 10
     
    ADCON1=%01111111
     
    LCD_DB4         VAR PORTA.4
    LCD_DB5         VAR PORTA.2
    LCD_DB6         VAR PORTA.3
    LCD_DB7         VAR PORTB.0
    LCD_RS          VAR PORTA.0
    LCD_E           VAR PORTA.1
    LCD_Lines       CON 2    
    LCD_DATAUS      CON 50 
    LCD_COMMANDUS   CON 2000
     
    INCLUDE "LCD_AnyPin.pbp"
     
    PAUSE 200
     
    LCDOUT $FE,1,$FE,2,"Hello World!"
     
    END
    Do you remember PORTA.4 is an open collector pin ... ???

    ... and you could use pause 500+ instead of 200. some displays are a bit lazy ...
    Last edited by Acetronics2; - 4th September 2010 at 12:44.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Do you remember PORTA.4 is an open collector pin ... ???

    ... and you could use pause 500+ instead of 200. some displays are a bit lazy ...
    I added a pullup resistor to PORTA.4

    It's definitely the osc because if I leave it running for 15 mins or so it does eventually display "Hello World!" extremely slowly.
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    I added a pullup resistor to PORTA.4

    It's definitely the osc because if I leave it running for 15 mins or so it does eventually display "Hello World!" extremely slowly.
    I think so ... now.
    Xtals also can be a bit lazy ... depends on the " cut "

    don't you have a 12 or 16 Mhz Xtal ... ( I recently saw a 18F overclocked @ 80 Mhz !!! ... ) 48 Mhz is easy, 64 might work.

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    I think so ... now.
    Xtals also can be a bit lazy ... depends on the " cut "

    don't you have a 12 or 16 Mhz Xtal ... ( I recently saw a 18F overclocked @ 80 Mhz !!! ... ) 48 Mhz is easy, 64 might work.

    Alain
    I just replaced it with a 16mhz which is working but that could just be because of the heating up. The test will be leaving it for half an hour and see if it still works. I'll post again then
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  5. #5
    Join Date
    Nov 2005
    Location
    Perth, Australia
    Posts
    429


    Did you find this post helpful? Yes | No

    Default

    it seems to be running happily at 64hmz

    i dont understand why since i tried 2 different 10mhz crystals
    "I think fish is nice, but then I think that rain is wet, so who am I to judge?" - Douglas Adams

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Kamikaze47 View Post
    it seems to be running happily at 64hmz

    i dont understand why since i tried 2 different 10mhz crystals
    To be really quiet with that ...

    I only buy my Xtals from Farnell, now ... per 100, price is nice.

    Never more from a local dealer ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  7. #7
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    The only thing to watch when overclocking is that things like serial comms ad the like often wont work. I had an 18F4580 running on a 20Mhz xtal with the HS_PLL setting - whilst it wasn't probably running at 80Mhz, it was dammed fast - but non of my serial comms would work until I replaced the 20Mhz xtal with a 12Mhz one. (as spotted by Alain)

    I was going to suggest that you tried using the xtal from the breadboard that you know was a proven crystal... but now you seem to of resolved the problem. - I have to agree with Alain, I would only purchase from a large component retailer (RS in my case).

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