EA-DOGM-163 with ST7036 LCD controller - can't find address for line 2 and 3


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default EA-DOGM-163 with ST7036 LCD controller - can't find address for line 2 and 3

    Thanks a lot Richard,

    It works now as expected with this code:
    Code:
    LCDOUT $FE,  1     ' clear display
    LCDOUT $FE,  2,"1" ' beginning of line 1
    LCDOUT $FE,$90,"2" ' beginning of line 2
    LCDOUT $FE,$A0,"3" ' beginning of line 3
    May I kindly ask you to explain how you found out those values please?


    looks like you need to set bit 7 and add dram ADDRESS
    Hum...I don't get this; what do you mean?
    Roger

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: EA-DOGM-163 with ST7036 LCD controller - can't find address for line 2 and 3

    May I kindly ask you to explain how you found out those values please?
    bit 7 = 128 =$80

    Code:
                            hex       dec              
    row1  dram  address  =   0          0          128 + 0 = 128   = $80 
    row2  dram  address  = $10         16          128 +16 = 144   = $90 
    row3  dram  address  = $20         32          128 +32 = 160   = $A0
    Last edited by richard; - 9th August 2016 at 00:03. Reason: white space
    Warning I'm not a teacher

  3. #3
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default EA-DOGM-163 with ST7036 LCD controller - can't find address for line 2 and 3

    Thank you again Richard.

    My knowledge of the "datasheet language" is apparently still poor

    Can you tell where this info is to be found in there?

    I'm lucky I've got you helping me (thanks again), but it's so frustrating not being able to find this by myself ...you know what I mean
    Roger

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,631


    Did you find this post helpful? Yes | No

    Default Re: EA-DOGM-163 with ST7036 LCD controller - can't find address for line 2 and 3

    from st7036 data sheet
    Attached Images Attached Images  
    Warning I'm not a teacher

  5. #5
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default EA-DOGM-163 with ST7036 LCD controller - can't find address for line 2 and 3

    Thank you Richard.

    Obviously, I have some lacks in basic knowledge of "display's controller" science since I can't still correlate your information and how I should understand it affects the cursor's position on the display

    I stop bothering you now; you gave me the solution and I thank you very much again for it
    Roger

  6. #6
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    938


    Did you find this post helpful? Yes | No

    Default "DDRAM" corresponds to a character position on display (but...)

    The controller contains n bytes of Display Data Random Access Memory which is usually referred to as DDRAM.

    Each of these DDRAM memory addresses corresponds to a character position on an attached display, but the specific position varies depending on the configuration of that display.
    This is what I was missing and this info can be found here
    Roger

Similar Threads

  1. How to find I2C Slave address of PIC24FJ256GA110?
    By sharath12 in forum Off Topic
    Replies: 2
    Last Post: - 19th March 2012, 14:21
  2. Shiftout Modifiers for SPI LCDs (DOGM series)
    By jbike123 in forum PBP Wish List
    Replies: 0
    Last Post: - 9th November 2010, 00:08
  3. Replies: 12
    Last Post: - 4th March 2010, 21:20
  4. Need advise how find problem in PID controller
    By phoenix_1 in forum Off Topic
    Replies: 0
    Last Post: - 28th October 2009, 01:22
  5. 2 Line Chars on a 2 Line LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th November 2003, 00: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