10mhz yes, 20mhz no...


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Location
    Alberta Canada
    Posts
    166


    Did you find this post helpful? Yes | No

    Default

    shouldnt the delay for the lcd not matter?? since it works fine at 10mhz, is should be the same at 20, shouldnt it???

    can someone please elaborate on the command_us and data_us? i have never used these before, and i looked through the book a bit, and couldnt find anything. i also searched on here, and couldnt find enough info on it..

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by dragons_fire View Post
    shouldnt the delay for the lcd not matter?? since it works fine at 10mhz, is should be the same at 20, shouldnt it???

    can someone please elaborate on the command_us and data_us? i have never used these before, and i looked through the book a bit, and couldnt find anything. i also searched on here, and couldnt find enough info on it..
    I used the wrong syntax.
    It's lcd_commandus and lcd_dataus. It's in the green manual.

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


    Did you find this post helpful? Yes | No

    Smile

    The LCD commands just noted won't help because he is using a serial lcd with serout2, not the LCDOUT command. I don't have an answer, just hoping to save him time debugging.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    The LCD commands just noted won't help because he is using a serial lcd with serout2, not the LCDOUT command. I don't have an answer, just hoping to save him time debugging.
    Hey...good point...DOH!

    You running 20mhz and SEROUT2 with a baud of 32. I'm thinking maybe the difference between say 31, 32, and 33, might be the ticket. Maybe your baud rate is off as a result of your crystal being off a bit.
    Try 31 and 33 and see what happens.

    Does the LED on D.0 respond properly? What does the LCD do? Do you have the Power-Up-Timeout enabled?

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I used the wrong syntax.
    It's lcd_commandus and lcd_dataus. It's in the green manual.
    thinking along these lines ... there is an optional "pace" setting you can make to slow down the presentation of bytes from serout2. You might want to play with that as well. The "pace" setting also is in the green manual(under serout2)
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    I wonder if maybe the 20mhz crystal is oscillating at 20mhz...might be drawn off on a harmonic or something along those lines. I know I've had a bit of a rough time with crystals once I get above about 10mhz, especially on the solder-less-breadboards. Usually nothing that a cap value change couldn't fix (i.e. 15pf -> 33pf or the other way), but once in awhile, I'd just get a crystal that wouldn't work in the application. Swap it out with another one, works great...etc...
    Just more stuff for you to look at I suppose...

Similar Threads

  1. 16F877A with 20MHz XTAL not working?
    By ustredna in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 19th August 2011, 15:04
  2. Replies: 0
    Last Post: - 5th September 2007, 12:25
  3. 20MHz improve RF over 16F628A?
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th November 2006, 16:04
  4. 18F458 and 20MHz osc problem...
    By batee in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th October 2004, 20:16
  5. 16F877 20MHz problem
    By swordman in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st July 2004, 10:02

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