Serial LCD problem


Results 1 to 38 of 38

Threaded View

  1. #30
    mind's Avatar
    mind Guest


    Did you find this post helpful? Yes | No

    Smile Serial LCD solved

    Hi guys

    Solved the problem. It really is simple, once you look at it. Did this with a PIC16F88, and a Electronic Assembly EA-DOGM162 LCD in serial connection.

    Since I hate reading old posts where the person has the same problem as I did, and solved it, but there is no mention of the solution, I have included working code below.

    Code:
        DEFINE OSC 4
        DEFINE CHAR_PACING 1000  
    @   DEVICE  PIC16F88, INTRC_OSC_CLKOUT, WDT_OFF, PWRT_ON, BOD_OFF, MCLR_OFF, PROTECT_OFF
        disable interrupt
    
        osccon = %01101100
        trisb  = %00000000
             
        LCD_RS_CommandLow VAR portb.1
        LCD_SerialIn VAR portb.2
        LCD_Clock VAR portb.4
    
        SYMBOL mode = 5
              
        pause 40   ' wait for LCD to startup
        shiftout LCD_SerialIn, LCD_Clock, mode, [$38]
        pauseus 30
        shiftout LCD_SerialIn, LCD_Clock, mode, [$39]
        pauseus 30
        shiftout LCD_SerialIn, LCD_Clock, mode, [$14]
        pauseus 30
        shiftout LCD_SerialIn, LCD_Clock, mode, [$78]
        pauseus 30
        shiftout LCD_SerialIn, LCD_Clock, mode, [$5E]
        pauseus 30
        shiftout LCD_SerialIn, LCD_Clock, mode, [$6A]
        pause 200
        shiftout LCD_SerialIn, LCD_Clock, mode, [$0C]
        pauseus 30
        shiftout LCD_SerialIn, LCD_Clock, mode, [$01]
        pause 2
        shiftout LCD_SerialIn, LCD_Clock, mode, [$06]
        pauseus 30
        
        high LCD_RS_CommandLow
        pauseus 2
        shiftout LCD_SerialIn, LCD_Clock, mode, ["Hello world"]
        end
    Best regards
    Richard
    Last edited by mind; - 3rd August 2005 at 17:54. Reason: cleanup un-used variables

Similar Threads

  1. LCD problem with 16F628
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 19th September 2016, 08:28
  2. LCD serial backpacks
    By Archangel in forum Serial
    Replies: 67
    Last Post: - 30th December 2010, 04:51
  3. Newbie? Problem with LCD
    By lew247 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 7th December 2009, 19:48
  4. Please help with EDE702 - Serial to LCD interface
    By Tomexx in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th October 2008, 02:48
  5. LCD Problem
    By karenhornby in forum General
    Replies: 3
    Last Post: - 19th June 2008, 11:43

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