HD61830------------- LeTe (LCD Timing Controller) Description Pin Arrangement The HD61830 is a dot matrix liquid crystal graphic display controller LSI that stores the .. III) CD""IIO CD display data sent from an 8-bit microcontrol- UUiUUU ler in the external RAM to generate dot matrix liquid crystal driving signals. It has a 54 MAIO MAn graphic mode in which l-bit data in the A MAI2 external RAM corresponds to the on/off state MAIS CPO MAl. of 1 dot on liquid crystal display and a c~ar­ MAIS acter mode in which characters are displayed D 2· by storing character codes in the external DI CL 2 RAM and developing them into the dot pat- AD 0 terns with the internal character generator AD I 43 RD 2 ROM. Both modes can be provided for various applications. The HD61830 is produced by the CMOS process. Thus, combined with a CMOS microcontroller it can complete a liquid crys- tal qisplay device with low power dissipation. ....", .. -Cto .... CD . . . ", .. :!l:!l:!l:!l~n~ UUii Features (Top View) • Dot matrix liquid crystal graphic display controller • Display control capacity -Graphic mode: 512k dots (216 bytes) -Character mode: 4096 characters (21 2 characters) • Internal character generator ROM: 7360 bits -160 types of 5 x 7 dot characters -32 types of 5 x 11 dot characters Total 192 characters -Can be extended to 256 characters (4k bytes max.) by external ROM • Interfaces to 8-bit MPU • Display duty cycle (Can be selected by a program) -Static to 1/128 duty cycle • Various instruction functions -Scroll, Cursor on/off/blink, Character blink, Bit manipulation • Display method: Selectable A or B types • Internal oscillator (with external resistor and capacitor) • Operating frequency: 1.1 MHz • Low power dissipation , • Power supply: Single + 5 V ± 10% • CMOS process • Package: 60-pin plastic OFP (FP-60) HITACHI 418. Hitachi America, Ltd.· Hitachi Plaza. 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 td x 8pr Sf n =- » SYNC CLI MA M B FLM 52 3 CD ~... 5" WE p> B R~ C !'L r--- x• Sf n =- OBO- OB7 -r .~ 8 i• cs ) I ____o-, MO M07 N 0 ~s ~ 8 V ~ 0 R/W 8 I r;-;::::: .0 en RES 01 I ... --: 8X1ernal : m· Ita Character I ROM I iii 1: out···~ f6 8 Hgenerator hl' II;~~} D L.---T-----J ~ h I rrLl J ROM "U 0 a (CGROM) i I "U ~ ;!; '--- ---. M~ control signal aenerator ____ -'-_.JI ;1..§s ROo -R0 7 regis- • g:J is- § ~-eiij ter Control ~ .. 1: c IMCR} signal -~.6>~ 8·~' - - _.., CT i I» Busyi .flag I!!::. ~ (") » 01 (BF) ~ 0 0 en .!. ~-+---D2 ~ c.o • ~ .2! en CD % Co) 0 0 CL2 CPO *When extended external ROM is used. MAo-MA" are applied to RAM. MA12 -MA'5 are applied to extended external ROM. 6en ~ (X) W .... ~ c.o o HD61830 Block Functions Registers Refresh Address Counters (RAC1/RAC2) The HD61830 has the five types of registers: The refresh address counters, RACl and instruction register (IR), data input register RAC2, control the addresses of external RAM, (DIR), data dutput register (DOR), dot regis- character generator ROM (CGROM), and ters (DR), and mode control register (MCR). extended external ROM. The RACl is used for the upper half of the screen and the RAC2 for The IR is a 4-bit register that stores the the lower half. In the graphic mode, 16-bit instruction codes for specifying MCR, DR, a data is output and used as the address signal start address register, a. cursor address regis- of external RAM. In the character mode, the ter, and so on. The loWer order 4 bits DBO to high order 4 bits (MA12 - MA15) are ignored. DB3 of data buses are written in it. The 4 bits of line address counter are output instead and used as the address of extended The DIR is an 8-bit register used to temporar- ROM. ily store the data written into the external RAM, DR, MCR, and so on. . Character Generator ROM The DOR is an 8-bit register used to tempo- The character generator ROM has 7360 bits in rarily store the data read from the external total and stores 192 types of character data. A RAM. Cursor address information is written character code (8 bits) from the external RAM into the cursor address counter (CAC) and a line code (4 bits) from the line address through the DIR. When the memory read counter are applied to its address signals, and instruction is set in the IR (latched at the it outputs 5-bit dot data. falling edge of E signal), the data of external RAM is read to DOR by an internal operation. The character font is 5 x 7 (160 characters) or The data is transferred to the MPU by reading 5 x 11 (32 characters). The use of extended the DOR with the next instruction (the con- ROM allows 8 x 16 (256 characters max.) to tents of DOR are output to the data bus when be used. E is at the high level). Cursor Address Counter The DR are registers used to store dot infor- mation such as character pitches and the The cursor address counter is a 16-bit counter number of vertical dots, and so on. The that can be preset by instruction. It holds an information sent from the MPU is written into address when the data of external RAM is the DR via the DIR. read or written (when display dot data or a character code is read or written). The value The MCR is a 6-bit register used to store the of the cursor address counter is automatically data which specifies states of display such as increased by 1 after the display data is read or display on/off and cursor on/off/blink. The written and after the set/clear bit instruction information sent from the MPU is written in it is executed. via the DIR. Cursor Signal Generator Busy flag (BF) The cursor can be displayed by instruction in The busy flag = 1 indicates the HD61830 is character mode. The cursor is automatically performing an internal operation. Instruc- generated on the display specified by the tions cannot be accepted. As shown in Con- cursor address and cursor position; trol Instruction, read busy flag, the busy flag is output on DB7 under the conditions of RS = Parallel/Serial Conversion 1, R/W = 1, and E = 1. Make sure the busy flag is 0 before writing the next instruction. The parallel data sent from the external RAM, character generator ROM, or extended ROM Dot Counters (DC) is converted into serial data by two parallel! serial conversion circuits and transferred to The dot counters are counters that generate the liquid crystal driver circuits for upper liquid crystal display timing according to the screen and lower screen simultaneously. contents of DR. HITACHI 420 Hitachi America, Ltd.' Hitachi Plaza' 2000 Sierra Point Pkwy.' Brisbane, CA 94005-1819' (415) 589-8300 HD61830 Terminal Functions Name Function DBO-DB7 Data bus: Three-state I/O common terminal Data is transferred to MPU through DBO to DB7 Chip select: Selectli'd state with CS = 0 R/W Read/Write: R/W = 1: MPU .... HD61830 R/W = 0: MPU -+ HD61830 RS Register select: RS = 1: Instruction register RS = 0: Data register E Enable: Data is written at the fall of E Data can be read while E is 1 CR. R.C CR oscillator Reset: Reset = 0 results in display off. slave mode and Hp = 6 MAO-MA15 External RAM address output In character mode. the line code for external CG is output through MA 12 to MA 15 (0: Character 1st line. F: Character 16th line) MDO-MD7 Display data bus: Three-state I/O common terminal RDO-RD7 ROM data input: Dot data from external character generator is input Write enable: Write signal for external RAM Cl2 Display data shift clock for LCD drivers Cll Display data latch signal for LCD drivers FlM Frame signal for display synchronization MA Signal for converting liq~id crystal driving sign!!1 into AC. A type MB Signal for converting liquid crystal driving signal into" AC. B type 01.02 Display data serial output 01: For upper half of screen 02: For lower half of screen CPO Clock signal for HD61830 in slave mode Synchronous !lignal for parallel operation Three-state I/O common terminal (with pull-up MOS) Master: Synchronous signal is output Slave: Synchr()nous signal is input HITACHI .. Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 421 HD61830 Absolute Maximum Ratings Item Symbol Value Unit Note Supply voltage Vee - 0.3 to + 0.7 V 1,2 Terminal voltage Vr - 0.3 to Vee + 0.3 V 1.2 Operating temperature Topr - 20 to + 75 ·c Storage temperature Tstg - 55 to + 125 ·c . Notes: 1. All voltages are referenced to GND = 0 V. 2. If LSls are used beyond absolute maximum ratings, they may be perr,nanently destroyed. We strongly recommend that you use the LSls within electrical characteristic limits for normal operation, because use beyond these conditions will cause malfunction and poor reliability. HITACHI 422 Hitachi America, Ltd. - Hitachi Plaza -2000 Sierra Point Pkwy. - Brisbane, CA 94005-1819 - (415) 589-8300 HD61830 Electrical Characteristics (Vee = 5 V ± 5 %, GND = 0 V, T. = - 20 to +75·C) Item Symbol Min Typ Max Unit Test Condition Note Input high voltage (TIL) VIH 2.2 Vee V Input low voltage (TIL) VIL 0 0.8 V 2 Input high voltage VIHR 3.0 Vee V 3 Input high voltage (CMOS) VIHe 0.7 Vee Vee V 4 Input low voltage (CMOS) VILe 0 0.3 Vee V 4 Output high voltage (TIL) VOH 2.4 Vee V -loH = 0.6 mA 5 Output low voltage (TIL) VOL a 0.4 V IOL = 1.6 mA 5 Output high voltage (CMOS) VOHe Vee - 0.4 Vee V -loH = 0.6 mA 6 Output low voltage (CMOS) VOLe a 0.4 V IOL ';' 0.6 mA 6 Input leakage current liN - 5 5 ",A VIN = a-Vee 7 Three-state leakage current hSL - 10 10 ",A VOUT = O-Vce 8 Power dissipation (1) Pw1 10 15 mW CR oscillation 9 fosc = 500 kHz Power dissipation (2) Pw2 20 30 mW . External clock 9 fcp = 1 MHz Internal clock operation ----_.-.-.------------.-._---------------------------------------------------------------------------------------.------------------------------------_. Clock oscillation frequency fosc 400 500 600 kHz Cf =15 pF ± 5% 10 Rf = 39 kO ± 2% External clock operation -------------------------------.----------------.-------------------------_.------- --------------- --------------------------------------------------_. External clock operating fcp 100 500 1100 kHz 11 frequency External clock duty Duty 47.5 50 52.5 % 11 External clock rise time t,cp 0.05 ",s 11 External clock fall time tfcp 0.05 ",s 11 Pull-up current IpL 2 10 20 ",A VIN = GND 12 Note: The I/O terminals have the following configuration: HITACHI Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 423 HD61830 Input Terminal Output Terminal Applicabie terminai: es, E, RS, R/W, RES, CR Appiicabie terminal: CL1, CL2, MA, MB, FLM, (Without pull-up MOS) CPO, D1, D2, WE, OE, CE, MAO-MA15 Vee r1e Vee s ~~NM~ Applicable terminal: RDO-RD7 (With pull-up MOS) Vee Vee HITACHI 424 Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.• Brisbane, CA 94005-1819· (415) 589-8300 HD61830 I/O Common Terminal Applicable terminal: DBO-DB7, SYNC (with pull-up MOS), MDO-MD7 (without pull-up MOS) Vee Vee H (Pull-up MOS) r----- ---1- Vee Enable :PMOS )t-i I Data (Input circuit) I ~--------------~I I I : L ________ J (Output circuit) (Three state) Notes: 1. ~ied to input terminals and I/O common terminals, except terminals SYNC, CR, and RES. 2. Applied to input terminals and I/O common terminals, except terminals SYNC and CR. 3. Applied to terminal RES. 4. Applied to terminals SYNC and CR. 5. Applied to terminals OBO-OB7, WE, MAO-MA15, and MOO-M07. 6. Applied to terminals SYNC, CPO, FLM, CL1, CL2, 01,02, MA, and MB. 7. Applied to input terminals. 8. Applied to I/O common terminals. However, the current which flows into the output drive MOS is excluded. 9. The current which flows into the input and output circuits is excluded. When the input of CMOS is in the intermediate level, current flows through the input circuit, resulting in the increase of power supply current. To avoid this, input must be fixed at high or low. The relationship between the operating fre- quency and the power dissipation is given below. ~ .s 50 max cl /' 40 /' 30 /' typ L ~ 20 ...... V ~ /" ~ 10 /' ~ ,/~ .,?/ 0 250 500 750 1000 1250 1500 fosdkHz) HITACHI Hitachi America, Ltd.' Hitachi Plaza' 2000 Sierra Point Pkwy.' Brisbane, CA 94005-1819' (415) 589-8300 425 HD61830 1O. Applied to the operation of the internal oscillator when oscillation resistor Rf and oscillation capacity Cf are used. Cf= 15pF± 5% .-------1 R R,=39kQ±2% (when fosc= C 500kHz typ) '----4---1 CR The relationship among oscillation frequency, Rf and Cf is given below. fosc (kHz) Ta=25'C Vcc=5V 800 \ 600 \ \ \ '\. --- 400 "---" ....... ............. ........ r- 200 C,= 10pF C, = 15pF o 40 60 80 100 120 140 160 180 R,(kQ) 11. Applied to external clock operation. Open R 0. 7Vcc Open C 0. 5Vcc 0. 3Vcc CR 12. Applied to SYNC, 080-087, and ROO-R07. HITACHI 426 Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 HD61830 Timing Characteristics MPU Interface Item Symbol Min Typ Max Unit Enable cycle time tCYC 1.0 ps Enable pulse width High level twEH 0.45 ps Low level twEL 0.45 ps Enable rise time tE, 25 ns Enable fall time tEf 25 ns Setup time tAS 140 ns Data setup time tosw 225 ns Data delay time (Note) tOOR 225 ns Data hold time tH 10 ns Address hold time tAH 10 ns Data hold time tOH 20 ns Note: The following load circuit is connected for specification: Vee Test point RL=2.4kO R R =11kO C "" 130pF Diodes 0, to 0 4 : 1S2074HD61830) DBo-DB7 (MPU-HD61830) HITACHI 428 Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1&19· (415) 589-8300 HD61830 External RAM and ROM Interface Item Symbol Min Typ Max Unit SYNC delay time toSY 200 ns SYNC pulse width High level twSY 900 ns CPO cycle time tccpo 900 ns CPO pulse width High level twCPOH 450 ns Low level twCPOL 450 ns MAO to MA 15 refresh delay time \ tOMAR 200 ns MAO to MA 1 5 write address delay time tOMAW 200 ns MOO to M07 write data delay time tOMOW 200 ns MOO to M07, ROO to R07 setup time tSMO 900 ns Memory address setup time tSMAW 250 ns Memory data setup time tSMDW 250 ns WE delay time tOWE 200 ns WE pulse width (low level) twwE 450 ns Notes: 1. No load is applied to all the output terminals. 2. "*" indicates the delay time of RAM and ROM. HITACHI Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 429 HD61830 LCD Driver Interface Item Symbol Min Typ Max Unit Clock pulse width (high level) twCLl 450 ns Clock delay time tOCL2 200 ns Clock cycle time twCL2 900 ns Clock pulse width High level twCH 450 ns Low level twCL 450 ns MA. MB delay time tMO 300 ns FLM delay time tOF 300 ns Data delay time too 200 ns Data setup time tso 250 ns Note: No load is applied to all the output terminals (MA. MB. FLM. 01. and 02). CL1 CL2 MA. MB FLM D1 tOD-f--j4-- D2 HITACHI 430 Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 HD61830 Display Control Instructions During the execution of the instruction, no new instruction can be accepted. Since the Display is controlled by writing data into the busy flag is set during this, read the busy flag instruction register and 13 data registers. The and make sure it is 0 before writing the next RS signal distinguishes the instruction regis- instruction. ter from the data registers. a-bit data is written into the instruction register with RS 1. Mode control = 1, and the data register code is specified. Code $"00" (hexadecimal) written into the After that, the a-bit data is written in the instruction register specifies the mode con- data register and the specified instruction is trol register. executed with RS = O. Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DBO Instruction reg. 0 1 0 0 0 0 0 0 0 0 Mode control reg. 0 0 0 0 Mode data DB5 DB4 DB3 DB2 DB1 DBO Cursor/blink CG Graphic/character display I/O I/O 0 0 0 0 Cursor off Character display (!) (Character mode) 0 1 Cursor on u fti E 1 0 Cursor off, character blink $ .E 1 1 Cursor blink 0 0 1 Cursor off (!) 0 1 Cursor on u fti E 1 0 Cursor off, character blink S 1 1 Cursor blink 0 0 1 0 Graphic mode ~ $(J :t:: 0 "- ., ~ .,~ .s:: (!) c: (J U 0 u; "- E l., (J > ! 5 :C(l) 1: Disp la y on 0: Display off HITACHI Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 431 HD61830 2. Set character pitch Hp indicates the number of horizontal dots Vp indicates the number of vertical dots per per character in display, including the space character. Tne space between the vertically- between horizontally-displayed characters. displayed characters is included in the In the graphic mode, the Hp indicates the determination. This value is meaningful only number of bits of i-byte display data to be during character display (in the character displayed. mode) and becomes invalid in the graphic mode. There are three Hp values (table 1). Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DB1 DBO Instruction reg. 0 1 0 0 0 0 0 0 0 1 Character pitch reg. 0 0 (Vp - 1) binary 0 (Hp - 1) binary Table 1 Hp Values Hp DB2 DB1 DBO Horizontal character pitch 6 o 6 7 o 7 8 8 HITACHI 432 Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 HD61830 3. Set number of characters HN indicates the number of horizontal char- n = Hp x HN acters in the character mode or the number of horizontal bytes in the graphic mode. If the HN can be set to an even number from 2 to total sum of horizontal dots on the screen is 128 (decimal). taken as n, Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DBl DBO Instruction reg. .0 1 0 0 0 0 0 0 1 0 Number-of-characters reg. 0 0 0 (HN -1) binary 4. Set number of time divisions (inverse multiplex display. of display duty ratio) l/Nx is the display duty ratio. Nx indicates the number of time divisions in A value of 1 to 128 (decimal) can be set to Nx. Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DBl DBO Instruction reg. 0 1 0 0 0 0 0 0 1 1 N umber-of-time-divisions 0 0 0 (Nx - ') binary reg. 5. Set cursor position can be set to Cpo If a smaller value than the Cp indicates the position in a character vertical character pitch Vp is set (Cp :;; Vp), where the cursor is displayed in the character and a character overlaps with the cursor, the mode. For example, in 5 x 7 dot font, the cursor has higher priority of display (at cursor cursor is displayed under a character by display on). If Cp is greater than Vp, no cursor specifying Cp = 8 (decimal). The cursor hori- is displayed. The cursor horizontal length is zontal length is equal to the horizontal char- equal to Hp. acter pitch Hp. A value of 1 to 16 (decimal) Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DB' DBO Instruction reg. 0 , 0 0 0 0 0 , 0 0 Cursor position reg. 0 0 0 0 0 0 (Cp - ') binary 6. Set display start low order address the start address is composed of high/lOW order 16 bits.. In the character display, it is Cause display start addresses to be written in composed of the lower 4 bits of high order the display start address registers. The dis- address (DB3 - DBa) and 8 bits of low order play start address indicates a RAM address at address. The upper 4 bits of high order which the data displayed at the top left end address are ignored. on the screen is stored. In the graphic mode, Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DBl DBO Instruction reg. 0 1 0 0 0 0 1 0 0 0 Display start address reg. 0 0 (Start low order address) binary (low order byte) HITACHI Hitacni America, Ltd.· Hitacni Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819. (415) 589-8300 433 HD61830 Set display start high order address I",negist6i . I n/yv I nil'" I "'n""t I "I\AI I I I I I I ueu , n~ LID I LI 0 LIDO LID..... LID.;) LID" LJD I Instruction reg. 0 , 0 I 0 I 0 I 0 I , I 0 I 0 I Display start address reg. 0 0 (Start high order address) binary (high order byte) 7. Set cursor address (low order) (RAM address (8 bits) and the high-order address (8 write low order address) bits). Satisfy the following requirements set- ting the cursor address (table 2). Cause cursor addresses to be written in the cursor address counters. The cursor address The cursor address counter is a lS-bit up- indicates and address for sending or receiv- counter with set and reset functions. When ing display data and character codes to or bit N changes from 1 to 0, bit N + 1 is in- from the RAM. clemented by 1. When setting the low order address, the LSB (bit 1) of the. high order That is, data at the address specified by the address is inclemented by 1 if the MSB (bit 8) cursor address are read/written. In the char- of the low order address changes from 1 to O. acter mode, the cursor is displayed at the Therefore, set both the low order address and character specified by the cursor address. the high order address as shown in the table 2. A cursor address consists of the low-order Register R/W RS DB7 DBS DBS DB4 DB3 DB2 DB' DBO Instruction reg. 0 , 0 0 0 0 , 0 , 0 Cursor address counter 0 0 (Cursor low order address) binary (low order byte) Set cursor address (high order) (RAM write high order address) Register R/W RS DB7 DB6 DBS DB4 DB3 DB2 DB' DBO Instruction reg. 0 , 0 0 0 0 , 0 , , Cursor address counter 0 0 (Cursor high order address) binary (high order byte) Table 2 Cursor Address Setting Condition Requirement When you want to rewrite (set) both the low order Set the low order address and then set the high address and the high order address. order address. When you want to rewrite only the low order Don't fail to set the high order address again after address. setting the low order address. When you want to rewrite only the high order Set the high order address. You don't have to set address. the low order address again. HITACHI 434 Hitachi America, Ltd.· Hitachi Plaza. 2000 Sierra Point Pkwy.• Brisbane, CA 94005-1819· (415) 589-8300 HD61830 8. Write display data register. This data is transferred to the RAM After the code $"OC" is written into the specified by the cursor address as display instruction register with RS = 1, 8-bit data data or character code. The cursor address is with RS = 0 should be written into the data increased by 1 after this operation. Register R/W RS DB7 DBS DB5 DB4 DB3 DB2 DBl DBO Instruction reg. 0 1 0 0 0 0 1 1 0 0 RAM 0 0 MSB (pattern data, character code) LSB 9. Read display data and then transfers RAM data specified by the Data can be read from the RAM with RS = 0 cursor address .to the data output register, after writing code $"OD" into the instruction also increasing the cursor address by 1. After register. Figure 1 shows the read procedure. setting the cursor address, correct data is not output at the first read but at the second one. This instruction outputs the contents of data Thus, make one dummy read when reading output register on the data bus (DBO to DB7) data after setting the cursor address. Register R/W RS DB7 DBS DB5 DB4 DB3 DB2 DBl DBO Instruction reg. 0 1 0 0 0 0 1 1 0 1 RAM 1 0 MBS (pattern data, character code) LSB CS~~ __________________________________________ E DB Busy Cursor Cursor B_ Curaor Curaor B_ Oata Dummy Busy N Busy N + 1 ~k add.... low check addraaa high check. read read check add.... check add.... lOt ordor set ordor mode data data mode add.... mod. add.... read read write write Cursor N N+l N+2 IN+3 address . Data output register Figure 1 Read Procedure HITACHI Hitachi America, Ltd. • Hitachi Plaza· 2000 Sierra Point Pkwy: • Brisbane, CA 94005-1819 • (415) 589-8300 435 HD61830 10. Clear bit . by cursor address. After the execution of the instruction, the cursor address is automati- The clear/set bit instruction sets 1 Olt m a cally increased by 1. NB is a value from 1 to 8. byte of display data RAM to 0 or 1, respec- NB = 1 and NB = 8 indicates LSB and MSB, tively. The position of the bit in a byte is respectively. specified by NB and RAM address is specified Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DBl DBO Instruction reg. 0 1 0 0 0 0 1 1 1 0 Bit clear reg. 0 0 0 0 0 0 0 (NB - 1) binary Set bit Register R/W RS DB7 DB6 DB5 DB4 DB3 DB2 DBl DBO Instruction reg. 0 1 0 0 0 0 1 1 1 1 Bit set reg. 0 0 0 0 0 0 0 (NB - 1) binary 11. Read busy flag the busy flag is O. When data is written in the When the read mode is set with RS = 1, the register (RS = 1), no busy flag changes. Thus, busy flag is output to DB7. The busy flag is set no busy flag check is required just after the to 1 during the execution of any of the other write operation into the instruction register instructions. After the execution, it is set to O. with RS = 1. The next instruction can be accepted. No instruction can be acceped when busy flag = The busy flag can be read without specifying 1. Before executing an instruction or writing any instruction register. data, perform a busy flag check to make sure Register R/W RS DB7 DB6 I DB5 I DB4 I DB3 I DB2 I DBl lOBO Busy flag 1 1 I/O HITACHI 436 Hitachi America, Ltd .• Hitachi Plaza • 2000 Sierra Point Pkwy.• Brisbane, CA 94005-1819 • (415) 589-8300 HD61830 t---------HN (digit)--------! Symbol Nama Meaning Value H~ Horizontal character pitch Horizontal character pitch 6 to 8 dots HN Number of horizontal Number of horizountal characters per line (number 2 to 128 digits characters of digits) in the character mode or number of bytes (an even num- per line in the graphic mode. ber) Vp Vertical character pitch Vertical character pitch 1 to 16 dots Cp Cursor position Line number on which the cursor can be. displayed 1 to 16 lines Nx Number of time divisions Inverse of display duty ratio 1 to 128 lines Note: If the number of vertical dots on the screen is m, and the number of horizontal dots is n, 1/m = 1/Nx = display duty ratio n = Hp x HN, m/Vp = Number of display lines Cp :ii Vp Figure 2 Display Variables HITACHI Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 437 .". c..> Display Data Liquid Crystal ....c :I: - ex> Display Mode from MPU RAM Display Panel 1ft '0 tJ :J: m ~ s: n =-> Character display Character code (8 bits) .. C -= 00 c.u 3 CD ::l. n b7 be bs b4 b 3 b2 b, bo ,, .,, ,, ,,, ,, , I I I I I I I I I I I I I I I A B C f CD o P' , , , , ,, I I I a I I , I I I I I I I I I I I I I I I I I I :J: s= 0111010101 0 10 11 n Start ~ 011101010101 110 =- -c address , , I I I I I ,, , , , I I t I I I I ;;; I I I I I I N .. D> I I I I • , .,, . I I I I I I I I I N I I I I Hp : 6, 7, or 8 dots 0 I I I I I I 0 I 0 en iii' ;a :I ~ ~ -c 0 a -c 0 Graphic Display pattern ~ :I . (8 bits) bo b7 1 Hp CP ::l. b 7 b 6 b s b 4 b 3 b 2 b, bo I en 0- , . , , ,,, ,, ,, ,,, D> I I I I ~ I 1 I I 51> I I I , ,, ,,, , , , , ,, I I I .. (") > -- I I I I I I I 'R 0 I I , , I I I I I 8 dots 8 dots 0 'i;. Start 011101110111 0 11 ~ address 111111111J11111 , , , , , <0 , I , I I I I I I , ~ ~ I I , I I I I I I I I I I I I I 01 ex> <0 I I I i I I . I I I ~ I I I I Hp : 8 dots Co c..> 0 0 HD61830 Internal Character Generator Patterns and Character Codes HITACHI Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane,CA 94005-1819· (415) 589-8300 439 .". ~ :r:0 - .". 0 'tS en :J: n ~ (X) Sf I» n ~ H061830 ::. 0 w 0 H06800 ~ ::s CD I OE~ L WE OE t!- r RS WE :::I. n J" Ao A12 MAo L...." WE Ao RAM(1) Ao RAM(2) 0 ~ I-- !:: I I HM6116 r-..- I HM6116 f-r- t~ !=>- A'3 AlQ _ CS MAIO AlQ • :J: s= A'4 A,s CS t CS T ...~ n ~ VMA OBo MA" .... ... CD Do MA'2 -0 6r N I S I MA'4 f · Ilo I» 07 OB7 N MA'5 j---. !' 0 t/>2 E MOo 0 I.zJ 0 en CD· R/W R/W I M0 7 -v. A 3 -AlQ "9 ; ~ J: Ao- A 2 iil ROo a 0~ A Do -0 ..., e. ~Fi 0 I I ROM R07 07 HN462716 CE -0 C'l .f J:- 01 01 p · CD :::I. en Open: SYNC FlM MB Cll FlM MB Cll C'l ::r cr I» ::::I CPO Cl2 Cl2 ~ I» :0 C") » Vcc - RES 02 MA f-- Open 02 LCD Module lM 200 ... n <0 .". R C CR +5V GNO ...CD 0 I'Ij 0 -5V l,~C1 ':!;. 0 ~ <0 +5V Y ,Vo ... ::s CO GNO ~ X ~ U1 00 cp 00 c.> 0 -5V - CO 0 HD61830 Application 2 (Graphic Mode) 1----------·------81 - NI r-- - :2 I I - ... :J: :J: ....I g C> C> :; ... :; I iI -.. 0 :J: 0 :J: - I I I I I I I I I I I I I I I I I I I I I I I I I I 0 I I I (J I I oJ I I I I I :J: g :J: C> C> f-o ...:; :; ...0 I- r-- I , t- :J:o '-r-- '--r- :J: I- ~ .e>- ~ I I--- :;: ~!.C il u "> I-- I, HOOltt OH I ~ r- ~H· ~ .f g:.a I, f r ~r-- L---- I---- ~-------- t - - - - - -- t- I -I- H~ ~:2 u~ 0 Z 5" 5" LO LO C) ~ a:i C I ~N 00 d :2 I~ ~ ~ w o _ ... • 0 ~~ ~ e co 1: « I . :2 I 0 :2 «a:: .~ ~ co C/l 0 :2 ~ 8 :2:2 0 :2 ~ u ... III 0 I wa:: ~ I~~I~ 0 III 0 8 :8:;) OD.. :r::2 HITACHI Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 441 HD61830 Configuration Examples Graphic Mode Liquid crystal display module Character Mode (1) (Internal Character Generator) Liquid crystal display module Character Mode (2) (External Character Generator) liquid crystai display module Parallel Operation Liquid crystal Liquid crystal display module (1) display module (2) Driving both of two module by same common signal HITACHI 442 Hitachi America, Ltd.· Hitachi Plaza· 2000 Sierra Point Pkwy.· Brisbane, CA 94005-1819· (415) 589-8300 HD61830B------------ LCTC (LCD liming Controller) Description Pin Arrangement The HD61830B is a dot matrix liquid crystal graphic display controller LSI that stores the display data sent from an 8-bit microcontrol- ler in the external RAM to generate dot matrix liquid crystal driving signals. It has a graphic mode in which 1-bit data in the external RAM' corresponds to the on/off state of 1 dot on liquid crystal display and a character mode in which characters are dis- played by storing character codes in the external RAM and developing them into the dot patterns with the internal character generator ROM. Both modes can be provided for various applications. The HD61830B is produced by the CMOS process. Thus, combined with a CMOS mi- crocontroller it can complete a liquid crystal ... N N N N N display device with lower power dissipation. (Top View) (FP-60) Features • Dot matrix liquid crystal graphic display controller • Display control capacity -Graphic mode: 512k dots (216 bytes) -Character mode: 4096 characters (212 characters) • Internal character generator ROM: 7360 bits -160 types of 5 x 7 dot characters -32 types of 5 x 11 dot characters Total 192 characters -Can be extended to 256 characters (4k bytes max.) by external ROM • Interfaces to 8-bit MPU • Display duty cycle (Can be selected by a program) Static to 1/128 duty cycle • Various instruction functions -Scroll, Cursor on/off/blink, Character blink, Bit manipulation • Display method: Selectable A or B types • Operating frequency: 2.4 MHz • Low power dissipation • Power supply: Single +5 V ± 10% • CMOS process • Package: 60-pin plastic OFP (FP-60) HITACHI Hitachi America, Ltd.' Hitachi Plaza' 2000 Sierra Point Pkwy.' Brisbane, CA 94005-1819' (415) 589-8300 443 .... ........ g :r:mt1 b:I ::c II;" ~ s= (') 2: » SYNC Cl, MA MB FlM CE ...tj oW ID Q) 3CD :::!. 'a OJ Fl !:; B !"'- RAM II I 8 ::c ;::;: '"2: (') DB o - DB 7 iSS II IIi ,._J~~:=MD7 *' , I -0 J1 ~ • RS R/W I ~ 1 Extended I L -f external I N 0 RES 6 ! i _. i L ROM I 0 0 --r---~ en I CD' I iil :I Mode I a 0~ -1-----...1 ~ control RDo-RD7 regis- ter -0 g-m .- ~ :I c: c: (MCR) 00l U'(ij 2;' • D, c;;' er '" ::I 5" C") 1---+--~D2 » .... 0 0 '!:. Cl2 CR ~ ::: *When extended external ROM is used, MAo -MA I1 are applied to RAM, MA'2-MA'5 are applied to extended ~ 0"1 00 external ROM. do w 0 0