turn-off lcd and turn-on again


Closed Thread
Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2008
    Location
    TURKIYE-KONYA
    Posts
    51

    Default turn-off lcd and turn-on again

    i have a battery driven circuit.

    there are a 2 * 16 lcd and buttons on it.

    if it is not using , i use the sleep mode for low power consumption.

    until new data comes , pic is in sleep mode.

    there is no problem about the pics' entering sleep mode or wake up

    the problem is ; i have turn off the lcd for power consumption if pic is in sleep mode.

    i have tried to enable and disable the supply of lcd.but the current of the lcd does not decrease.

    i have to turn off the lcd in order to turn the circuit into low power consuption

    i use 18f1320 in intrc osc 4MHZ , lcd is in 4 bits - bus mode


    i will be glad to hear your ideas about this problem

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mehmetOzdemir View Post
    i have a battery driven circuit.

    there are a 2 * 16 lcd and buttons on it.

    if it is not using , i use the sleep mode for low power consumption.

    until new data comes , pic is in sleep mode.

    there is no problem about the pics' entering sleep mode or wake up

    the problem is ; i have turn off the lcd for power consumption if pic is in sleep mode.

    i have tried to enable and disable the supply of lcd.but the current of the lcd does not decrease.

    i have to turn off the lcd in order to turn the circuit into low power consuption

    i use 18f1320 in intrc osc 4MHZ , lcd is in 4 bits - bus mode


    i will be glad to hear your ideas about this problem
    mehmetOzdemir,

    The LCD's power line will probably need to be switched on/off to get the LCD to totally power down. A transistor used as a switch to the 5v side would probably work ok, switching the ground side would probably not work as well since the other lines are still connected.

    You could drive the transistor from a pin on the PIC to wake up when you wanted to display something. You will need to allow plenty of time for the LCD to do its startup before you get to send it data.

    Just an idea,
    Kevin

  3. #3
    Join Date
    Jul 2008
    Location
    TURKIYE-KONYA
    Posts
    51


    Did you find this post helpful? Yes | No

    Default lcd not switching

    thanks for your idea.

    i tried to switch both sides of the power supply.

    still , power consumption is same.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default

    1. Switch only the + supply. NOT the GND. Also note that if you do not have Backlight then you can omit the transistor and power the LCD directly from a PIC pin.

    2. Put all lines from PIC to LCD at 0 level. If they are at 1 then these lines power the LCD.

    Ioannis

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


    Did you find this post helpful? Yes | No

    Wink RT....

    Hi, Mehmet

    In the Manual, LCDOUT Command Chapter, first page ...

    You can find:

    ... if it's powered down and then powered back ....

    ADD:

    FLAGS = 0


    The next LCDOUT Command found will re-initialise the LCD ...

    That's all you have to do ...

    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
    Nov 2003
    Location
    Greece
    Posts
    3,806


    Did you find this post helpful? Yes | No

    Default

    Hi Alain.

    Thats the second he has to do :-)

    First he has to turn it off.

    Ioannis

  7. #7
    Join Date
    Jul 2008
    Location
    TURKIYE-KONYA
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Working good

    hi alain and ioannis.

    i switched vcc of lcd and made the other pins zero.when pic waked up i added flags = 0

    and now working fine.

    thanks for your response

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


    Did you find this post helpful? Yes | No

    Wink

    Quote Originally Posted by Ioannis View Post
    Hi Alain.

    Thats the second he has to do :-)

    First he has to turn it off.

    Ioannis
    Hi, Ioannis

    You're perfectly right on this point ... LOL !!!

    Just need a PIC pin to drive a P Mosfet in the LCD Supply line ... eh !

    I use a FQU11P06 ( I Pak case ) from Fairchild for my Lawn tractor onboard computer LCD ( The TRACTEUR program ... )

    Note a BS250 should fit if using one of the lasts " Blue " displays ( Backlight current draw has been significantly reduced since old " green " displays ...

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

Similar Threads

  1. Is this code not initialising the LCD properly?
    By Platypus in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 30th January 2010, 19:14
  2. 16f688 LCD what have I done wrong
    By spitfiredriver in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th August 2009, 19:54
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. PIC16F684 + 8*2 LCD module
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th March 2008, 23:38
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

Members who have read this thread : 1

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