ページ1に含まれる内容の要旨
Application Note
Interfacing toa Graphics Module witha Toshiba
T6963C Controller
Introduction:
The Toshiba T6963C LCD controller is one of the most popular controllers for use in small graphics
displays. For this reason it is used ina number of LCD modules from 128x128 to 240x128 pixels.
This class of module is most commonly used to displaya mixture of text and graphics in samall
devices and instruments. It is usually interfaced directly with an embedded 8-bit microprocessor.
This application no
ページ2に含まれる内容の要旨
Application Note 80C51 240x64LCDDISPLAY +5v 33pF P1.0 16.00mHz X1 V DD -15V P1.1 D0 D1 FS X2 P1.2 D2 D3 33pF 20K V D4 L P1.3 D5 V SS D6 P1.4 D7 +5v FG P1.5 WR 1N4148 + 1uF RD P1.6 CE RST CD P1.7 10k RESET P3.0 P3.1 P3.2 P3.3 Figure2 Schematic diagram Software: The sample program here is written in 8051 assembly language and is designed to work with the hardware shown in Figure 2. It is based ona 240x64 display but is applicable to any LCD with the T6963C controller. The program first resets the
ページ3に含まれる内容の要旨
Application Note SENDA BLOCK OF DATA Software Flowchart: TO THE DISPLAY MSGD: SENDA COMMAND WITH MAIN PROGRAM LOOP PARAMETERS GET BYTE START: MSGC: FROM TABLE INITIALIZE SET COUNTER T6963C TO2 DISPLAY CALL GET BYTE BITMAP WRITED FROM TABLE END INC. TABLE YES END RETURN POINTER BYTE? NO WRITEA WRITEA STATUS CHECK CALL COMMAND BYTE DATA BYTE WRITED STATUS: WRITEC: WRITED: INC. TABLE POINTER SET C/D TO1 STATUS STATUS NO OK? NO OK? DECREMENT YES YES COUNTER RD LOW SET C/D TO1 SET C/D TO0 CNT= READ B
ページ4に含まれる内容の要旨
Application Note Initialization: Before the LCD controller can accept or display data or text it must be initialized. This is usually done immediately after the system is powered up. The following chart lists the initialization commands and the parameters that accompany them along witha brief explanation of the function of each. Wherea parameter is different fora display that differs in resolution from the 240x64 example, the alternate values are also listed. Initialization bytes: COMMAND CODE P
ページ5に含まれる内容の要旨
Application Note Software: inc dptr djnz r0,msgc2 clra movc a,@a+dptr ;get command $mod51 mov r1,a ; ************************************************** lcall writec ;send command ;** sjmp msgc ;next command ;* T6963 Application Note V1.0* ;** ; ************************************************** ; MSGD sends the data pointed to by ; the DPTR to the graphics module. ; The processor clock speed is 16MHz. ; Cycle time is .750mS. msgd: ; Demo software to displaya bit-mapped clra movc a,@a+dptr ;get b
ページ6に含まれる内容の要旨
Application Note ;************************************************ ; TABLES AND DATA ; Initialization bytes for 240x64 msgi1: db 80h,07h,40h ;text home address db 1eh,00,41h ;text area db 00,00,42h ;graphic home address db 1eh,00,43h ;graphic area db 00,00,81h ;mode set db 00,00,24h ;address pointer set db 00,00,98h ;display mode set db 0a1h msgi2: db 00,00,0b0h ;auto mode db 0a1h ;240x64 Bitmap graphic data ;Only the first8 bytes are shown here ;The real graphic consists of 1920 bytes ;of binar