LCD problem


Closed Thread
Results 1 to 9 of 9

Thread: LCD problem

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Hi Andre, Try this, dunno if it will help, but worth a try,
    Code:
    main:
    	LCDOUT $FE,$80
    	LCDOUT "line 1              "
    	LCDOUT $FE, $C0
    	LCDOUT "line 2"
    	PAUSE 1000
    goto main
    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.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    How do you have the OSC configed?
    This might be a clue
    http://www.picbasic.co.uk/forum/show...9&postcount=14
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Dave, I don't think that your link will help because the code show that the OP use MicroChip bootloader.

    One day I should Try it myself

    Main Problem is
    Code:
    DEFINE OSC 20
    As far as I remember, Microchip Bootloader config fuses and code assume 48MHz BUT with a 20MHz crystal. So I would try
    Code:
    DEFINE OSC 48
    Last edited by mister_e; - 26th January 2009 at 23:13.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Well at least I got the OSC 48 part.
    Never used a boot loader though.

    Do you set the configs the same as with out one?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Most Bootloader I know, will ignore the config fuses in your code as they're already set in their firmware and don't have the ability to re-program them on the fly. HOWEVER, for many PIC18, you can do it later in your code. Darrel Already post something on that... BUT, using this, you will probably screw up most Bootloader... no free lunch

    Bootloader are nice for firmware upgrade, but for development, they have their own limitations.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Thanks for the info.
    Dave
    Always wear safety glasses while programming.

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Thanks guys
    Changing to define osc 48 fixed all the problems, LCD serial everything. Now for the question -- Why???
    On all the other projects you set the define to the cristal freq. but now you set almost 1.5 times higher.

    I am confused can someone PLEASE explain this to me

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 08:28
  2. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  3. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  4. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43
  5. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07

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