Darrel's SPWM and LCDOUT


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Mar 2008
    Location
    Gerogetown, Texas
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Don't the DEFINES have to be in CAPs?

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


    Did you find this post helpful? Yes | No

    Default

    dEFINE, define or else variant will work, what's important it's on the right of it.
    Last edited by mister_e; - 2nd April 2008 at 01:36.
    Steve

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

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I googled "Optrex DMC20481" and found a post on another forum suggesting that the LCD_COMMANDUS of 2000 was too low for that display. He said that 3000 worked for him.

    I pulled up the datasheet, and there doesn't seem to be any mention of the actual delays required. I guess if they're that bad, I wouldn't want to publish them either.

    Something to try.
    <br>
    DT

  4. #4
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default I had a different problem

    Hi,

    I once found that my LCD was spitting garbage and sometimes went blank. On inspection with the panel itself I found it would happen when a contactor picks up. My experiments.


    1. LCD changed with a different brand --> Reduced frequency of the problem but still exist
    2. LCD timing --> Reduced the missing display
    3. Remove shielding from the LCD mounting --> Problem almost gone

    4. Software measure taken:

    Use the Flag to re-initialize and clear the LCD after contactor pick up/drop.

    So what I mean to say is that in my case the LCD itself was picking up noise and not stable.
    Regards

    Sougata

  5. #5
    Join Date
    Feb 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    I would make two things before posting the entire program.

    1- Change DEFINE LCD_COMMANDUS 2000 to 3000.

    2- If point 1 not fix the trouble, reduce the program to minimum in order to have the repeatability of the trouble with minimum statements.

    I will make this activity this evening (Italian time).

    Ciao

    Leo

  6. #6
    Join Date
    Feb 2007
    Posts
    37


    Did you find this post helpful? Yes | No

    Default

    Hi,

    the fail seems disappeared. I do not have made nothing!

    The only difference between yesterday and today in that yesterday was the first od April!!!

    Is almost tree hours that is running without any trouble on the LCD display.

    Attached there are the "failing" program.

    I leave running the program for the entire night.

    Ciao

    Leo
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default

    Steve

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

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