OKI Semiconductor MSM6262-xx DOT MATRIX LCD CONTROLLER WITH 48-DOT COMMON DRIVER GENERAL DESCRIPTION The MSM6262-xx is a dot matrix LCD controller which is fabricated by OKI's low power consumption CMOS silicon gate technology. In combination with 8-bit microcontroller, the MSM6262-xx can control the dot matrix character type LCD module. The MSM6262-xx consists of 48-dot common driver, display data RAM, character generator RAM, character generator ROM and control circuit. The MSM6262-xx is provided with an serial data transfer output. So, maximum of 160 characters can be controlled by MSM6262-xx by using together with the MSM5259,the MSM5839C or the MSM5260. FEATURES Easy interface with 8-bit microprocessor or 8-bit microcontroller * Dot matrix LCD controller /48-dot driver for three different font configuration (5x7 dots, 5x 11 dots and 5 x 12 dots) Max. 160 characters can be controlled Display RAM ... 160 x 9-bit * On-chip character generator ROM (CGROM) for 256 different characters 5x 7 dots... 128 characters 5x11 dots... 96 characters 5x12 dots... 32 characters * On-chip character generator RAM (CGRAM) of 32 x 8-bit for 2-different character fonts 5x 8dots.. 4 kinds 5x12dots... 2 kinds Under-line function Shift function for g, i, p,q and y Selectable driving duty Duty Font Configuration (dot) Cursor Display (Characters x line) 1/16 5x 7(5x 8) o 80x2 1/24 5x11 (5x 12) oO 80 x2 1/32 5x 7(5x 8) oO 40x4 1/48 5x 11 (5x 12) O 40x4 * Package 80-pin plastic QFP (QFP80-P-1420-BK) (Product name : MSM6262-xxGS-BK) 362M 6724240 0023261 533MSM6262-xx OKI Semiconductor BLOCK DIAGRAM 1d Asna NO bASNa 8PINOD - LWOD o+4 er 4a avor dd ~ | aaoa SA 00 oes JOUBAUOS [BLAS / ||BLg HAY ve (wyyaa) $0 Wid eyep Aedsiq _ 5 + salias Qg/sallas 99 f epoaepl*7 aa von} 6 ually ? Lisid Fonaysuy Loniysuj 8 bs | | ~= 080 L Joyeseue Guywiy | (90) Jalunos ssazppy +_~ 2980 ~Z7 b0S0 o 1, 363 ME 6724240 0023262 47TMSM6262-xx OKI Semiconductor INPUT AND OUTPUT CONFIGURATION Input pin Voo To the inside of the device Applicable pin; OSC1, 68 series/80 series, CS R/W (WR), E (RD) AO, Al Vop Voo To the inside of the device Applicable pin; RESET input /Out put pin From the inside of the device To the inside of the device Applicable pin; OSC2, OSC3 Voo Vp To the inside of of the device Vbo j [~ From the inside of the device Applicable pin; DBO - DB7 364 MB 6724240 0023263 JObOKI Semiconductor MSM6262-xx Output pin From the inside of the device Applicable pin; CP, LOAD, DF, DO, BUSY1 OUT, BUSY2 OUT MP 6724240 0023264 242 mm a A aMSM6262-xx OKI Semiconductor PIN CONFIGURATION (TOP VIEW) SESIYSSSRSSRSBRSR SBSES522 22222222222 8888888 S8S8S88ESES8S8 SPIRE elel IRIE ell is [sll] com46 [7 [64] COM 29 com 47 [2] [63] COM 28 com 48 [3] [62] COM 27 Vss (GND) [_4] [61] COM 26 osci [4] [60] COM 25 oscz [3] [58] COM 24 0sc3 [7 [58] COM 23 TEST1 [Bl [57] COM 22 Test2 [9] (56] COM 21 TESTS [10 155} COM 20 RESET [ti! [54] COM 19 68 series/80 series [12] 53] COM 18 ts G3 [52] COM 17 E(RD) [74] [si] COM 16 RAV (WA) [5 [50] COM 15 AQ [49] COM 14 Al G7] [48] COM 13 peo [78] [47] COM 12 pBt Lg] [46] COM 11 DB2 [BO [45] COM 10 be3 [21] [aa] COM 9 pB4 [22| 143] COM 8 pps [23] C [42] COM 7 ope [24] [41] COM 6 FERRER EBB BESSSSR E5585 5272 = 8888s BUSY 1 OU 80-Pin Plastic QFP 366 Me 6724240 002e32bS 165OKI Semiconductor MSM6262-xx PIN DESCRIPTIONS Symbol Type Description OSC1 v0 Oscillation connection pins 0SC2, OSC3 RESET | Reset pin 68 series/80 series I Selection pin for either 68 series CPU or 80 series CPU cs | Chip select pin. By setting CS at L" level, MSM6262-xx iS Set at selecting condition. RW (WR) | RW pin of 68 series CPU shall be connected to this pin, while WR pin shall be connected to this pin in case of 80 series CPU. E (RD) I E pin of 68 series CPU shall be connected to this pin, while RD pin shall be connected to this pin in case of 80 series CPU. AO, Ai | The address bus of CPU shall be connected to these pins. Instruction code is set by these pins. DBO - DB7 V0 The data bus of CPU shall be connected to these pins. These pins are used to set the data of the instruction or to read the data. TESTI - TEST3 Test pins. Normally these pins should be set at Vs or open. Von. Vss _ Voltage supply pins. Vpp is also used for the common bias voltage level to drive the LCD. V1, V4, V5 _ Common bias voltage input pins to drive the LCD DO 0 Seriai data output pin for SEGMENT drivers CP 0 Clock pulse output pin. The clock output from this pin enables the character pattern data, which is output from DO, to input to the SEGMENT drivers. LOAD 0 Load signal output pin. The character pattern data to the SEGMENT drivers, which was output from DO and CP, is loaded to the LCD output of the SEGMENT drivers, synchronized with the COMMON signal, DF 0 B-type AC signal output pin to drive the LCD COM1 - COM48 0 COMMON signal output pins to drive the LCD BUSY1 OUT 0 This pin shows the internal condition of MSM6262-xx. "H' shows that MSM6262-xx is in internal operation, while "L" shows that MSM6262-xx is ready to receive the instruction from the CPU. BUSY2 OUT 0 This pin shows that MSM6262-xx is in internal operation based on the instruction from the CPU, or MSM6262-xx is in display revising operation based on the instruction from the CPU. "H' shows that MSM6262-xx is in internal operation, while "L" shows that the display on the LCD has been established and the MSM6262-xx is ready to receive an instruction. ME 6724240 0023266 015 367 TN &oUOE oc cc e qc "i ttt! #!_ eeMSMG6262-xx OKI Semiconductor ABSOLUTE MAXIMUM RATINGS Parameter Symbol Condition Rating Unit Applicable Pin Supply Voltage Vpp Ta = 26C -0.3 to +7.0 V Vop - Vss Supply Voltage Vop - 12 to for Driving LCD Via Ta= 25C Vop + 0.3 v Vials osc RESET 68 series / 80 Input Volt V Ta = 25C 0.3 to Vpp + 0.3 V series nput Voltage IN as -0.3 to Vpp + 0. TS,A0.At RW (WR) E (RD) DBO - DB7 Power Dissipation Pp Ta = 25C 500 mW _ Storage Temper- ature Tste _ 55 to +125 _ RECOMMENDED OPERATING CONDITOINS Parameter Symbol Condition Range Unit Applicable Pin Supply Voltage Vpp - 451055 Vv Vpp - GND 1/45 bias 3.0 to 11 V LCD - Driving Voltage oy 1/6, 1/7 bias 4.0 to 11 V Von - Vs 1/8 bias 45 to it V Operating Temperature Top = -20 to +75 C Note: Refer to *3 in the section, DC Characteristics, concerning bias. 368 Me 6724240 0023267 TS)OKI Semiconductor MSM6262-xx ELECTRICAL CHARACTERISTICS (Von = 4.5 to 5.5V , Ta = -20 to +75C) DC Characteristics Parameter Symbol Condition Min. Typ. | Max. | Unit | Applicable Pin oe _ _ CS, R/W (WR) H" Input Voltage Vins 2.2 Voo V E (RO), AO.AI "L" Input Voltage Vict ome -0.3 0.7 V DBO - DB7 'H Output Voltage Vou 1o = -250pA 24 _ _ V DBO - DB7 "L" Output Voltage Voit Ip = 1.8mA _ 0.4 V "H" Input Voltage Vine _ Vpp-0.8 | Voo V Ci "L" Input Voltage Vite _ -0.3 _ 0.8 V 68series/80series "H" Output Voltage Vone Ip = -500pA 0.85Vpp | _ V DO,LOAD, "L' Output Voltage | Vows lo = SOOpA |015Vpp) Vv | DF "H Output Voltage | Von lo =-1mA 0.85Vpo | _ V cP L" Output Voltage Vos lo= 1mA _ |0.15Vpp H" Output Voltage Vona lo = -100A 2.4 _ _ V BUSY1 OUT L Output Voltage | Vou io = 1.6mA _ | 04 | v_ | BUSY2 OUT COM Voltage Drop | Vcom | to=+50vA ') | | 29 | v | comt-conas "H | Vine V _ 1 A | CSR/W (WR) H* Input Current 1LH1 In = Vo I E (RD AAT "L" Input Current hu Vin = Vsg _- _ 1 HA pt 68 Series/ Vop = 5V, *2 Ipp1 fosc = S00kHz _ _ 1.6 mA Current RC oscillator Consumption Voo=5V.*2 Vop lppe fin = 500kHz | 15 | mA | external oscillator +3| bias | 30 | | 11 V LCD Drivin 16~1/7 Voltage Vico | pp-Vsi pias 4.0 |} Wey Vio] Va. Va Vs 1/8 bias 45 _ 11 "H Input Current HLH Vin = Vop = 2 pA RESET "L' Input Current lie Vin = Vss,Vpp = 5V 8 -20 | -60 pA I. This is applicable to the voltage drop which is caused between Vpp, V1, V4, V3and COM1 ~COM48 when a current of 501A is flowed in/out to/from all of COM1 - COM48. (When the output level is either Vpp or Vj, it should be applied only when the current flows in. When the output level is either V4 or V3, it should be applied only when the current flows in. In this case, +5V is applied to Vpp and Vj, while -6V is applied to V4 and V3.) *2. This is applicable to the current which flows in to Vpp under following conditions. Vop = 5V, Vgg = OV, Vi = 2.8V, V4 = -3.8V, V5 = -6V, No load, No interface with CPU *3. V1 to V5 should be set at as follows. 369 M@ 6724240 00232b8 998 a aMSM6262-xx OKI Semiconductor ug ot ms 2 lines 4 lines Terminal Queation 5x8 5x12 5x8 5x12 1 V4 Vop - + Vico Vpp - + Vico Von - + Vico Vo ~~ Vico 7 V4 Vp0 - 4 Vico Von - 5 Vico Vpn - $ Vico Vop - -> Vico 5 6 7 8 V5 Vop - Vicp Vpp - Vico Vpp - Vico Vop - Vico Vicp = LCD driving vottage AC Characteristics (Vpp = 4.5 to 5.5V,, Ta = -20 to +75C) Parameter Symbol Condition Min. Typ. | Max. | Unit | Applicable Pin Input Frequency fin *1,*2) 300 500 | 700 kHz Input Clock Duty fouty *2) 45 50 55 % Input Clock Fall . osci Time tr 2 _ _ 100 ns Input Clock Fall . Time tt 2 _ _ 100 ns RC Oscillation . Frequency for 3} 300 | 500 | 700 | kHz | OSC1,2,3 H" input Current | Vin=V _ ~ 1 A p ILH3 a i Yu DBO - DB7 "L" Input Current | Is Voo = 5V 45 | -120 | -250 | pA *] 3 Open 4 0503 ee Osc3 Open + sce Ry = 39k + 5% Ry osce Cy = 22pF + 10% WN (Keep the wiring from 0SC1, 0SC2, and osc OSC3 to Ry and Cy as short as possible.) C Oscillation source OSC1 | . Ty 0, toy pg Te * 1% 370 MB 4724240 0023269 62chOKI Semiconductor MSM6262-xx TIMING DIAGRAM Interface with 80 Series CPU (Von = 4.5 to 5.5V, Ta = -20 to +75C) Parameter Symbol Min. Max. Unit Address Set-up Time tsai 110 _ ns CS Set-up Time tsag 100 ns WR'L" Pulse Width twwr 320 ns RD 'L" Pulse Width twrp 320 _ ns WR, RD 'H" Pulse Width twH 210 _ ns Address Hold Time tHat 25 _ ns CS Hold Time thag 25 = ns Data Set-up Time tswo 300 ns Data Hold Time (Write operation) tywo 20 ns WR, RO Fall Time tt - 25 ns WR, RD Rise Time ty = 25 ns Data Delay Time {sap _ 190 ns Data Hold Time (Read operation) tuRD 0 _ ns Busy Output Delay Time ten _ 410 ns 371 Mi 6724240 0023270 Sub aMSM6262-xx OKI Semiconductor Write operation AOA f WH tsa1 tat es Vit VIL igap | twwr tyaa (WR) | ~ Rw Yt a vit i tt the tswo tuwo 080 - 087 ut Valid data ue x tgp BUSY 1 OUT, BUSY 2 OUT - Vou Read operation oat UE iE tsat tHat ts Vir *K Vit tsap | fwep 1 | tHA2 twr E (RD) _ 1 WE Vi tf lee tr sro tuao DBO - DB? i Valid data vor Refer to the chapter of DC characteristics for the definition of Vi, ViL. Vou and VoL. 372 MB 6724240 0023271 44cOKI Semiconductor MSM6262-xx interface with Z80 280 MSM 6262-xx Vss | 68 series/80 series RD - > ERD) WR ) >_ Rw ar) TORO Ag - Ats Address * tS Decoder * AO, Al DBo - DB DBO - DB? * Pull-up resistors of 50 k are required when the output of CPU becomes high impedance. 373 ME 6724240 0023272 315 AESE-'CTCSCiCi(i( DB, Ra XE DBs Ts = DB Ro XX * NOX X__DRe > DB Ry >= OX DBo a a DRX USY1 a Internal peration) ter Internal peration} Write an instruction (IR) Read the busy flag Write the data register (RD) *: Don't care MEL? 242uQ 00e3290 334 mm ~ aMSM6262-xx OKI Semiconductor 68 series CPU data transfer E (RD) /N J \ [\ [_ RWWWRym______~___.s MW At af Nt A NO BUSY1 DBy XR Busy! DRy NO BUSY2 DBs < _ Re BUSY? DRe DBs X_IRs x1 _X DB, xR XOX WD X_X_DRa_ > DBs X_IRs ) a < SX _DRs_> DBy < _IRe xX A/0 DR2 DB IR xX DBo Ro XX xX CUD <___X_DRo_> USY1 a Internal peration) USY2 Internal peration) Write an instruction (IR) Read the busy flag Write the data register (RD) *: Don't care 392 - ME 6724240 0023291 270OKI Semiconductor MSM6262-xx Instruction Table Note 1: In case of 80 series CPU, access to MSM6262-xx is done by WR and RD. So, a bit for part of the read/write code is not required * : DON'T CARE Nott a DB; | 0B, | OB, | OB,| DB; | OB,; DB, | 0B Execution tes Op 1 . a Z $ 3 2 : : Explanation Time (MAX) RW} A, Ay | DB, | OB, | DB, | DB, | OB, | DB, | DB, DA, tosc - 500kHz Display Clear L L L L L L L L L L H lear all ol the display. and set Gacldress of DD HAM in the address 3.22ms counter. Return L L L L L L L L L H | CRIC CRIC = L; Cursor home 1.62ms CRA arriage Return : Under Line L L L L L L L L H UL * UL = 1; Write the underline in the cursor part before executing this instruction. 20us UL = 0; Erase the underline in the. ht cursor part before executing this instruction (S) set whether the Entry Mode Set L L L L L L L H Vo 5 AO diy of the direction of eursor {UD} should be shifted or not. When the data is being written or rad, this operation 20ps is performed. This instruction also set whethar the Character code of DD RAM is used as OG ROM or CG RAM.(A/0} OisplayCursor Shift | L | t FL tk fu feu ut se furl & Io, This instruction shift the cursor and play! AL (ue) GS displa y without chat ging th 20ps DL contants. (S/C, DAL devoL) This instruction set the CG RAM CG RAM address Set L t L L L 4 Ay address. The dara, which will be sent/ 20s S received after the ce RAM address is _sat, is AM dal i L L L N * * This instruction ral followings. Function Set t 4 Fy fe Fr No. ol lines (N). Character toni 20us (F,). Cursor line font (F,), Font shift " of gi pay (Fs) Diaplay Control * . This instruction sat lay t t L H p c 8 uc UB Al al dsp on/olt Hi. tare? tisplay Char. ae on the curs 20ys postion ol onotf ), dering display or ne bacon on/off (UB) ~ CORRWDD RAM t T H WRITE DATA Wie 3 data in either DD RAM or 20ys DD RAM Address cfu le Set DD RAM address. Set Ano The data which is sant/received alter 20ys that is DD RAM data, Read the Under- H L Lf ULD Read following data, lined Data READ DATA Data on the underline, OD RAM or 20s CG RAM data. Read the CG RAM # L H Read the data either from DD RAM DD RAM Data READ DATA Read 20) Read the Address H H L Bog Read ie wae counter contents us Counter Content M FI H H [| BIF | BF] CG | VD 5S | AO] D UD Busy 1 flag (BiF) which shows Read Busy Flag q DO WSMG ae $ intemal operation Busy 2 tiag (B2F} which shows that the Fewsing of display starting ling is ets ID shows whether the data, being transmitted or received. is CG RAM of DD RAM. Ops WD shows the direction ol cursor. S shows the display shift VO shows when the DD RAM charac- ter code is CG RAM character code or CG RAM character cade D shows the all display on/off UD shows underine display onvoft CRC =H : Carnage Return CR/C=L - Cursor home DO RAM : Display data RAM in case of UL=sH Write tinder ling ULel : Underling erase CG RAM: Character generator fosc = yo ay : fon display shit Wel: Decrement RAM d 600 kHz. = : Accompany display shift address. 2 MO-. - CGROMENABLE NO=H CORAM ENABLE xe - DD RAM address it becomes S=H : Biapiey move SCL: Cursor move Ade Address counter which 0 500 UD/RL H: Up/Down move UD/AL = L Lelv/Right move 1s used for both DD 20usxea 0,.0, : ire bitto se the ling to be displayed in the upper-most position RAM and CG RAM D, 1s LSB. 0, is MSB = 16.7ps prot =H yipper. fight move UROL = L. Down-lefl move N H 4 tines Fy =H. 5x11 dots Fy=L : 5x7 dow Feel :5x12dotsor5x 8 dots f =R x 11 dots or 5x7 dots Fy eH: Shiltg.j.p. a. y'tolne FS =L : Character shitt disable Sower position by 1-dot ULD=H : Underline data exist ULD=L_ : No undertine data BIF=H Intemal operation BiF=L Ready to receive instruction B2F=H . Revising the display starting B2F=L :No revision on display fine or internal operation Starting lin CG/DD =H. Transmit or receive CG RAM CG/DD aL: Transinil/Receive of DD RAM _fata_ data MB 6724240 0023292 107 os a ae aMSM6262-xx OKI Semiconductor 12. Instruction Code The instruction code is defined as the signal through which the MSM6262-xx is accessed by the CPU. MSM6262-xx starts its operation upon receipt of the instruction code. The internal processing operation starts with a timing that does not affect the LCD display, so, the busy condition is longer than that of cycle time. In the busy condition, MSM6262-xx does not execute any instruction other than the reading of busy flag. Therefore, the CPU has to verify that busy flag is set at "L" before inputting the instruction code. (1) Display clear A; Ao DBy DBg DBs DBs DB3 DBs DB; DBo Instruction instruction Ta Ti [i Tt Tee [itr te] When this instruction is executed, the LCD display is cleared. When the cursor and blink is being displayed, the blinking position moves to the left end of the LCD. (In case of 2-line or 4-line display mode, it moves to the left end of the first line) All of the DD RAM data becomes "20" (hex), space code, while ADC data becomes "00" (hex.). If display is shifted, it returns to the normal position. Data for underline is re-written as "L" and display turns off. (2) Return e CR/C =L (Cursor Home) A; Ag ODB7 DBg O85 DBy DB3 DBs DB, D8 Instruction ae Fefefefetetule fe fa [ere] When this instruction is executed, cursor and blinking position moves to the left end of the LCD. (In case of 2-line or 4-line display mode, it moves to the left end of the first line) When display is being shifted, the display returns to its original position for both parallely and vertically. ADC becomes "00" (hex.). * CR/C =H (Carriage Return) When this instruction is executed, cursor and blinking position moves to the left end of the line. Ifthe display is being shifted when this instruction was executed, only cursor and blinking position moves to the original position before it was shifted. All bit other than line specifying the bit of ADC will be reset to "00". 394 ME 6724240 9023293 043OKI Semiconductor MSM6262-xx (3) Underline A; Ao OB; DBg DBs DB, DB3 DBo DB; DBo Instruction iia Litctetetetey atu ful. | *: Don't care UL=H (Write underline) When this instruction is executed, the underline appears on the cursor position. Cursor will move to the reght or left if either increment or decrement is specified. UL=L (Erase underline) When this instruction is executed, the underline on the cursor position disappears. Cursor will move to the right or left if either increment or decrement is specified. When this instruction is executed, ADC will be automatically incremented by +1 or decremented by -1. Display is shifted accordingly. (4) Entry mode set Ao DB7 DBg DBs DBg DB3 DB2 DB, DBp Ay struction (tL Ti [te Ti [tl[t [x [mls [ao] I/D (ncrement/Decrement) When this instruction is executed, DD RAM address will be incremented (1/D = "H") or decremented (I/D ="L") by 1, after the character code or underline code is written into (or read out from) the DD RAM. In case of increment, cursor moves to the right, while the cursor moves to the left in case of decrement. It is same in case of writing /reading the data into/from CG RAM. * S (Display shift in case of writing) When S = "H" in case of writing data into DD RAM, display is shifted either to the right or left. When I/D = "H", all display will shift to the left, while it will shift to the right when I/ D="L". So, display of cursor looks being stopped and display itself looks being shifted. In case of reading the data from DD RAM, display shall not be shifted. In case of reading / writing the data from/to CG RAM, display shall not be shifted. In case of S = "L", display shall not be shifted. A/O(CG RAM ENABL/CG ROM ENABLE) When A/O is "L",CG ROM will be enabled, and all CG ROM contets on Table 2 becomes selectable and CG RAM cannot be selected. CG RAM cannot be used as character code for display. But it can be used as data RAM. When A/O ="H", CG RAM is enabled. In case the upper 4-bit of the character code in Table 2 is "00" (hex.), the bit pattern of CG RAM is displayed on the LCD. (CG RAM has a RAM area for 4 kinds of 5 x 8 dots and 2 kinds of 5 x 12 dots) CG ROMis selected when the upper 4-bit of the character code in Table? is "01" -"OF" (hex.). M 6724240 0023294 TaT 395 EEE EEE EEEI OOO eeMSM6262-xx OKI Semiconductor (5) Display /Cursor move A; Ao DB7 DBg DBs DB, DB3 DBz DB, DBo ud/ | Pa} Dy L Je] ubuee H } SiC] ar | WR Instruction code *: Don't care * S/C (display move/Corsor move) This is the bit to select either display or crusor to move. S/C = "H" enables the display movement, while $/C = L" enables the cursor movement. * UD/RL (Upward or Downward move/Right or left move) UD/RL = "H" enables upward or downward move. UD/RL = "L" enables right or left move. Dz, D; Starting line of display) Upward or downward movement is enabled by setting the starting line of display. D, is LSB and D, is MSB. Both D, and Dy is expressed in 2-bit binary data. In case of 2-line mode, only Dy is regarded as valid. Both D; and D2 are regarded as valid data in case of 4-line mode. = 2-line mode = DD RAM Do=*,D,="L Display of the LCD 1st line 1st line 2nd line 2nd line ist line 7 {st line 2nd line 2nd line *: Dont care 396 MB 6724240 0023295 WbOKI Semiconductor MSM6262-xx = 4-line mode = DD RAM D2 ="L", Dy ="L" Display of the LCD Ist line Ist line 2nd line 2nd line 3rd line 3rd line 4th line 4th tine Do ="L", Dy ="H" Ist line Ist line 2nd line 2nd line 3rd line 3rd line 4th line 4th line Do = H, Dy ="L" Ist line 1st line 2nd line 2nd line 3rd line 3rd line 4th line 4th line Do = "H, Dy ="H" Ist line Ist line 2nd line 2nd line 3rd line 3rd line 4th line 4th line 7 ME 6724240 00232956 8S2 mm 9 a a a aMSM6262-xx OKI Semiconductor UR/DL (Up-right move/Down-left move) UR/DL ="H" enables up-right movement. UR/DL = "L enables down-left movement. Combination of bit for Display /Cursor movement is as follwes D. sic OAL cu D1 Explanation L L * Move the cursor to the left by 1 digit * Move the cursor to the right by 1 digit * Move the cursor to the downward by 1 digit * Move the cursor to the upward by 1 digit * Move the display to the left by 1 digit Move the display to the right by 1 digit Set the first line as the display starting line Set the 2nd line as the display starting line Set the 3rd line as the display starting line a2 Set the 4th line as the display starting line a2 TrearTAaTtTTet TH TT TH roeoerTTrTaey--r-Ttaa re xzrererere Tree ee se m= T-ascrT * *: Don't care Note: In the case of 2-line mode, 2 is invalid. (6) CG RAM address set instruction At; A-DBr_DBs DBs DBs DBs DB _DB;_DBo code Fo] ete fet [it [x | Aca | Aca | Ace | Act | Aco | Set the CG RAM address which consists of 5-bit of Acq - Aco. The data which will be transferred after this instruction is set shall be limited to the CG RAM data (character font data). 398 MB 6724240 0023297 795OKI Semiconductor MSM6262-xx (7) Function set Ai Ao DB7 DBs DBs DB, DBs DBp DB, DBo Lit{ttr[n]- [AiR] fs | *: Don't care Instruction code N (4line/2-line) LCD line selection LCD lines L 2-line mode 4-line mode F, Gx 11 dots/5 x 7 dots) When F, = "H", 5 x 12 dots/font is selected. When F, = "L", 5 x 8 dots/font is selected. * F) (Font assignment of cursor line) When F) = "L" and if character code, which has a display dot on the cursor position, is selected, it is displayed on the cursor line of LCD. When F, = "H" and if character code, which has a display dot on the cursor position, is selected, cursor is displayed but the bit on the cursor position is not displayed. In case of CG RAM, however, this function is not applicable and the bit on the cursor position is also displayed. Fs (Font shift of "g, j, p,q y") When F3 = "H", the character font of "g, j, p, q, y" is shifted to the downward by 1-bit. When F3 ="L", display is same as that described in Table 2. This bit is only valid in case of 5x 12 dots/font. Example 3 Fy =U (5x 8 dots/font) 5x11 or 5 x 12 dots font ROM 3dots (7 7 dots | Not displayed Cursor position ~~ a / Cursor 5x7 dots font ROM Mi 6724240 0023296 bes 399 Ce LeMSM6262-xx OKI Semiconductor 3. Fy ="H' (5x 12 dots/font) 5x 11 dots 5x7 dots font ROM font ROM 5x 12 dots font ROM Cursor position + Cursor position 4 Fo='L" Fe ~+ Cursor position 5 Fs="t' mt a] hel ~= Cursor position 6 F3="H (5x 12 dots/font only) Lt T (J Ty - Cursor position - Shift downward by 1 dot MB 6724240 0023299 5SblOKI Semiconductor MSM6262-xx (8) Display control Ay Ao DBy DBg DBs DB, DB3 DBy DB, DBo Letetutolc]s fuluy- [| *: Don't care Instruction code D When D = "H", display on the LCD is enabled. When D = "L", display is disabled. When display was disabled by setting D at "L", character code in the DD RAM does not change. So, when D becomes at "H" again, display is enabled immediately. e Cc When C = "H", cursor display appears. When C = "L", cursor display disappears. * B When B ="H", blinking of character, on the position corresponding to the cursor position, starts. Blinking of all-dot's-on and character (and cursor)-on is performed alternately for every 409.6 ms in case of fosc = 500 kHz and 5 x 8 dots font configuration (every 614.4 ms in case of 5 x 12 dots font configuration) When B = "L", blinking stops. Cursor and blinking can be set simultaneously. * UC When UC = "H", underline is displayed on the cursor position. When UC = "L", underline display is disabled. * UB When UB = "H", blinking of character, on the position corresponding to the underline position, starts. Blinking of character stops when UB = L". Cursor, blink, underline and blinking of character on the underline can be set simultaneously. (9) CG RAM and DD RAM data write Ao DBy DBg DBs DBy DBs DBo DB, DBo Ay struction Lt [Th [ov [oe | 0s [ou | ds | de | on | de | Write the 8-bit data (Diz - Dig) into either CG RAM or DD RAM. Determination of either CG RAM or DD RAM is made by the CC RAM address set or DD RAM address set which shall be set in advance. After the data was written into the RAM, it is incremented or decremented by 1 according to the entry mode of the address. Display shift will be also determined by the entry mode. ME 6724240 0023300 003 401 aaaMSM6262-xx OKI Semiconductor (10) DD RAM address set A: Ao DB7 DBs DBs DBs DBs DBo DB, DB msvmuction H | Lt | Az] Aw | Ais | Au | Als | Ale | An | Alo | This instruction code set the DD RAM address, consists of 8-bit (Aj7 to Ajy). The data which is received after this instruction was set shall be limited to the DD RAM data (character code data). The address code other than below shall not be input. 2-line mode : 1st line 00 - 4F 2nd line 80-CF 4-line mode: 1st line 00 - 27 2nd line 40-67 3rd line 80-A7 4thline COQ-E7 (11) Underline data read At Ag DB7 OBg DBs OB, DBs DB2 DB; DBo mssruction L Tt | uo] Dog | Dos | Dog | Dog | Dop | Dor | Doo | This instruction read under line data, and CG RAM or DD RAM data. Determination of CG RAM or DD RAM is made by the CG RAM address set or DD RAM set which shall be set in advance. The first data read by this instruction is a valid data. Normal data is read out from the second instruction onward if the read instruction was executed continuously. This instruction address will be incremented or decremented by 1 according to the entry mode. Display shift is not, however, performed. Underline data is output to DB7 as either H (when display is on) or "L (when display is off). The MSB of RAM data is not read. RAM data consists of 7-bit (DBO to DB6) 402 MB 4724240 0023301 THT amOKI Semiconductor MSM6262-xx (12) CG RAM and DD RAM data read Ay Ag ODB7 OBg DBs DB, DBs DB. DBy OB instruction | t | H | O07 | Dog] Dos | Dog | Dog | Doz | Dor | Doo | This instruction read the 8-bit data (DO7 to DOg) from either CG RAM or DD RAM. Determination of CG RAM or DD RAM is made by the CG RAM address setor DD RAM address set which shall be set in advance. CG RAM address set instruction or DD RAM address set instruction has to be input just before executing this read instruction. If it is not input, the first output of the data becomes invalid. When this read instruction is performed continuously, normal data is output from the 2nd data onward. In case of DD RAM data read, normal data is output from the first data without inputting the address set under the condition that cursor is moved by the cursor shift instruction. After reading the data, the address is incremented or decremented by 1 by the entry mode. The shift of the display, however, is not performed. (13) Address counter read Ar Ag DB7 DBg DBs OB, DBs DBo DB; DBo Instruction [iy TL [ Aor | Ags | Ads | Ady | Ao3 | Ado | Ady | Ado | code This instruction read the 8-bit data (AO7 to AOo) . Adress counter is determined by the address which shall be set in advance as it is used for both CG RAM and DD RAM. (14) Busy flag read Ar Ag D87 DBs DBs DBy DBs DBo DB; DBo Instruction CG/ code H H | BIF | BaF pD VD; | AO} D | UD BIF (Busy 1 flag) When B1F ="H", MSM6262-xx is engaged in internal operation and next instructionis not accepted until when B1F becomes "L.So, subsequent instruction has tobe input after BIF is confirmed at "L". During B1F = "H", DBs to DBy cannot be determined. B2F (Busy 2 flag) B2F indicates that MSM6262-xx is engaged in its internal operation and it also indicates that the display starting line is under being revised. Instruction contents of B1F and B2F are same other than when setting the starting line of display. B2F = "H" indicates that MSM6262-xx is engaged in its internal operation. B2F = "L" indicates that MAM6262-xx is ready for accepting new instruction. Even when B2F ="H", new instruction can be accepted if BIF = "L", When the starting line of display is revised under this condition, the previous set data about starting line of display becomes invalid and the newly input data about starting line becomes valid. 403 WM 6724240 0023302 586 aMSM6262-xx OKI Semiconductor CG/DD (CG RAM/DD RAM) This bit indicates whether the address counter contents are CG RAM or DD RAM when B1F = "L". CG RAM is selected when CG/DD = "H", while DD RAM is selected when CG/DD = "L". I/D (Increment/Decrement) This is the bit toset the increment or decrement when B1F ="L". Incrementis selected when 1/D ="H", while decrement is selected when I/D = "L". S(Ghift) This is the bit to set the shift condition in the entry mode when B1F ="L". Shift is set when S ="H", while shift is disabled when S = "L. A/O (CG RAM ENABLE/CG ROM ENABLE) The bit indicating that the entry mode set is in CG ROM ENABLE or CG RAM state when BIF = "L". CG ROM is selected when A/O = "L" and CG RAM is selected when A/O = "H". D (Display) This is the bit to indicate whether the display, which was set by display control instruction, is on or off when B1F = "L". The display is on when D = "H" and the display is off when D="L". UD (Underline) This is the bit to indicate the condition of underline or blinking on the underline, both of which were set by display control instruction, when BIF = "L". When UD ="H", either (or both of) underline display or blinking on the underline is being executed. When UD = "L", it indicates neither of underline display nor blinking on the underline is performed. (15) Instruction Initialization 1 Power on. 2 Wait for 15 ms or more after Vpp becomes at 4.5 V. 3 No busy 1 check (Check BIF = "L") 4 Set No. of lines, character font by instruction. (After this stage, function set instruction cannot be input.) 5 No BUSY 1 check 6 Set display-off by inputting display control instruction. 7 No BUSY 1 check 8 Input display clear 9 No BUSY 1 check 10 Set entry mode 11 No BUSY 1 check 12 Set following functions. Display on, Cursor, Blink, Underline Blink on the underline 13 No BUSY 1 check 14 Initialization complete MM 6724240 0023303 812OKI Semiconductor MSM6262-xx APPLICATION CIRCUITS * Interface with MSM6262-xx and LCD driver When Vicp is within the voltage range of Vpp to Vcg, MSM5259 is recommendable as SEGMENT driver. When Vi cp is beyond the voltage range of Vpp to Vss, MSM5839C is recommendable as SEGMENT driver. 1 2-line display mode 5x 7 dots, 2 lines x 16 characters (Note: COM17 - COM48 should be left apen) COM16 CoM 7 COM48 MSM6262-xx mt oe D a BO 1 1 cp cp MSMS259 cp MSM5259 DF LOAD LOAD DF Diy, LOAD OF Dio, MB b?e4240 0023504 759 405 a aMSM6262-xx OKI Semiconductor 2 = 2-line display mode 5x11 dots, 2 lines x 16 characters (Note: COM25 - COM48 should be left open) COM24 COM25 I COM48 cursor MSM6262-xx DO cP LOAD Ae Dl, M52 cp MSM5259 LOAD DF cp MSMS5259 LOAD DF DF Dla Diy 406 Me 6724240 0023305 6915OKI Semiconductor MSM6262-xx 3 4-line display mode 5x7 dots, 4 lines x 16 characters (Note: COM33 - COM48 should be left open) LOD cOM1 COM32 COM33 | COM48 MSM6262-xx DO id 7 DI, C Di, P C cp cP MSM58391 cP MSM5839' DF LOAD LOAD DF Dl, LOAD DF DOz Dlay 407 M@m@ 6724240 0023306 Sel aMSM6262-xx OKI Semiconductor 4 4-line display mode 5x 11 dots, 4 lines x 16 characters LCD cOM1 cOM48 MSM6262-xx nd bo MSM5839C MSM5839C cP cP cP LOAD LOAD OF Dloy LOAD DF Dla 408 MB 6724240 0023307 465OKI Semiconductor MSM6262-xx MSM6262-xx, MSM5839C, Bias circuit connection MSM5839C -5V D029 MSM5839C Dl, cP LOAD OF 5V MSM6262-x @ 6724240 0023308 374 409 0 EOMSM6262-xx OKI Semiconductor Example of bias circuit 1/5 - 1/8 bias example 1. Bias | 1/5 | 146 | 1/7 | 1/8 PR R | 2R | 3R | 4R Vico: LCD driving voltage Voo ER V4 Vics R V2 MSM6262-xx RR |. R to segment V4 driver R Vs i Vee r VR 1/5 - 1/8 bias example 2. Bias | 1/5 | 1/6 | 1/7 | 1/8 RR R | 2R | 3R | 4R Vico: LCD driving voltage Vop Ic : R Vy T Vico R C TeV, MSM6262-xx >RR Le J V3 ; lr sR 0 segment V4 To | driver + sR LC Vs Vee > f VR ==C 410 WM 6724240 0023309 230OKI Semiconductor MSM6262-xx LCD duty and bias No. of line 2-line 4-line Duty - | 146 | 1/24 | 1/32 | 1/48 Bias 1/5 1/6 7? | 1/8 Above are examples of relation between LCD duty and bias. Since it is subject to change, it depends on the characteristics of LCD panel, please use above as a reference value. The value of resistor on bias circuit is determined by the operational margin and power consumption. To make the power consumption lower, the value of resistor has to be bigger and this make the LCD driving output resistance high and it causes the distortion on the LCD driving waveform. In case of large LCD panel, the value of the resistor should be much lower as the LCD capacitance increases. To improve the distortion of LCD driving waveform, to connect a bypass capacitor parallely to the bias resistor, can be useful. But to connect a capacitor of too big value causes the level shift of the bias voltage. So, it has to be determined carefully after checking experimentally. Followings are the reference value. R= 2 to 10kQ Vr = 10 to 50kQ r= 0.2 to2kQ c = 0.0022 to 0.047 LF 411 Me 6724240 0023310 T5e a aaa aaMSM6262-xx OKI Semiconductor LCD Driving waveform COM < CON2 SEG < a rr a 1 frame Duty 16 1/24 1832 1/48 Frame frequency | 78,125Hz 2,08Hz | 78,125Hz | 52,08Hz Note: fosc = 500kHz 412M So6724240 002331) 999 om