VFD Display Brightness & Lcdout


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default VFD Display Brightness & Lcdout

    I have an 44780 compatible display but the brightness control is a little strange.

    It requires the RS line to be 1 when sending the brightness commands and LCDOUT seems to always be 0 sending data.

    Any thoughts on this.

    Can i just set the defined port to 1 before using the lcdout command or will it set it to 0?

    Thoughts..

    http://www.tme.eu/gr/Document/2b8233...20045-UW5J.pdf

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: VFD Display Brightness & Lcdout

    Lcdout will set RS high to send data and low to send an instruction.
    You didn't show the code you tried.
    I'd try first simply sending the command as data,
    or send it yourself. Just present what the LCD wants to see
    In every pin while the Enable pin is high,
    then send the Enable pin low.
    Last edited by Art; - 28th August 2016 at 02:46.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: VFD Display Brightness & Lcdout

    You realy can't mess with RS, it is Instruction/Data register select (0=Instruction 1=Data). From the datasheet -
    Name:  Image1.jpg
Views: 383
Size:  392.3 KB
    George

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: VFD Display Brightness & Lcdout

    Of course you can. You can mess with any of the signal pins as much as you like.
    It's only on the falling edge of the Enable pin that the state of all other pins are latched to the LCD.
    Hence you can connect multiple LCD modules to all the same pins, but they each need their own Enable pin.

    What I think will happen if you set your own state for RS and then send a command with LCDOUT,
    is PBP will change straight back to what it wants.

  5. #5
    Join Date
    Aug 2011
    Posts
    408


    Did you find this post helpful? Yes | No

    Default Re: VFD Display Brightness & Lcdout

    I don't think you have to mess with RS. Looking at the datasheet for the VFD it says this:

    One byte data (RS=1) which follows the "Function Set Command" is considered as brightness data.
    When a command (RS=0) is written after the "Function Set Command", the brightness control
    function is not initiated. Screen brightness is as follows.
    So it sounds like the brightness byte goes out as normal data would... you just have to send it right after a Function Set Command byte.
    Try something like this:
    LCDOUT $FE, $20, $03 'FS=4-bit mode and 25% brightness

Similar Threads

  1. Winstar OLED Display Problem with lcdout comands
    By bubbleless in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 31st December 2019, 06:53
  2. Replies: 1
    Last Post: - 28th April 2011, 19:02
  3. User Selectable LED Brightness
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th April 2005, 19:24
  4. LCDOUT & interrupts
    By lab310 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 8th April 2005, 12:59
  5. LCDout Command w/ LCD 4x40 display
    By beto in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 21st January 2005, 02:22

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