St7920


Closed Thread
Results 1 to 10 of 10

Thread: St7920

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Location
    Cambridge, England
    Posts
    9

    Default St7920

    Hello

    I'm trying to use the LM3037 LCD display which has a ST7920 controller. This seems to be much the same as the HD44780.

    I can display the normal ascii character set using LCDOUT but I need to display the inbuilt Chinese GB character code set.

    Can anyone point me in the right direction?

    Thanks

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Displayable ASCII Characters go up to something like Decimal 126. The values between 127-255 will display all kinds of interesting things... You'll have to write a little program something along the lines of...

    Code:
    	CounterA=0
    	LCDOut $FE,1
    Loop:
    	If ButtonUp=0 then CounterA=CounterA+1
    	If ButtonDown=0 then CounterA=CounterA-1
    	LCDOut $FE,$80,"ASC="#CounterA," CHR=",CounterA,"   "
    	Pause 100
    	Goto Loop
    ... just to cycle through and you can then scribble yourself a note as to what's what...

    I tend to go through an excercise like this to find out things like Pound (Sterling) or Euro signs, the symbol for Degrees (ie Degrees Celcius) etc... because their table position varies from one manufacturer to the next.

  3. #3
    Join Date
    Jun 2009
    Location
    Cambridge, England
    Posts
    9


    Did you find this post helpful? Yes | No

    Default St7920

    Thanks but I can already display the ascii characters.

    This particular controller has a simplified chinese character set that can be accessed between A1A0h and F7FFh.

    Data sheet here - http://www.topwaydisplay.com/Pub/IC_...20V31(eng).pdf

    Thanks again

  4. #4
    Join Date
    Jun 2009
    Location
    Cambridge, England
    Posts
    9


    Did you find this post helpful? Yes | No

    Default St7920

    Problem solved

    lcdout $FE, $80, $B0, $C0

    Displays the character B0C0h on the first character position on the display.

    I forgot the $80 the first time so you actually helped anyway Melanie.

    Thanks again

  5. #5
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: St7920

    Anyone went further with this display and PBP?
    Like loading own font and so on?

  6. #6
    Join Date
    Feb 2013
    Posts
    1,078


    Did you find this post helpful? Yes | No

    Default Re: St7920

    As found out by brute data sending, if you want to display large size English letters, you should use

    LCDOUT $FE, $80, 163, 128+ASCII character code.

    Code:
    LCDOut $FE,$80,163,128+72,163,128+101,163,128+108,163,128+108,163,128+111,163,128+33 'Will display Hello! with large letters
    Just these letters are as ugly, as most common Latin letters in Chinese fonts Also they're monospaced and use whole 16x16 area.
    Here's an example.

    Name:  monospaced.jpg
Views: 307
Size:  79.4 KB

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