Switch LCD OFF during sleep, possible?


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938

    Default Switch LCD OFF during sleep, possible?

    Hello,

    I'm using a 16F88 and an LCD display.

    Is it possible to switch OFF the LCD display during sleep mode to drop the power consumption even more?

    If yes, how?
    Roger

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


    Did you find this post helpful? Yes | No

    Default All things possible

    Hi Roger,
    sure it's possible, just power your LCD from a pic pin, you might have to use a switching transistor, and you might not. How much current does your display draw when in full display minus backlight, and how much does it draw when all blank? It may not be worth the effort, I have seen LCDs powered by very small batteries for very extended times.
    JS

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


    Did you find this post helpful? Yes | No

    Talking Inverted logic ...

    Quote Originally Posted by flotulopex
    Hello,


    If yes, how?
    Just apply Power through a Pic PIN when NOT asleep ... and think to change the pin level BEFORE entering sleep !!!

    La Pallice book 34, chapter 9,10 and 11 !!!

    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
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default ... was to simple for me!

    Okay,

    I should have think about such a simple solution...

    "La Pallice", do you mean the Compiler's Manual?

    Thank you.
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex
    Okay,


    "La Pallice", do you mean the Compiler's Manual?

    Thank you.
    No,Flotul ...

    The man who wrote around year 1700 ... , between others: " a quarter before he died, he was still alive ..."

    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 " !!!
    *****************************************

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


    Did you find this post helpful? Yes | No

    Default Make sure you clear the flag

    Hi,

    If you are powering your LCD you need to re-initialize the LCD. PBP would do that for you when it encounters the next LCDOUT instruction. All you need to do is

    FLAGS=0

    This will guide PBP LCD library that the LCD has not yet been initialized.
    Regards

    Sougata

  7. #7
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default Flag?

    I don't understand.

    If you are powering your LCD...
    Do you mean this if I power the LCD through a PIC's Pin ?

    Shall I set FLAG=0 when I come back from sleep mode?
    Roger

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,121


    Did you find this post helpful? Yes | No

    Default

    Look at page 93 of the latest manual. It is FLAGS (with S) not FLAG.

    If you power down your LCD, also set FLAGS=0. Before using any LCDout commands.

    Ioannis

  9. #9
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default

    Thank you.

    I found it now too...

    Didn't think this was important.
    Roger

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


    Did you find this post helpful? Yes | No

    Default Yes It is important

    Hi,

    I hope that it is clear now. And thanks Ioannis for marking flutoplex's mistake.
    Regards

    Sougata

  11. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,121


    Did you find this post helpful? Yes | No

    Default

    Hi Sougata,

    you are welcome. A simple typo mistake can lead to many hours of wasted time. Been there before....

    Ioannis

Similar Threads

  1. Play with LCD on PICDEM
    By The IceMan in forum mel PIC BASIC
    Replies: 5
    Last Post: - 22nd August 2008, 16:56
  2. 18F1220 LCD and Sleep
    By jderson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th July 2008, 18:58
  3. Need help with SLEEP mode
    By aggie007 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th November 2007, 09:56
  4. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  5. Wierd sleep issue
    By orca in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th March 2006, 22:06

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