Display values from two PIC16F series controllers with one LCD display


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Display values from two PIC16F series controllers with one LCD display

    I’ll put it to you this way, I don’t think you have any choice but to communicate between the two controllers in some fashion
    If any one controller prints the entire display of both values, then one value has to be communicated from one controller to the other.

    If you want both values displayed on the LCD at the same time, the only way to achieve that without one controller knowing what the other is thinking,
    is to print half of the display with one controller, and the other half of the display with the other, but to do that, to some extent,
    one controller still has to know what the other is thinking at the very least so they don’t try to print a the same time.

    To do that you only need to use the shared LCD Enable pin.
    Whenever a controller is not printing, the Enable pin is an input listening for highs on the Enable pin from the other controller.
    Whenever a controller wants to print, so long as the enable has not been held high by the other controller for a duration
    it can go ahead and print it’s line, by setting the Enable pin output, then high, then set the rest of the LCD data/control pins,
    then send Enable low to latch the LCD data, and continue till the line is printed, then set Enable as an input again.

    If one controller wants to print, but notices the other is printing because the Enable pin has been set high by the other controller
    within a duration (the duration being a little longer than it takes to print a line to the LCD), it simply waits until the Enable pin
    has been low for the duration before having a go at printing it’s data. That way neither controller is a master or a slave,
    so long as each leaves a significant delay because there’s an awareness that it’s no the only controller trying to use the LCD.
    At least that’s first way I wouldn’t go about not doing any of that.

    This all assumes that the LCD data latches on the transition of the Enable pin from high to low,
    and it’s the transition from low to high that is ignored (which is the way I remember it),
    but I’m writing for a library currently, and haven’t had to deal with that for some time.

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,172


    Did you find this post helpful? Yes | No

    Default Re: Display values from two PIC16F series controllers with one LCD display

    I'd keep things simple: 1 master to drive the LCD, 2 slaves to process your axis data.

    Easier to develop and debug.

    Robert
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

Similar Threads

  1. Trouble with LCD 2x8 and sequential display of values
    By fratello in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 27th February 2012, 15:51
  2. LCD Display
    By lambert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th January 2010, 23:18
  3. Replies: 2
    Last Post: - 5th November 2009, 18:07
  4. glcd display vs lcd display
    By davids in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 3rd July 2009, 19:16
  5. LCD Display - Which One
    By Switch in forum General
    Replies: 1
    Last Post: - 21st January 2009, 23:44

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