LCDOUT w/custom interface?


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224

    Default LCDOUT w/custom interface?

    Someone on another Forum asked me if it's possible to use the LCDOUT function with my old Novelty Serial LCD Interface (a simple 1-pin interface experiment inspired by the Predko 2-pin shift-register interface).


    The interface uses standard Async' Serial data but in a rather exotic format where each byte is sent as two bytes, one nybble per byte, along with the LCD 'RS' bit.

    Code:
    ;
    ;  host low level K8LH Novelty 12F635 Serial LCD Driver
    ;
    LcdCmd
            clrc                    ; C = RS = 0, 'command'           |B0
            skpnc                   ;                                 |B0
    LcdDat
            setc                    ; C = RS = 1, 'data'              |B0
            movwf   Temp            ; save data in WREG               |B0
            swapf   Temp,W          ; swap nybbles -> WREG            |B0
            call    LcdNyb          ; send left nybble                |B0
            movf    Temp,W          ; send right nybble               |B0
    LcdNyb
            andlw   0x0F            ; mask off left nybble            |B0
            skpnc                   ; RS = 0? yes, skip, else         |B0
            iorlw   b'11000000'     ; set the RS bits                 |B0
            btfss   PIR1,TXIF       ; transmit buffer empty?          |B0
            goto    $-1             ; no, branch, else                |B0
            movwf   TXREG           ; send byte                       |B0
            return                  ;                                 |B0
    Can the LCDOUT function use a custom driver like the one above (after being upgraded to catch the special $FE character)?

    Kind regards, Mike
    Attached Images Attached Images   
    Last edited by Mike, K8LH; - 20th September 2009 at 16:51.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I must be missing the point. If it is wired as shown just use the normal LCDOUT. ???

    How is the 2 pin or 1 pin thing you mention wired?
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Hi, Dave

    I think this might be some kind of serial to parallell converter ... trying to use the minimum pin count device ...

    might be used for a very particular use ...

    The Question was " Can I use THAT with PBP "LCDOUT" Command ??? "

    so, the answer is NO ...

    May be some SEROUT2 with modifier for 4 bits data out ... ( to be confirmed )

    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
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    May be some SEROUT2 with modifier for 4 bits data out ... ( to be confirmed )
    OK, I see what I was missing now. This is a LCD Backpack thing.
    Interesting...
    Dave
    Always wear safety glasses while programming.

  5. #5
    selina's Avatar
    selina Guest


    Did you find this post helpful? Yes | No

    Default Re: LCDOUT w/custom interface?

    RA4 is an open drain output.
    You'll need a pull-up resistor on that pin.

Similar Threads

  1. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 08:56
  2. need help in coding..
    By daphne8888 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 19th March 2008, 08:31
  3. Help GPS read with serin
    By leinske in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th September 2007, 03:33
  4. Crystalfontz LCD
    By jman12 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 9th February 2007, 16:04
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 13: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