More Powerful LCD Commands


Closed Thread
Results 1 to 32 of 32

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question

    So how exactly am i suppose to use I2CWRITE or SHIFTOUT to print on LCD using the circuit i had attached earlier ?
    Will i have to do some modification to the circuit or will it directly work if i just send the LCD commands to SHIFTOUT ? ? ?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shahidali55 View Post
    So how exactly am i suppose to use I2CWRITE or SHIFTOUT to print on LCD using the circuit i had attached earlier ?
    Will i have to do some modification to the circuit or will it directly work if i just send the LCD commands to SHIFTOUT ? ? ?
    That circuit/idea was never designed for I2C, it's always been for SHIFTOUT. I've got one of his books, that's what it says, that's the way it's designed.

  3. #3
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question 2-wire

    Has anyone designed a HD44780 2-wire (or 3-wire) LCD interface?
    Has anyone got an example code in picbasic?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shahidali55 View Post
    Has anyone designed a HD44780 2-wire (or 3-wire) LCD interface?
    Has anyone got an example code in picbasic?

    TX side - SEROUT directly replaces LCDOUT (pick your serial transmit format, i.e. baud rate, parity, etc)

    RX side - SERIN data feeds byte information directly to LCDOUT (again, pick your serial receive format to math the transmit side)

    3 wires - power, ground, serial transmit data

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


    Did you find this post helpful? Yes | No

    Default

    2 Wire: The master side may use I2CWRITE. On the slave side, you will need to build your OWN I2C routine, using the MSSP or Bit banging. Maybe you could use some part of the following...
    http://www.melabs.com/resources/samp...p/i2cslave.bas

    Still possible to set a PIC USART in Synchronous mode.

    3 wire: The master side may use SHIFTOUT. On the slave side, same rule apply..
    http://www.melabs.com/resources/samp...p/spislave.bas

    To me, a 1 wire solution is more valuable. But if your board already have a I2C bus... it's tempting to use it.
    Last edited by mister_e; - 5th June 2007 at 14:02.
    Steve

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

  6. #6
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question Using shift registers ? ? ?

    Can it be done without using a PIC on the slave side?
    Like 12F629 --> Shift register --> LCD

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by shahidali55 View Post
    Can it be done without using a PIC on the slave side?
    Like 12F629 --> Shift register --> LCD
    See your other post on the subject. The idea is well documented in Myke Predko's book. All you have to do is think about it a bit...the idea will hit...

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. Need help with LCD number display.
    By Steve Matson in forum mel PIC BASIC
    Replies: 8
    Last Post: - 26th June 2007, 23:07
  4. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30
  5. Dedicated LCD Controller question
    By chuckles in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 27th February 2006, 14: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