11.07.2015 Views

ST7920 - Topwaydisplay.com

ST7920 - Topwaydisplay.com

ST7920 - Topwaydisplay.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ST7920</strong>• FUNCTION SETRS RW DB7 DB6 DB5 DB4DB3DB2DB1DB0Code0 0 0 0 1 DL X RExxDL : 4/8 BIT interface control bitWhen DL = "1", 8 BIT MPU bus interfaceWhen DL = "0", 為 4 BIT MPU bus interfaceRE : extended instruction set control bitWhen RE = "1", extended instruction setWhen RE = "0", basic instruction setIn same instruction cannot alter DL and RE at once. Make sure that change DL first then RE.• SET CGRAM ADDRESSRS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1DB00 0 0 1 AC5 AC4 AC3 AC2AC1AC0CodeSet CGRAM address to address counter(AC)AC range is 00H..3FHMake sure that in extended instruction SR=0 (scroll address or RAM address select)• SET DDRAM ADDRESSRS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1DB00 0 1 AC6 AC5 AC4 AC3 AC2AC1AC0CodeSet DDRAM address to address counter(AC).First line AC range is 80H..8FHSecond line AC range is 90H..9FHThird line AC range is A0H..AFHFourth line AC range is B0H..BFHPlease note that only 2 lines can be display at a time.• READ BUSY FLAG(BF)AND ADDRESSRS RW DB7 DB6 DB5 DB4 DB3 DB2 DB1DB00 1 BF AC6 AC5 AC4 AC3 AC2AC1AC0CodeRead busy flag(BF)can check whether internal operation is finished. At the same time the value of address counterV3.1 21/42 2003/04/11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!