LCDOUT w/custom interface?


Results 1 to 5 of 5

Threaded View

  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 15:51.

Similar Threads

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