240320 液晶显示资料
TFT240320-268-E(2.41D)v1.0
SPECIFICATIONRevision: 1.0TFT240320-268-EThis module uses ROHS materialTRULY SEMICONDUCTORS LTD: CUSTOMER: PRODUCT : LCD MODULEMODEL NO. : TFT240320-268-ESUPPLIER : TRULY SEMICONDUCTORS L TD.DATE : May. 10, 2010REVISION RECORDREV NO. REV DATE CONTENTS REMARKS1.0 2010-5-10 First release /CONTENTS■GENERAL INFORMATION■EXTERNAL DIMENSIONS■ABSOLUTE MAXIMUM RATINGS■ELECTRICAL CHARACTERISTICS■BACKLIGHT CHARACTERISTICS■ELECTRO-OPTICAL CHARACTERISTICS■INTERFACE DESCRIPTION■REFERENCE APPLICATION CIRCUIT■RELIABILITY TEST CONDITIONS■INSPECTION CRITERION■PRECAUTIONS FOR USING LCD MODULES■PACKING SPECIFICATION■PRIOR CONSULT MATTER■FACTORY CONTACT INFORMATIONWRITTEN BY CHECKED BY APPROVED BY HUANG YAN XUE SU ZANG ZHENG ZHANG SHU HANGItem of general information Contents Unit LCD type TFT/TRANSMISSIVE / Recommended Viewing Direction 6:00 O’ Clock Module area (W ´ H ´T) 42.72×60.26×2.20 mm3 Viewing area (W´H) 38.32×50.56 mm2 Active area (W´H) 36.72×48.96 mm2 Number of Dots 240RGB×320 /Pixel pitch (W ´ H) 0.153×0.153 mm2 Driver IC S6D04H0 / Interface Type Parallel interface/ SPI+RGB interface /Input voltage 2.8 V Module Power consumption 244 mw Colors 262K / Backlight Type LED /n ABSOLUTE MAXIMUM RATINGSParameter of absolutemaximum ratingsSymbol Min Max Unit Supply voltage for logic VCI/VDD3 -0.3 5.0 V Input voltage VIN -0.3 VDD3+0.5 V Operating temperature Top -20 70 °C Storage temperature TST -30 80 °C Humidity RH - 90%(Max60 °C) RHn ELECTRICAL CHARACTERISTICSDC CHARACTERISTICSParameter of DCcharacteristicsSymbol Min Typ Max Unit Supply voltage for logic VCI 2.4 2.8 3.3 VI/O power supply VDD3 1.65 1.8/2.8 3.3 V Input Current Idd - 9.25 18.5 mA Input voltage 'H' level VIH 0.7VDD3 - VDD3 V Input voltage 'L' level VIL 0 - 0.3VDD3 V Output voltage 'H' level VOH 0.8VDD3 - VDD3 V Output voltage 'L' level VOL 0 - 0.2VDD3 Vn BACKLIGHT CHARACTERISTICSItem of backlightcharacteristicsSymbol Min. Typ. Max. Unit ConditionForward voltage Vf 3.0 3.2 3.4 V Luminance Lv 3200 3800 4200 cd/m2If=60mA Ta=25℃Number of LED - - 4 - Piece - Connection mode P - Parallel - - - Using condition: constant current driving method If=60mA(+/-10%).n ELECTRO-OPTICAL CHARACTERISTICSItem of electro-optical characteristics Symbol ConditionMin Typ Max Unit Remark Note Response time Tr+ Tf - 18 27 ms Fig.1 4 Contrast ratio Cr 300 913 - --- FIG 2. 1 Luminance uniformity d WHITE 78 87 - %FIG 2.3 Surface LuminanceLvθ=0° Æ=0° Ta=25℃209 261 - cd/m 2 FIG 2. 2Æ = 90° 70 80 - deg FIG 3. Æ = 270° 70 80 - deg FIG 3. Æ = 0° 70 80 - deg FIG 3. Viewing anglerangeqÆ = 180°7080-deg FIG 3.6Red x 0.5745 0.6245 0.6745 - Red y 0.2929 0.3429 0.3929 - Green x0.2740 0.3240 0.3740 - Green y 0.5266 0.5766 0.6266 - Blue x0.0964 0.1464 0.1964 - Blue y 0.0198 0.0698 0.1198 - White x 0.2297 0.2897 0.3497 - CIE (x, y) chromaticity White yθ=0° Æ=0° Ta=25℃0.24760.30760.3676-FIG 2. 5Note1. Contrast Ratio(CR) is defined mathematically by the following formula. For moreinformation see FIG 2.:()()AverageSurface Luminance with all white pixels P 1,P2, P 3,P4, P5ContrastRatio = Average SurfaceLuminance with all black pixels P1, P2, P 3,P4, P5Note2. Surface luminance is the LCD surface from the surface with all pixels displaying white.For more information see FIG 2.Lv = Average Surface Luminance with all white pixels (P1, P2, P 3,P4, P5)Note3. The uniformity in surface luminance (d WHITE ) is determined by measuring luminance ateach test position 1 through 5, and then dividing the maximum luminance of 5 points luminance by minimum luminance of 5 points luminance. For more information see FIG 2., , Surface Luminance with all white pixels (, , , )WHITE = Maxi Surface Luminance with allwhite pixels (, , , )d 1234512345Minimum P P P P P mum P P P P PNote4. Response time is the time required for the display to transition from White to black(RiseTime, Tr) and from black to white(Decay Time, Tf). For additional information see FIG 1.. Note5. CIE (x, y) chromaticity ,The x,y value is determined by screen active area position 5. Formore information see FIG 2.Note6. Viewing angle is the angle at which the contrast ratio is greater than 2. For TFT module theconrast ratio is greater than 10. The angles are determined for the horizontal or x axis and the vertical or y axis with respect to the z axis which is normal to the LCD surface. For more information see FIG 3.Note7. For Viewing angle and response time testing, the testing data is base on Autronic-Melchers ’sConoScope. Series Instruments. For contrast ratio, Surface Luminance, Luminance uniformity and CIE , the testing data is base on TOPCON ’s BM-5 photo detector.Note8. For TFT transmissive module,Gray scale reverse occurs in the direction of panel viewingangle.FIG.1.The definition of Response TimeFIG.2. Measuring method for Contrast ratio,surface luminance, Luminance uniformity,CIE (x,y) chromaticityFIG.3. The definition of viewing angleA : 5 mmB : 5 mmH,V : Active AreaLight spot size Æ=5mm, 500mm distance from the LCD surface to detector lensmeasurement instrument is TOPCON ’s luminance meter BM-5n INTERFACE DESCRIPTIONInterface NO. SymbolI/O orconnect toDescriptionWhennot inuse1 YU TP driver Touch panel coordinate in the up side of envisage drawing.OPEN2 XL TP driver Touch panel coordinate in the left side of envisage drawing.OPEN3 YD TP driver Touch panel coordinate in the down side of envisage drawing.OPEN4 XR TP driver Touch panel coordinate in the right side of envisage drawing.OPEN5 GND 0V Power ground -6 VCI PowersupplyHigh voltage power supply for analog circuit blocks (2.4∼ 3.3 V)-7 VDD3 PowersupplyLow voltage power supply for interface logic circuits(1.65 ∼ 3.3 V) -8 VDD3_P PowersupplyPower supply for LED driver interface.(1.65 ∼ 3.3 V) GND9 BC_CTRL O This pin is used to enable the back light LED driver OPEN10 BC O This pin is used to PWM output for back light control ofLED driver OPEN11 TE O Tearing effect output pad to synchronize MCU to frame writing, activated by S/W command. When this pad isnot activated, this signal stays low.OPEN12 DB1713 DB1614 DB1515 DB1416 DB1317 DB1218 DB1119 DB1020 DB921 DB822 DB723 DB624 DB525 DB426 DB327 DB228 DB129 DB0 I/Odata bus VDD3or GND30 SDA I/O When IM[3] : Low, Serial in/out signal.When IM[3] : High, Serial input signal.The data is applied on the rising edge of the SCL signal.VDD3or GND31 DOTCLK I Pixel clock signal in RGB I/F mode. VDD3 or GND32 ENABLE I Data Enable signal in RGB I/F mode. VDD3 or GND 33 HSYNC I Horizontal Sync signal in RGB I/F mode. VDD3 or GND 34 VSYNC I Vertical Sync signal in RGB I/F mode.VDD3 or GND 35RDXIThis pin is used to “Read Clock ” in 80-series parallel interface.This pin is used to “Read / Write Clock ” in 68-series parallel interface.VDD3 or GND 36 WRX IThis pin is used to “Write Clock ” in 80-series parallel interface.This pin is used to select “Read / Write Operation ” in 68-series parallel interface.This pin is used serial interface clock in 4-wire 8-bit serial data interface.VDD3 or GND37 DCX IThis pin is used to select “Data or Command ” in the parallel interface or 4-wire 8-bit serial data interface.When DCX = ’1’, data is selected.When DCX = ’0’, command is selected.This pin is used serial interface clock in 3-wire 9-bit serial data interface.VDD3 or GND38 CSX I Chip select input pin (“Low ” enable).This pin can be permanently fixed “Low ” in MPU interface mode only.VDD3 or GND 39RESXIThis signal will reset the device and must be applied to properly initialize the chip. Signal is active low.-40 IM0 41 IM1 42IM243 IM3-44 LEDA LED driver LED light,anode - 45 LEDK 1 LED driver LED light,cathode - 46 LEDK2 LED driver LED light,cathode - 47 LEDK3 LED driver LED light,cathode - 48LEDK4LED driverLED light,cathode-n REFERENCE APPLICATION CIRCUITPlease consult our technical department for detail information.n RELIABILITY TEST CONDITIONSNo. Test Item Test Condition Inspection after test1 High Temperature Storage 80±2℃/200 hours2 Low Temperature Storage -30±2℃/200 hours3 High Temperature Operating 70±2℃/120 hours4 Low Temperature Operating -20±2℃/120 hours5 Temperature Cycle -20±2℃~25~70±2℃×10cycles (30min.) (5min.) (30min.)6 Damp Proof Test 50℃±5℃×90%RH/120 hours7 Vibration Test Frequency:10Hz~55Hz~10Hz Amplitude:1.5mm,X,Y,Z direction for total 3hours (Packing condition)8 Dropping test Drop to the ground from 1m height, one time,every side of carton. (Packing condition)9 ESD test V oltage:±8KV R: 330ΩC: 150pFAir discharge, 10timeInspection after2~4hours storage atroom temperature, thesample shall be free fromdefects:1.Air bubble in the LCD;2.Sealleak;3.Non-display;4.missing segments;5.Glass crack;6.Current Idd is twicehigher than initial value.Remark:1.The test samples should be applied to only one test item.2.Sample size for each test item is 5~10pcs.3.For Damp Proof Test, Pure water(Resistance>10MΩ) should be used.4.In case of malfunction defect caused by ESD damage, if it would be recovered to normal state after resetting, it would be judged as a good part.5.EL evaluation should be excepted from reliability test with humidity and temperature: Some defects such as black spot/blemish can happen by natural chemical reaction with humidity and Fluorescence EL has.6.Failure Judgment Criterion: Basic Specification, Electrical Characteristic, Mechanical Characteristic, Optical Characteristic.n INSPECTION CRITERIONTITLE:FUNCTIONAL TEST & INSPECTION CRITERIAMDS Product4.3. Cosmetic Defect Item NoItems to be inspectedInspection StandardClassification ofdefects(i) Chips on cornerNotes: S=contact pad lengthChips on the corner of terminal shall not be allowed to extend into the ITO pad or expose perimeter seal. X Y Z ≤2.0≤SDisregardMinor(ii)Usual surface cracksX YZ ≤3.0<Inner border line of the sealDisregardMinor4.3.5Glass defect(iii) CrackCracks tend to break are not allowed.Major4.3.6Parts alignment1) Not allow IC and FPC/heat-seal lead width is more than 50%beyond lead pattern. 2) Not allow chip or solder component is off center more than50% of the pad outline.Minor4.3.7SMT According to the <Acceptability of electronic assemblies> IPC-A-610C class 2 standard. Component missing or function defect are Major defect, the others are Minor defect.n PRECAUTIONS FOR USING LCD MODULES1Handing Precautions1.1The display panel is made of glass and polarizer. As glass is fragile. It tends to become orchipped during handling especially on the edges. Please avoid dropping or jarring. Do not subject it to a mechanical shock by dropping it or impact.1.2If the display panel is damaged and the liquid crystal substance leaks out, be sure not to get anyin your mouth. If the substance contacts your skin or clothes, wash it off using soap and water.1.3Do not apply excessive force to the display surface or the adjoining areas since this may causethe color tone to vary. Do not touch the display with bare hands. This will stain the display area and degraded insulation between terminals (some cosmetics are determined to the polarizer).1.4The polarizer covering the display surface of the LCD module is soft and easily scratched.Handle this polarizer carefully. Do not touch, push or rub the exposed polarizers with anything harder than an HB pencil lead (glass, tweezers, etc.). Do not put or attach anything on the display area to avoid leaving marks on it. Condensation on the surface and contact with terminals due to cold will damage, stain or dirty the polarizer. After products are tested at low temperature they must be warmed up in a container before coming in to contact with room temperature air.1.5If the display surface becomes contaminated, breathe on the surface and gently wipe it with asoft dry cloth. If it is heavily contaminated, moisten cloth with one of the following solvents - Isopropyl alcohol- Ethyl alcoholDo not scrub hard to avoid damaging the display surface.1.6Solvents other than those above-mentioned may damage the polarizer. Especially, do not usethe following.- Water- Ketone- Aromatic solventsWipe off saliva or water drops immediately, contact with water over a long period of timemay cause deformation or color fading. Avoid contact with oil and fats.1.7Exercise care to minimize corrosion of the electrode. Corrosion of the electrodes is acceleratedby water droplets, moisture condensation or a current flow in a high-humidity environment.1.8Install the LCD Module by using the mounting holes. When mounting the LCD module makesure it is free of twisting, warping and distortion. In particular, do not forcibly pull or bend the I/O cable or the backlight cable.1.9Do not attempt to disassemble or process the LCD module.1.10NC terminal should be open. Do not connect anything.1.11If the logic circuit power is off, do not apply the input signals.1.12Electro-Static Discharge Control,Since this module uses a CMOS LSI, the same carefulattention should be paid to electrostatic discharge as for an ordinary CMOS IC. To prevent destruction of the elements by static electricity, be careful to maintain an optimum work environment.- Before removing LCM from its packing case or incorporating it into a set, be sure the module and your body have the same electric potential. Be sure to ground the body whenhandling the LCD modules.- Tools required for assembling, such as soldering irons, must be properly grounded.Make certain the AC power source for the soldering iron does not leak. When using anelectric screwdriver to attach LCM, the screwdriver should be of ground potentiality tominimize as much as possible any transmission of electromagnetic waves produced sparkscoming from the commutator of the motor.- To reduce the amount of static electricity generated, do not conduct assemblingand other work under dry conditions. To reduce the generation of static electricity be careful that the air in the work is not too dry. A relative humidity of 50%-60% is recommended. As far as possible make the electric potential of your work clothes and that of the work bench the ground potential.- The LCD module is coated with a film to protect the display surface. Exercise care when peeling off this protective film since static electricity may be generated.1.13Since LCM has been assembled and adjusted with a high degree of precision, avoid applyingexcessive shocks to the module or making any alterations or modifications to it.- Do not alter, modify or change the shape of the tab on the metal frame.- Do not make extra holes on the printed circuit board, modify its shape or change the positions of components to be attached.- Do not damage or modify the pattern writing on the printed circuit board.- Absolutely do not modify the zebra rubber strip (conductive rubber) or heat seal connector.- Except for soldering the interface, do not make any alterations or modifications with a soldering iron.- Do not drop, bend or twist the LCM.2Handling precaution for LCM2.1 LCM is easy to be damaged. Please note below and be careful for handling. 2.2 Correct handling:2.3 Incorrect handling:As above picture, please handle with anti-static gloves around LCM edges.Please don ’t hold the surface of panel. Please don ’t touch IC directly.Please don ’t stack LCM.Please don ’t operate with sharp stick such as pens.Please don ’t stretch interface of output, such as FPC cable.Please don ’t hold the surface of IC.3Storage Precautions3.1When storing the LCD modules, the following precaution are necessary.3.1.1Store them in a sealed polyethylene bag. If properly sealed, there is no need for thedesiccant.3.1.2Store them in a dark place. Do not expose to sunlight or fluorescent light, keep thetemperature between 0°C and 35°C, and keep the relative humidity between 40%RH and60%RH.3.1.3The polarizer surface should not come in contact with any other objects (We advise you tostore them in the anti-static electricity container in which they were shipped).3.2Others 其它3.2.1Liquid crystals solidify under low temperature (below the storage temperature range)leading to defective orientation or the generation of air bubbles (black or white). Airbubbles may also be generated if the module is subject to a low temperature.3.2.2If the LCD modules have been operating for a long time showing the same displaypatterns, the display patterns may remain on the screen as ghost images and a slightcontrast irregularity may also appear. A normal operating status can be regained bysuspending use for some time. It should be noted that this phenomenon does not adverselyaffect performance reliability.3.2.3To minimize the performance degradation of the LCD modules resulting from destructioncaused by static electricity etc., exercise care to avoid holding the following sections whenhandling the modules.3.2.3.1- Exposed area of the printed circuit board.3.2.3.2-Terminal electrode sections.4USING LCD MODULES4.1Installing LCD ModulesThe hole in the printed circuit board is used to fix LCM as shown in the picture below.Attend to the following items when installing the LCM.4.1.1Cover the surface with a transparent protective plate to protect the polarizer and LC cell.4.1.2When assembling the LCM into other equipment, the spacer to the bit between the LCMand the fitting plate should have enough height to avoid causing stress to the modulesurface, refer to the individual specifications for measurements. The measurementtolerance should be ±0.1mm.4.2Precaution for assemble the module with BTB connector:Please note the position of the male and female connector position, don’t assemble or assemble like the method which the following picture shows4.3Precaution for soldering the LCMManual soldering Machine drag soldering Machine press solderingNo RoHS Product 290°C ~350°C.Time : 3-5S.330°C ~350°C.Speed : 15-17 mm/s.300°C ~330°C.Time : 3-6S.Press: 0.8~1.2MpaRoHS Product 340°C ~370°C.Time : 3-5S.350°C ~370°C.Speed : 15-17 mm/s.330°C ~360°C.Time : 3-6S.Press: 0.8~1.2Mpa4.3.1If soldering flux is used, be sure to remove any remaining flux after finishing to solderingoperation (This does not apply in the case of a non-halogen type of flux). It isrecommended that you protect the LCD surface with a cover during soldering to preventany damage due to flux spatters.4.3.2When soldering the electroluminescent panel and PC board, the panel and board should notbe detached more than three times. This maximum number is determined by thetemperature and time conditions mentioned above, though there may be some variancedepending on the temperature of the soldering iron.4.3.3When remove the electroluminescent panel from the PC board, be sure the solder hascompletely melted, the soldered pad on the PC board could be damaged.4.4Precautions for Operation4.4.1Viewing angle varies with the change of liquid crystal driving voltage (VLCD). AdjustVLCD to show the best contrast.4.4.2It is an indispensable condition to drive LCD's within the specified voltage limit since thehigher voltage then the limit cause the shorter LCD life.An electrochemical reaction dueto direct current causes LCD's undesirable deterioration, so that the use of direct currentdrive should be avoided.4.4.3Response time will be extremely delayed at lower temperature than the operatingtemperature range and on the other hand at higher temperature LCD's show dark color inthem.However those phenomena do not mean malfunction or out of order with LCD's,which will come back in the specified operating temperature.4.4.4If the display area is pushed hard during operation, the display will become abnormal.However, it will return to normal if it is turned off and then back on.4.4.5 A slight dew depositing on terminals is a cause for electro-chemical reaction resulting interminal open circuit. Usage under the maximum operating temperature, 50%RH or less isrequired.4.4.6Input logic voltage before apply analog high voltage such as LCD driving voltage whenpower on. Remove analog high voltage before logic voltage when power off the module.Input each signal after the positive/negative voltage becomes stable.4.4.7Please keep the temperature within the specified range for use and storage. Polarizationdegradation, bubble generation or polarizer peel-off may occur with high temperature andhigh humidity.4.5Safety4.5.1It is recommended to crush damaged or unnecessary LCDs into pieces and wash them offwith solvents such as acetone and ethanol, which should later be burned.4.5.2If any liquid leaks out of a damaged glass cell and comes in contact with the hands, washoff thoroughly with soap and water.4.6Limited WarrantyUnless agreed between TRULY and the customer, TRULY will replace or repair any of its LCD modules which are found to be functionally defective when inspected in accordancewith TRULY LCD acceptance standards (copies available upon request) for a period of oneyear from date of production. Cosmetic/visual defects must be returned to TRULY within 90days of shipment. Confirmation of such date shall be based on data code on product. Thewarranty liability of TRULY limited to repair and/or replace on the terms set forth above.TRULY will not be responsible for any subsequent or consequential events.4.7Return LCM under warranty4.7.1No warranty can be granted if the precautions stated above have been disregarded. Thetypical examples of violations are :4.7.1.1- Broken LCD glass.4.7.1.2- PCB eyelet is damaged or modified.4.7.1.3-PCB conductors damaged.4.7.1.4- Circuit modified in any way, including addition of components.4.7.1.5- PCB tampered with by grinding, engraving or painting varnish.4.7.1.6- Soldering to or modifying the bezel in any manner.4.7.2Module repairs will be invoiced to the customer upon mutual agreement. Modules must be returnedwith sufficient description of the failures or defects. Any connectors or cable installed by the customermust be removed completely without damaging the PCB eyelet, conductors and terminals.n PACKING SPECIFICATIONPlease consult our technical department for detail information.n PRIOR CONSULT MATTER1For Truly standard products, we keep the right to change material, process ... for improving the product property without prior notice to our customer.2For OEM products, if any changes are needed which may affect the product property, we will consult with our customer in advance.3If you have special requirement about reliability condition, please let us know before you start the test on our samples.n FACTORY CONTACT INFORMATIONFACTORY NAME: TRUL Y SEMICONDUCTORS LTD.FACTORY ADDRESS: Truly Industrial Area, ShanWei City,GuangDong,ChinaP.C: 516600 URL: 。
液晶模块320240带中文字库
MW320240D 带中文字库液晶显示模块使用说明书
----------------------------------------------------------------------------------------------
南京名闻科技有限公司 025-84402170 季先生
目录
1. 简介...................................................................................................................................................3 2. 引脚说明...........................................................................................................................................4 3. 微控制器(MCU)的接口...................................................................................................................5
3.1 8080 系列的 MCU 接口 ........................................................................................................5 3.2 6800 系列的 MCU 接口 ...............................
MSP430G2553--320X240液晶屏
前言我的这篇文章根本不是什么出版社发行的书籍,更不是某个工程师写的宏篇巨著,这篇文章充其量就是一篇应用笔记。
其实这样的小文章没有写前言的必要,但我想在正文前写点什么,以便告诉大家我这篇文章是干什么用的,所以就套用了书籍的格式,开头写上了前言。
希望大家能够理解,勿喷~~这篇文章主要介绍了MSP430G2553单片机和320*240TFT液晶屏的连接使用方法,并详细解释了代码中所有语句的含义。
解释代码过程中,又渗透了查阅单片机手册(附件:《G2手册》)、查阅单片机头文件的方法。
用三天的时间,大家踏踏实实仔细看这篇文章,就能达到以下程度:1.会使用液晶屏,了解液晶屏的工作原理,显示颜色、字符、图案(双色)2.会使用自模提取软件3.会查阅手册,进一步理解寄存器的配置(@_@||)4.初步掌握SPI通信机理附几项说明:1.源代码都用WDTCTL=WDTPW+WDTHOLD;深色背景标出,方便查看2.截图都已注明来源,用【】标注,你可以从附件里的PDF文档里找到3.本实验所用器件有:G2单片机(已焊上晶振)、数据线、8根杜邦线、2.2寸液晶屏(或引脚完全兼容的2.8寸液晶屏,这个液晶屏每个像素点比2.2寸的大,但是分辨率还是240*320,引脚上比2.2寸的多了四个脚——触屏功能。
但是在做这个实验的时候,只需连上后文提到的那几个引脚)4.液晶屏的膜禁止撕掉,液晶屏要轻拿轻放,不要长时间通电(原因下页会说的)借用液晶屏要去管理员那里登记,如有损坏原价赔偿(非暴力手段是不会坏的)第一步:把线连好,连线方式如下表所示液晶屏中文解释单片机备注SDO (MISO)主机输入从机输出空所用液晶屏不会给单片机发数据的,所以这根线不用连(能省则省)LED液晶屏背光VCC正常是VCC通过一个滑动变阻器连到LED 上,这里为了方便直接连上。
这样做虽然可以使背光很亮,但是接线的地方等一会儿会很烫,所以建议隔一段时间断电冷却一下下SCK时钟信号线P1.4SPI通信需要有同一根时钟线P1.4口第二功能就是输出SMCLK时钟信号SDI (MOSI)主机输出从机输入P1.2M(monster主人,主机)O(Output输出)S(Slave奴隶,从机)I(Input输入)P1.2口第二功能是MOSID/C数据/控制选择位P1.3这一位可以随便设定,只要可以输出高低电平就行。
大连东福彩色液晶显示器有限公司LCD模块使用手册EDM320240B说明书
LCD 模块使用手册EDM320240B液晶显示器模块原理与应用手册大连东福彩色液晶显示器有限公司1. 使用范围----------------------------------------------------32. 质量保证----------------------------------------------------33. 性能特点----------------------------------------------------34. 外形图-------------------------------------------------------75. I/O接口特性-----------------------------------------------76. 质量等级---------------------------------------------------117. 可靠性---------------------------------------------------148. 生产注意事项---------------------------------------------159. 使用注意事项---------------------------------------------161. 使用范围该检验标准适用于大连东福公司设计提供的标准液晶显示模块。
如果在使用中出现了异常问题或没有列明的项目,建议同最近的供应商或本公司联系。
2. 质量保证如在此手册列明的正常条件下使用、储存该产品,公司将提供12个月的质量保证。
3. 性能特点3-1.性能:显示方式 : 半透、正显FSTN LCD显示颜色 : 显示点: 黑色背景: 灰色显示形式: 320(w)×240(h) 全点阵输入数据 : 来自控制器的4位并行数据接口Duty驱动路数: 1/240视角: 6 点背光:EL3-2.机械性能:项目规格单位外形尺寸 143.0(W)×97.6(H) ×10.1 Max.(T) mm显示点阵数 320(W) ×240(H) Dots —视域 105.0(W)×80.0(H) mm显示图形域 95.97(W)×71.97(H) mm 点间距 0.3(W)×0.3(H) mm点尺寸 0.27(W)×0.27(H) mm145 g 重量 Approx.3-3.极限参数:项目符号最小值最大值单位注释V5.5逻辑 Vdd2.7电源电压–Vee 6.0 28.0 VLCD 驱动 VddVVdd输入电压 Vi60℃-10操作温度 Top℃70-20储存温度 Tstg湿度 — — 90 %RH3-4. 电气特性:3-4-1. 电气参数项 目 符 号 条 件 最小值典型值 最大值 单 位逻辑 Vdd 2.7 5.0 5.5电源电压LCD 驱动 Vdd–Vee — 25. 0 28.0高电平 Vih Vdd=5V ±5% 0.8Vdd — Vdd输入电压低电平 Vil 0 — 0.2Vdd V高电平 V oh Vdd-0.4—输出电压低电平 V ol — 0.4频 率 Fflm Vdd=5V 60 70 80 Hz逻辑 Idd — 10.0功 耗 LCD 驱动 Iee Vdd=5V Vdd–Vee=15.0VFflm=75Hz— 2 mA Ta= 0℃φ=0°,θ=0°— 26.1 27.0Ta= 25℃φ=0°,θ=0°24.0 25.0 25.7 LCD 驱动电压 (推荐电压) Vdd–Vee Ta= 50℃φ=0°,θ=0° 23.2 24.3 —VNote: <1> 驱动路数=1/240 <2> 所有点在静态条件下 3-4-2电光特性项 目符号温度 条件 最小值典型值最大值 单位 注释0℃ — 26.1 27.025℃24.0 25.0 26.7 LCD 驱动电压(推荐电压)V op 50℃ φ=0°,θ=0°23.2 24.3 — V 1,2,5 0℃ — 1500 2000 上升时间 tr25℃ — 150 200 0℃ — 3000 3500响应时间 衰退时间 td 25℃ φ=0°,θ=0°— 200 250mS 1,3,5垂直 -35 — 35视 角 Δφ 25℃ 水平 -30 — 30deg. 1,4,5对比度 K 25℃ φ=0°,θ=0° 2.0 5.0 — — 1,5,6注意:<1> φ和θ的定义<2> 在此电压范围内能获得对比度大于2(k≥2)注意:<6> 对比度定义(K)正显负显非选择点的亮度(B2) 选择点的亮度(B1)3-5. EL 背光规格注释<1>: 在20℃、60%RH 时初始亮度值的一半标 准 值项目单位最小值典型值 最大值条 件电源电压 V 90 110 — 频 率 Hz — 400 400 — 亮 度 cd/m 2(nit)45 55 — AC100 Vrms, 400Hz, 暗室 电 流 mA/cm 2— 0.12 0.17 AC100 Vrms, 400Hz,暗室寿 命 Hrs 10000 注释 <1> 发光颜色 — 黄绿色 AC100 Vrms, 400Hz, 暗室 操作温度 ℃ -10~ 60 — 储存温度 ℃ -20~ 70 —4. 外形图5. I/O接口特性5-1. I/O 接口表:管脚号管脚名称功能描述1 FLM 行起始信号(帧信号)2 NC 空脚3 CL1 数据锁存脉冲信号4 CL2 数据移位脉冲信号5 /DOFF 关显示控制信号6 DB0 数据线7 DB1 数据线8 DB2 数据线9 DB3 数据线10 VDD 工作电源11 VSS 地12 VEE 负电源13 V0 LCD对比度调节端14 FG 框架5-2.时序及时序图:5-2-1. 列驱动时序及时序图(VCC=5.0V±10%,VSS=0V, Ta=-30 to +85°C)数值参数符号条件最小典型最大单位时钟周期t CY Duty=50%125时钟脉冲宽度t WCK45上升/下降时间t R/ t F数据建立时间t DS30数据保持时间t DH30时钟建立时间t CS 80时钟保持时间t CH 80ELB Output 60传播延迟时间t PHLERB Output 60ELB Input 30ELB,ERB 信号建立时间t PSUERB Input 30nsDispoffb 信号低电平宽度t WDL 1.2 usDispoffb 信号清除时间t CD 100ns M-OUT传播延迟时间t PD1 1.0CL1-OUT传播延迟时间t PD2 1.0DISPOFFB-OUT 传播延迟时间t PD3CL=15pF1.0us5-2-2. 行驱动时序及时序图(VCC=5.0V±10%,VSS=0V, Ta=-30 to +85°C)数值参数符号条件最小典型最大单位时钟周期t CY Duty=50%250时钟脉冲宽度t WCK45上升/下降时间t R/ t F 50 数据建立时间t DS30数据保持时间t DH30nsDispoffb 信号低电平宽度t WDL 1.2 us Dispoffb 信号清除时间t CD 100ns 输出延迟时间t DL 200M-OUT传播延迟时间t PD1 1.0CL1-OUT传播延迟时间t PD2 1.0DISPOFFB-OUT传播延迟时间t PD3CL=15pF1.0usLCD 模块使用手册电源连接图5-3.*VDD-V0:液晶驱动电压。
3.2寸240 400 MCU接口TFT液晶屏
存储的防范措施(Storage Precautions) 10.2.1 储存液晶显示模块时,要避免受到阳光的直射或荧光灯的光。 10.2.2 液晶显示模块应存储在存储温度范围。如果液晶显示模块将被存放很长 一段时间,推荐条件是:温度:0℃~40℃ 相对湿度:≤80% 10.2.3 液晶显示模块,应存放在无酸、碱及有害气体的房间。
12.接口类型:16/18 位 MCU 并联接口模式 13.连接类型:焊接型 14.背光灯颜色及类型:白色 LED 并联 15.可视角度: 12:00 16.工作温度: -20----70℃ degrees 17.储存温度: -30----80℃ degrees 操作注意事项 1.1 显示面板是玻璃做成的。不要让它从高的地方下跌受到机械冲击,等等。 1.2 如果显示面板损坏了和液晶物质里面泄漏出来,嘴里一定要没有任何的物质, 如果您的皮肤或衣服接触到了,及时用肥皂和水洗掉。 1.3 不要对显示器表面或邻近地区用力过猛,因为这可能会导致色调的改变。 1.4 覆盖在液晶显示模块显示表面的偏光板是软的,容易划伤。仔细处理这个偏 光片。 1.5 如果显示器表面被污染,将气吹在其表面上,并用柔软的干布轻轻擦拭。如 果仍然没有完全清除,用下列溶剂之一来湿润布: -异丙醇 -乙醇 用除上述以外的溶剂可能会损坏偏光板。尤其是,不要使用以下: -水 -酮 -芳烃溶剂 1.6 不要尝试拆解液晶显示模块。 1.7 如果逻辑电路的电源是关闭的,不适合用输入信号。 1.8 为了防止静电破坏元素,要小心保持最佳的工作环境。
320240不带控制器液晶
深圳市恒域威电子有限公司 LCM 专业生产厂家 HYW320240B(HYW097GB) 外型尺寸/OUTLINE DIMENSIONS机械规格和特征/MECHANICALSPECIFICATIONS & FEATURES 接口说明/ interface explanation项目/Item尺寸(mm )/ Size (mm)功能特点及参数/ Function feature & parameter 模块尺寸/ Module Size160.0*109.0*12 工作温度/ operating temperature -20℃~70℃ 视域尺寸/ View Area122.0*92.0 储存温度/ storage temperature -30℃~80℃ 点阵数/ Number of Dots320*240 工作电压/ working volt 3V~5V 点间距/ Dot Pitch0.36*0.36 制作工艺/ manufacture craft 贴片/SMT 点大小/ Dot size0.33*0.33 背光/ back light LED 控制器/ controller 液晶玻璃/ LCD 蓝膜、黄绿膜、FSTN 黑白Blue 、yellow- green 、FSTN序号/Pin symbolDescription(管脚描述) 1~4D0-D3 Data Bus lines(数据线0~3) 5DISP LCM drive control end (液晶显示驱动电源控制端) 6FLM a row scan signal (行扫描数据信号) 7M LCM to showac driveDefinesignal (液晶显示交流驱动波形信号) 8LP Define impulse sequence (锁存脉冲序列) 9CP Define pulse signal 显示数据位移脉冲信号 10VCC Power supply for Logic(逻辑电压) 11GND Ground Logic (地) 12VOUT Negative voltage output(电压输出) 13V0 Power supply for LCD drive(对比度调节) 14FG No Connection (未用) 15LED-A Power supply for Backlight(+)(背光正极) 16LED-K Power supply for Backlight(-)(背光负极)。
320240液晶屏产品参数说明
320240液晶屏产品参数说明
320240液晶屏
LCD320240图形点阵型液晶显示模块,它主要由行驱动器与列驱动器组成,可显示320(列)× 240(行)点阵。
可完成图形显示,也可显示20×15个(16×16点阵)中文汉字,支持5.1寸和5.7寸屏。
·具有功能较强的I/O缓冲器,主要表现在MPU在访问时,不需判其忙,随时准备接收MPU的访问并在内部时序下及时地把MPU 发来的指令、数据传输就位。
同时在接口部设置了适配8080系列和M6800系列MPU的两种操作时序电路,通过引脚的电平设置可选择二者之一。
·可以管理64K显示RAM,管理内藏的字符发生器及外扩的字符发生器CGRAM或EXCGROM。
内藏字符发生器CGROM,固化了160 种5×7点阵字符的字模。
还能外扩字符发生器,一次最多只能显示及建立256 种字符。
·可以图形方式、文本方式及图形和文本方式进行显示。
·指令功能丰富。
·液晶显示模组(LCM)的LCD颜色有蓝色、灰色,可
供客户进行选择。
·液晶显示模块背光颜色有白色、蓝色,可供客户进行选择。
·工作温度-20~+70℃,储存温度-30~+80℃。
文章来源:/content/?89.html。
5.6inch-tm056kdh02_f_v1.1[1]
Table of ContentsCoversheet (1)Table of Contents (2)Record of Revision (3)1General Specifications (4)2Input/Output Terminals (5)3Absolute Maximum Ratings (7)4Electrical Characteristics (8)5Timing Chart (10)6Optical Characteristics (15)7Environmental / Reliability Test (19)8Mechanical Drawing (20)9Packing Drawing (21)10Precautions for Use of LCD Modules (23)The information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior writtenThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior writtenRecord of Revision Rev Issued Date Description Editor1.0 2008-06-26 Preliminary ReleaseYoukui Shang 2.02008-10-10 Modify the chromaticity x/y upper and lower limit value Haijun he 1.02008-12-17 Modify the model name from TS056KAAVD02-00. Peng Lei 1.12009-02-06 Update Timing Parameter YanguangChenThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written1 General Specifications FeatureSpec Size5.6 inch Resolution320(RGB) x 234 Interface Analog RGBColor DepthFull color Technology Typea-Si TFT Dot Pitch (mm)0.118 x 0.362 Pixel ConfigurationR.G.B. Vertical Stripe Display ModeTM with Normally White Surface Treatment(Up Polarizer)Anti-Glare Viewing Direction12 o’clock Display Spec. Gray Scale Inversion Direction6 o’clock LCM (W x H x D) (mm)126.50 X 100.00 X 5.70 Active Area(mm)113.280 X 84.708 With /Without TSPWithout TSP Weight (gram)123.0 MechanicalCharacteristics LED number14 LEDsNote 1:Viewing direction for best image quality is different from TFT definition, there is a 180degree shift.Note 2 : Requirements on Environmental Protection: RoHSNote 3: The weight tolerance: ±5%.The information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written2 Input/Output Terminals2.1 TFT LCD Panel Driving Section FPC Connect type is : FH12-26S-0.5SHNo Symbol I/O Description Remark 1 GND P Ground2 VCC P Supply voltage for scan driver3 VGL P Negative power for scan driver4 VGH P Positive power for scan driver5 STVD I/O Vertical start pulse down side Note 16 STVU I/O Vertical start pulse up side Note 17 CKV I Shift clock input8 U/D I UP/DOWN scan control input Note 19 OEV I Output enable control for scan10 VCOM I Common electrode driving signal11 VCOM I Common electrode driving signal12 L/R I LEFT/RIGHT scan control input Note 113 MOD I Sequential sampling and simultaneous sampling setting Note 214 OEH I Output enable control for data driver15 STHL I/O Start pulse for horizontal scan line left side Note 116 STHR I/O Start pulse for horizontal scan line right side Note 117 CPH3 I Sampling and shifting clock pulse for data driver Note 218 CPH2 I Sampling and shifting clock pulse for data driver Note 219 CPH1 I Sampling and shifting clock pulse for data driver Note 220 VCC P Supply voltage for data driver21 GND P Ground22 VR I Alternated video signal(Red)23 VG I Alternated video signal(Green)24 VB I Alternated video signal(Blue)25 AVDD P Supply voltage for analog circuit26 AVSS P Ground for analog circuitTable 2.1 input terminal pin assignmentI: input pin; I/O: input/output pin; P: Power/GND;Note 1: select of scanning modeSetting of scan control input In/out state for start pulse U/D L/R STVD STVU STHR STHLScanning direction GND VCC O I O I Up to down, left to rightVCC GND I O I O Down to up, right to leftGND GND O I I O Up to down, right to leftVCC VCC I O O I Down to up, left to rightThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior writtenRefer to the figure as belowNote 2: MOD=H, simultaneous sampling.MOD=L, sequential sampling.Please set CPH2 and CPH3 to GND when MOD=H.2.2 Backlight Unit SectionPin No.Symbol I/O Function Remark 1HI P Power supply for backlight unit Pink line 2 GND P Ground for backlight unit White lineThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written3 Absolute Maximum Ratings GND=0V, Ta = 25℃Item Symbol Min Max Unit RemarkVCC -0.3 7.0 VAVDD -0.3 7.0 VVGH -0.3 18.0 VVGL -15.0 0.3 VPower Voltage VGH-VGL - 33.0 VV A -0.2 AVDD+0.2V Note 1 Input signal voltage V L -0.3 AVDD+0.3V Note 2Operating Temperature Top -20 70 ℃Storage Temperature Tst -30 80 ℃Table 3.1 Absolute maximum ratingNote 1: VR, VG, VBNote 2: STHL, STHR, OEH, L/R, CPH1-3, STVU, STVD, OEV, CKV, U/DThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written4 Electrical Characteristics4.1 LCD Module GND=0V,Ta=25℃Item Symbol Min TypMax Unit Remark Logic supply voltageVCC 4.8 5.0 5.2 V Analog supply voltage AVDD 4.8 5.0 5.2 VNegative power for scan driver VGL -10.5 -10.0 -9.5 VPositive power for scan driver VGH 14.315.0 15.7 VLow Level V IL 0 - 0.2xVCC V InputSignal VoltageHigh Level V IH 0.8xVCC - VCC V Note 1 OutputSignal Voltage Low Level V OL 0 - 0.2xVCC VHigh LevelV OH 0.8xVCC - VCC V V IA 0.2 - AVDD-0.2 V V IAC - 3.5 - V Video Signal Amplitude V IDC - AVDD/2 - V V CAC - 5.4 - V VCOM V CDC 1.55 - 1.95 V I VCC - 0.80 1.0 mA I AVDD - 3.41 3.5 mA I VGH - 0.056 0.059 mA Power Consumption I VGL - 0.056 0.059 mA Note 2 Table 4.1 LCD module electrical characteristics Note 1: STHL, STHR, OEH, L/R, CPH1-3, STVU, STVD, OEV, CKV, U/DNote 2: Test condition: Voltage fix on: VCC=5.0V, AVDD=5.0V,VGH=15.0V, VGL=-10V4.2 Backlight UnitTa=25℃Item Symbol Min Typ Max Unit RemarkForward CurrentI F - 140 - mA Forward Current VoltageV F - 6.4 - V Backlight Power ConsumptionW BL - 896 - mW Note 1 Table 4.2 Backlight unit electrical characteristicsNote1: For each LED, I L =20mAThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior writtenFigure 4.3 LED driver circuit4,3. Block DiagramFigure 4.4 LCD module diagramThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written5 Timing Chart 5.1 Timing ParameterNote 1: For all of logic signal.Note 2: Please don’t use odd horizontal lines to drive LCD panel for both odd and even fieldsimultaneously.ParameterSymbol Min. Typ. Max. Unit. Remark Rising timet r - - 60 ns Note 1 Falling timet f - - 60 ns Note 1 High and low level pulse widtht CPH 150 154 158 ns CPH1-3 CPH pulse widtht CWH 40 50 60 % CPH1-3 t C12t C23CPH pulse delay t C3130 t CPH /3 t CPH /2 ns CPH1-3 STH setup time t SUH 20 - - ns STHL/RSTH hold time t HDH 20 - - ns STHL/RSTH pulse width t STH - 1 - t CPH STHL/RSTH period t H 61.5 63.5 65.5 us STHL/ROEH pulse width t OEH - 7 - t CPHSample and hold disable time t DIS1 - 8 - usOEV pulse width t OEV - 27 - usCKV pulse width t CKV 16 - 40 usClean enable time t DIS2 - 16 - usHorizontal display time range t DH - 960 - t CPH /3STV setup time t SUV 400 - - ns STVD/USTV hold time t HDV 400 - - ns STVD/USTV pulse width t STV - - 1 t H STVD/UHorizontal line per field t V 256 262.5 268 t H Note 2Vertical display start t SV - 3 - t HVertical display range t DV - 234 - t HVertical start line t SLV - - 21 t HVCOM rising time t rCOM - - 5 usVCOM falling time t fCOM - - 5 usVCOM delay time t DCOM - - 3 usRGB delay timet DRGB - - 1 usThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written5.2 Timing DiagramFigure 5.2: horizontal display range timingThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior writtenFigure 5.3: horizontal display timingFigure 5.4: vertical display timingThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior writtenFigure 5.5: vertical shift clcok timingFigure 5.5: vertical start line timingThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written 5.2. Power on/off Sequence5.2.1 Power on SequenceFigure 5.6 Power on sequenceVCC ÆVGL ÆAVDD ÆVGH ÆDATA ÆVBLNote: The interval time should more than the label5.2.2 Power off SequenceVCC AVDD VGLVGHVBL90%GNDDATA >1frame>1frameFigure 5.7 Power off sequenceVBL ÆDATA ÆVGH ÆAVDD ÆVGL ÆVCCNote: The interval time should more than the labelThe information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICSCorporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written6 Optical Characteristics6.1 Optical SpecificationTa=25℃ItemSymbol Condition MinTyp.Max.UnitRemarkθL 55 65θR 55 65θT 35 45 View AnglesθBCR 10≧ 55 65degree Note2,3Contrast Ratio CR θ=0o 200 300Note 3Ton Response TimeToff 25℃ 25 50 ms Note 4x 0.260 0.310 0.360 White y 0.280 0.330 0.380x0.5350.585 0.635Redy 0.292 0.342 0.392 x0.276 0.326 0.376 Green y 0.525 0.575 0.625 x 0.0910.141 0.191ChromaticityBlueyBacklight ison 0.060 0.110 0.160 Note 1,5Uniformity U 70 80 % Note 6 NTSC 45 50 %Note 5Luminance L300 330cd/m 2 Note 7Test Conditions:1. The ambient temperature is 25℃. I L =20mA2. The test systems refer to Note 1 and Note 2.The information contained herein is the exclusive property of SHANGHAI TIANMA MICRO-ELECTRONICS Corporation, and shall not be distributed, reproduced, or disclosed in whole or in part without prior written Note 1: Definition of optical measurement system.The optical characteristics should be measured in dark room. After 5 minutes operation, the optical properties are measured at the center point of the LCD screen. All input terminals LCD panel must be ground when measuring the center area of the panel.Note 2: Definition of viewing angle range and measurement system.viewing angle is measured at the center point of the LCD by CONOSCOPE(ergo-80)。
宽温(超低温)军用彩色液晶显示屏模块
5.TFT80480ห้องสมุดไป่ตู้S070CWN (超低温液晶,工作温度零下40°)
分辨率
800*480 接口方式 RS232/TTL 背光类型 LED
对角线尺寸
7
显示颜色 16.7M 色 背光亮度 250
可视尺寸 152.4 ×91.4 mm 工作电压 4.5-26.0V 工作温度 -40~+80℃
视域尺寸 153.7×92.8mm 消耗功率 370mA/12V 保存温度 -40~+80℃
对角线尺寸
5
显示颜色 65K 色 背光亮度 900
可视尺寸 108.0×64.8mm 工作电压 6.0-12.0V 工作温度 -30~+70℃
视域尺寸 110.8×67.9mm 消耗功率 260mA/12V 保存温度 -30~+85
4.TFT64480RS057CWN (宽温液晶,高亮度 TFT,工作温度-40°,高亮度)
6.TFT80480RS070DWN(低温液晶,高亮度,阳光下可视,工作温度零下30°)
分辨率
800*480 接口方式 RS232/TTL 背光类型 LED
对角线尺寸
7
显示颜色 65K 色 背光亮度 900
可视尺寸 154.1 ×85.9 mm 工作电压 5.0-15.0V 工作温度 -30~+70℃
视域尺寸 164.8×124.3mm 消耗功率 330mA/12V 保存温度 -40~+80℃
8.TFT80600RS080FWN(宽温液晶模块,阳光下可视,高亮度)
分辨率
800*600 接口方式 RS232/TTL 背光类型 LED
对角线尺寸
8
4.3寸40PIN高亮显示屏规格书
SPECIFICATION NO.:CXT430C10H29-1200P40NACCEPTEDBYCUSTOMERProduct: 4.3” TFT 480(RGB)*272 PixelsVerson: V00Date: 2013/11/23APPROVED CHECKED PREPARED—————————————————————————————————1Catalog:N0. ContentsPage 1 History Verson1 2 Mechanical Description 2 3 Mechanical Drawing 3 4 Interface Definition 4 5 Interface Timing5-6 6 Absolute Maximum Ratings 7 7 DC Characteristics 7 8 Blacklight7-8 9 Optical Specification 8-9 10 Reliability testing 10 11 Inspection Standard 11-12 12 Precaution 12-131. History VersonSample versonDoc.versonDate Discription ModifyV00 V00 2013-11-23 First issue Ljj—————————————————————————————————12.Mechanical DescriptionName Content Unit Outline Size 105.50 (W) * 67.20 (H) * 2.90(T) mmModule size 4.3 (V.A) inchResolution 480(RGB)* 272 Pixels -Viewing size 95.04(W) * 53.86(H) mmPixel size 0.198 * 0.198 mmLCD Type TFT (262K)/ Transmissive / Positive - Viewing Angle 6 H - Driver IC OTA5180A - Backlight Type 6 Serial 2 Paralle LEDs - Interface Type 24 Bit RGB -—————————————————————————————————23.Mechanical Drawing—————————————————————————————————3PIN NO. PIN Name Funtion Description1 LEDK back light power supply negative2 LEDA back light power supply positive3 GND Ground4 VCC Power supply5-12 R0-R7 Red Data13-20 G0-G7 Green Data21-28 B0-B7 Blue Data29 GND Ground30 CLK Colock signal31 DISP Display on/off32 HSYNC Horizontal sync input in RGB mode33 VSYNC Vertical sync input in RGB mode34 DE Data enable35 NC No Connection36 GND Ground37 NC(YU) NC(touch panel Y-up)38 NC(XL) NC(touch panel X-left)39 NC(YD) NC(touch panel Y-bottom)40 NC(XR) NC(touch panel X-right) —————————————————————————————————4—————————————————————————————————55.1 Reset Timing5.2 RGB Interface Timing5.3 AC Timing Diagram—————————————————————————————————66. Absolute Maximum Ratings:Name symbol Min Type Max Unit Operation Temperature T OP-20 - 70 ℃ Storage Temperature T ST-30 - 80 ℃7. DC CharacteristicsName Symbol Min Type Max Unit Logical Voltage VDD 3.0 3.3 3.6 V Input High Voltage V IH0.8IOVCC - IOVCC V Input Low Voltage V IL-0.3 - 0.2IOVCC V Output High Voltage V OH0.8IOVCC - - V Output Low Voltage V OL- - 0.2IOVCC V Current Consumption IDD 4 10 - mA 8.Blacklight:Name Min Type Max Unit Current -40 50 mA Voltage -19.2 21 VPowerConsumption-768 - mWluminance 1000 1200 - CD/M2 (Note1)Luminanceuniformity75% 80% - (Note2) X ColorCoordinates0.27 0.28 0.31 -Y ColorCoordinates0.27 0.28 0.31 - Note1:This luminance is tested with assembling the LCD.Note2:Definition of Luminance Uniformity.—————————————————————————————————7—————————————————————————————————89. Optical SpecificationNameSymbol Min Type Max Unit Transmittance rate T(%) - 4.6 - % Contrast ratio C/R 250 350 - - Response timeTr+Tf- 45 - msViewing AngleθU50 60 - degree (C/R>10)θD 60 70 - θL 60 70 - θR6070-*Viewing angle descriptin:—————————————————————————————————9*Contrast rate description(CR) :Tested in the center of the LCM panel*Response time description : Sum of TR and TF—————————————————————————————————1010.Reliability testing :*One single product test for only one item. * Judgment after test: keep in room temperature for more than 2 hours. - Current consumption < 2 times of initial value - Contrast > 1/2 initial value - Function: work normallyItemNo Name Condition Remark 1 High temperature Operating 70°C , 168Hours Finish product (With polarizer) 2 Low temperature Operating -20°C , 168 Hours Finish product (With polarizer) 3 High temperature Storage80°C , 168 Hours Finish product (With polarizer) 4 Low temperature Storage-30°C , 168 Hours Finish product (With polarizer) 5High temperature & humidity Storage60°C , 90%RH, 168 HoursFinish product (With polarizer) 6 Thermal Shock Storage(Nooperation) -20°C , 30min.<=> 70°C , 30min.10 CyclesFinish product (With polarizer) 7 ESD testVoltage:+8KV R:330 ohm,C:150pF Air discharge,10 times Finish product (With polarizer) 8 Vibration test10 => 55 =>10 => 55 => 10 Hz, within 1 minute;Amplitude:1.5mm.15 minutes for each Direction( X,Y,Z )Finish product (With polarizer) 9 Drop testPacked, 100CM free fall 6 sides, 1 corner, 3edgesFinish product (With polarizer)—————————————————————————————————1111.Inspection Standard11.1 Defect Defination11.2 StandardNo. D efect ClassDefinationContent1重缺陷(MA )影响显示的功能缺陷短路、断路、缺划、大电流、视角错、漏液、显示不清等严重外观缺陷产品尺寸不符、漏部品等 2 轻缺陷(MI ) 不影响产品功能,但对产品外观有影响反黑/反白点、偏光片缺陷、针孔、污点No. Item Inspection StandardClassification of defects1 显示状态 不显、显示乱码、多划、少划、少画面、视角错、闪烁等均不允许重缺陷无法用文字描述的现象,必要时制定限度样板进行参考。
SG320240-01B 系列说明书
SG320240-01B系列说明书(Version1.0)可选型号:产品型号及其后缀LCD类型(显示模式)背光类型时序方式逻辑电压(VDD)背光电压接口方式及其预留配置SG320240SBD-01BCWE STN 蓝底色CCFL 无控制器 3.3~5.0V需配CCFL逆变器单排插针焊位FFC插座焊位SG320240SBD-01BCWE(DN) STN 蓝底色CCFL 无控制器 3.3~5.0V需配CCFL逆变器单排插针焊位FFC插座焊位SG320240SBD-01BCWE(CN) STN 蓝底色CCFL 68、80时序 3.3~5.0V需配CCFL逆变器双排插针焊位FFC插座焊位SG320240SBD-01BCWE(CD) STN 蓝底色CCFL 68、80时序 3.3~5.0V需配CCFL逆变器双排插针焊位FFC插座焊位标准配置:LCM无后缀表示为标准配置,标准配置的LCM不带控制器,不带负电源,80时序。
可扩展功能:1.DN:模块不带控制器,带负电源输出。
:模块带SED1335或替代IC RA8835控制器,但不带负电源输出。
3.CD:模块带SED1335或替代IC RA8835控制器,并且带负电源输出。
4.上述LCM可以选择68时序使用。
5.上述LCM可以选择3.3V逻辑电压使用。
但需要单独声明、特殊配置。
注:以上列出LCD类型只有STN 蓝底色,背光尚有白色LED可选,组合方式及扩展功能如上表,如果有其他需求,请致电我公司销售部。
销售部:电话:010-******** 136********QQ:1056456564文档修订记录修订修订次第修订 日期修订人修订前版本号页次章节 编号修订内容简述 批准人1 2007-1-23 王梅 / / /新建文档趙鵬目录1、液晶显示模块整体描述 (4)2. 最大典型值 (5)3. 电气特性 (5)4. LCD驱动电源连接方式 (5)5. 接口引脚定义 (7)6. 外形尺寸图纸 (10)7.液晶显示模块在使用过程中的注意事项 (11)8.测试程序 (13)1、液晶显示模块整体描述项目说明单位液晶显示模块组成液晶显示屏,背光灯箱,线路板,铁框液晶显示屏类型正像反射型,半透型,负像型液晶屏显示类型 STN型:蓝模式FSTN型O’clock液晶显示屏视角 6液晶模块外形尺寸 (LED*) 139.00(长)×120.00(宽)×13.20(厚) mm液晶模块视域 103.00(长)×79.00(宽) mm 液晶模块铁框尺寸 (LED*) 122.20(长)×100.00(宽)×13.20(厚) mm液晶显示模块点阵数 320×240点阵mm 液晶显示屏点尺寸 0.27(长)×0.27(宽)mm 液晶显示屏点间距 0.30(长)×0.30(宽) 液晶显示屏占空比 1/240液晶显示屏偏置电压 1/17液晶显示模块控制器 SED1335、RA8835A 或不带控制器方式液晶显示模块使用温度范围(E*) -20~+70 ℃液晶显示模块存储温度范围(E*) -30~+80 ℃背光灯箱 LED白背光或CCFL 液晶显示模块数据输入格式八位并行输入格式, 68、80时序方式电源输入电压 3.3~5V输入供电,内置DC/DC电路V液晶显示模块理论寿命 50,000 小时注意: LED*: LED背光E*: 宽温等级2. 最大典型值2.1 电气最大典型值 Vss=0VItem Symbol Min Max Unit Note 逻辑电源 Vdd -Vss 0 6.0 V LCD 驱动电压 Vdd -V o 0 24.0 V I/O 口输入电压 Vi 0 Vdd V2.2 使用环境最大典型值ItemSymbol Min Max Unit 工作温度 T0 -20 +70 ℃ 储存温度 Ts -30 +80 ℃ 湿度------85%RH3. 电气特性3.1 电气特性Vss=0VItem SymbolCondition Min TypMax Unit逻辑电压 Vdd ---- 2.7 5.0 5. 5 V LCD 驱动电压 Vdd -Vo ---- 15.5 --- 19.8 V 输入电压最大值 VIH ---- Vdd-2.2--- Vdd V 输入电压最小值 VIL---- 0 --- 0.8 V 频率 FELMVdd=5V 65 7885 Hz3.2 LED 背光特性Color Item Symbol Min Typ Max Unit Condition白色侧背光 正向电压 Vf 2.8 3.0 3.2 V If =140mA4. LCD驱动电源连接方式模块带负电压电路的使用下图方法(电位器可以选10K-20K)模块不带负电压电路的使用下面的方法(电位器可以选10K-20K)5. 接口引脚定义CN1、FFC2:不带控制器的模块使用,其中CN1为单排焊盘插针使用,FFC2为FFC方式使用。
320240A液晶屏详细说明
图形点阵液晶显示模块使用手册LCM320240ALCD MODULE USER MANUAL1一.概述适配 80 系列和 320240A 使用功能强大的 S1D13305(兼容 RaiO 8835)作为控制器。
68 系列 MPU 的两种操作时序电路,通过硬件设置,可选择二者之一。
4 位显示数据线, 传输数据迅速;具有强大的作图功能;支持文本显示、图形显示以及图形和文本混合显示; 具备简捷的 MPU 接口和功能齐全的控制指令集。
采用 COB 工艺制作,结构稳固,使用 寿命长。
1. 供电电压:5.0V±10% 2. 显示模式:320×240 图形点阵 3. 内部固化的 160 种 5×7 点阵的字符,用户最多可自建 64 个 5×7 点阵的字符 4. 文本显示、图形显示以及文本与图形混合显示功能二.外形尺寸1. 外形图160.0± 0.5 152.3± 0.3 141.0± 0.2 V.A.122.0 A.A.115.170 5.0 2-?2.15 4.0 8.54.0 11.0 25.011.00 6.40 1.602.50200.36 0.33109.0± 0.5 104.7± 0.3 101.0± 0.2 V.A.92.0 A.A.86.37 48.26J11 122.86J4 8? 40 3.714.14J2 11.0*23=23.024211.00.36 0.33320*240dots87.02. 主要外形尺寸项 模 视 点 点 距 大 块 体 目 积 域 离 小 标 准 尺 寸 单 mm mm dots mm mm 位 160L×109W×12H 122×92 320×240 0.36×0.36 0.33×0.33行 列 点 阵 数三.硬件说明1. 模块接口 1) 带控制器接口(J1)管脚名称 1 2 3 4 5 6 符号 VSS VDD V0 /WR /RD CS A0(=RS RESET ~ DB7 BLA VEE BLK 电平 0V 5.0V 负压 H/L H/L H/L H/L H/L H/L 5V 负压 0V 功能描述 电源地 电源电压 液晶显示对比度调节端 80 时序:写信号;低有效 /WR=R/W,读写选择信号端 时序:读信号;低有效 68 时序:/RD=E,操作使能信号 片选信号;高有效 高:选择指令寄存器 低:选择数据寄存器 复位信号;低有效 数据总线 背光正 负电源 背光负8 9 ~ 16 17,19 18 2032) 带控制器带触摸屏接口(J2)管脚名称 符号 1 RESET 2 3 4 5 6 ~ 13 14 15 16 17 18 19 20 21 22 23 24 /RD /WR CS A0(=RS ) DB0 ~ DB7 VDD VSS VEE V0 DCLK DOUT DIN T-CS PEN BLA BLK 电平 H/L H/L H/L H/L H/L H/L 5.0V 0V 负压 负压 H/L H/L H/L H/L H/L 5V 0V 功能描述 复位信号;低有效 80 时序:读信号;低有效 68 时序:/RD=E,操作使能信号 80 时序:写信号;低有效 68 时序:/WR=R/W,读写选择信号端 片选信号;高有效 高:选择指令寄存器 低:选择数据寄存器 数据总线 电源电压 电源地 负电源 液晶显示对比度调节端 ADS7843 串行时钟信号 ADS7843 串行数据输出 ADS7843 串行数据输入 ADS7843 片选信号,低有效 ADS7843 背光正 背光负3) 无控制器接口(J3)管脚名称 1-45符号 D0-D3 DIS.O FRM M LP CP VDD VSS VEE V0 F.G电平 H/L H/L H/L H/L H/L H/L 5V 0V 负压 负压 —功能描述 数据总线 显示开关 L:关 H:开 帧信号 交流驱动信号 行锁存信号 数据移位信号 电源电压 电源地 液晶驱动负电压输出 液晶显示对比度调节端 铁框地6 7 8 9 10 11 12 13 1444) 触摸屏接口(J4)管脚名称 1 2 3 4 5 6 7 8 符号 DCLK T-CS DIN BUSY DOUT PEN IN3 IN4 电平 H/L H/L H/L H/L H/L H/L H/L H/L 功能描述 ADS7843 串行时钟信号 ADS7843 片选信号,低有效 ADS7843 串行数据输入 ADS7843 忙信号输出 ADS7843 串行数据输出 ADS7843 中断信号 ADS7843 辅助输入一 ADS7843 辅助输入二2. 原理简图SRAMIC1X4SEG320S1D13305IC2X35V±10% 0V 30Vmax 0~Vdd5COM240320X240DOTSPOWER CIRCUITDC TO DC CIRCUITLED OR CCFL BACKLIGHT3. 最大工作范围1) 逻辑工作电压(Vdd): 2) 电源地(GND): 3) LCD 驱动电压(Vop): 4) 输入电压:4.电气特性(测试条件,Vdd=5.0±10%)1) 输入高电平(Vih) :0.8Vdd~Vdd 2) 输入低电平(Vil): Vss~0.2Vdd 3) 输出高电平(Voh): 2.4Vmin 4) 输出低电平(Vol): 0.4Vmax 5) 模块工作电流: <120mA (不含背光) 6) 侧白光工作电流: 140mA四.模块主要硬件构成说明1. SEL1 脚接低时选择 Intel8080 时序,接高时选择,M68002.忙标志(BF)MPU访问S1D13305不需要判断其是否“忙 , S1D13305随时准备接受MPU访问并在内部时序下及时地把MPU发来的数据、指令就位。
普微38英寸320×240点阵液晶显示模块LM2068E系列
拓蕾徽3.8英寸320×240点阵液暑显示模块LM2068E系列●深圳市拓普微科技开发有限公司郭强LMz068E系列是深圳市拓普微科技开发有限公司开发的3.8英寸QvGA液晶显示模块(320×240点阵,模块尺寸为99.5mm×71.1mm×10.omm,视窗尺寸为79.8mm×60.6mm,点大小为o.24mm×o.24mm),具有结构紧凑、体积轻巧、点阵细腻、对比度高、功耗低、抗干扰强等显著特点,非常适用于医疗仪器、电力仪表、便携式仪器等需要多内容显示或多图形多曲线显示,要求体积小、功耗低等应用领域,例如心电图机、uPs电源、数据采集仪等。
1LM2068E系列的主要特点拓普微LM2068E系列液晶显示模块除具有上述显著特点外,还可提供蓝底白字、白底黑字两种显示效果以供选择,并内置升压电路,工程师可以很方便地应用单电源供电设计电路(3.3v/5V可选),且该模块采用了超亮白色LED背光,保证了极佳的显示效果。
最值得一提的是,LM2068E系列产品采用了EPS()N公司的s1D13700作为液晶显示控制器。
该控制器是替代sEDl335的升级换代产品,接口特性和软件指令基本完全兼容sEDl335,并具有更强大的功能,为正在因SEDl335停产而苦恼的工程师提供了全新的解决方案。
以下是LM2068E系列产品的应用特性;①显示功能强大,可以多画面重叠显示,有多种显示合成关系。
此合成关系将提高显示效果,可实现以像素为单位的上、下、左、右的卷动功能,光标可以上下左右移动,为数据的写入带来了方便。
②能够管理虚拟显示RAM区,即设置一个显示区域。
该区域可以大于实际的显示区域,但管理是同实际显示区域一样,使用水平卷动的方法可以将该部分的内容显示出来。
这样做可以实现曲线连续跟踪的效果。
③内置通用的AScII西文字库以及32KB显示sRAM,节省外部电路空间,同时也提供足够的显示空间。
LCM3202403使用说明书
北京青云创新科技发展有限公司
TEL : 010-62168698
Page 4
北京青云创新
图形点阵模块
LCM3202403
2006 11
极限参数 ( 常温 Ta = 25°C )
特性
符号
电源电压 液晶屏驱动电压 输入电压 工作温度 储存温度
VDD VDD - VO
LEVEL H
L/H L/H L/H
+5V 0V
L/H L/H
帧信号
FUNCTION
数据锁存信号
数据移位信号
交流驱动信号
对比输出
数据信号
高:正常;低:关显示
无连接
背光源正(+)极
背光源负(-)极
-------------------------------------------------------------------------------------------------------------------------------------------------
北京青云创新
图形点阵模块
LCM3202403
2006 11
图形液晶显示模块
LCM3202403
使用说明书
本说明书的内容如有修正,恕不另行通知。未得青云创新的允许,不得以任何理由将 本说明书的内容以电子或机械的方式,将档案转换成其它格式并予以重制、传输。
版权
©2002-08 BEIJING QINGYUN HI-TECH DEVELOPMENT CO.,LTD 版权所有,翻印必究。 2006/11/3 Version: 1.0
单位 V
正向电流 工作温度 存储温度
fc
3.5寸320 480彩色液晶屏资料
Unit
mm -
colors dots
mm o'clock
℃ ℃
Note
-
* Mechanical Information
Item
Min. Typ. Max. Unit
Horizontal(H)
54.94
mm
Module
size
Vertical(V)
85.5
mm
Depth(D)
1.95
mm
Weight
Item
Symbol Min. Typ. Max. Unit Note
Forward Current
IF
-
90
-
mA
Forward Voltage
VF
3.2
V
-
LCM Luminance Uniformity
பைடு நூலகம்
LV
280
300
AVg 80
-
- cd/m2
-
﹪
-
Part. No
TS7035S
REV
V1.0
Date
TOLERANCE UNLESS
OTHERWISE SPECIFIED
X.X±0.3 X.XX±0.2
TS7035S
UNIT DESIGNED(structure) DESIGNED(electron)
APPROVED
DRAWING NAME
mm
ASSEMBLE
Unit Note VmA uA
VDD
V
-
0.2 VDD V -
VDD
V
-
0.2 VDD V -
中显电子有限公司 ZX320240 显示屏电源 PCB 电路板设计说明书
北京中显电子有限公司SPECIFICATIONCUSTOMER :MODULE NO.:ZX ZX320240320240320240XX APPROVED BY:(FOR CUSTOMER USE ONLY )PCB VERSION:DATA:SALES BY APPROVED BY CHECKED BY PREPARED BYISSUED DATE:MODLE NO:RECORDS OF REVISIONDOC.FIRST ISSUEVERSION DATE REVISEDPAGE NO.SUMMARY0 A 2006.07.262007.06.236First issueModify Supply Voltage ForLCD(+700=12.2V)Contents1.Module classification information2.Precautions in Use of LCM3.General Specification4.Absolute Maximum Ratings5.Electrical Characteristics6.Optical Characteristics7.Power Supply for LCD Module8.Contour Drawing&Block Diagram9.Interface Pin Function10.Timing Characteristics11.Reliability12.Backlight Information13.Inspection specification14.Material List of Components for RoHs1.Module Classification InformationZ X320240X-T F H V#P���������Brand:WINSTAR DISPLAY CORPORATION�Display Type:H→Character Type,G→Graphic Type,.X→Tab Type �Display Font:320*240Dots�Model serials number�Backlight Type:N→Without backlightB→EL,Blue greenD→EL,GreenW→EL,WhiteF→CCFL,WhiteY→LED,Yellow Green T→LED,White A→LED,Amber R→LED,RedO→LED,Orange G→LED,Green P→LED,Blue�LCD Mode:B→TN Positive,GrayN→TN Negative,G→STN Positive,GrayY→STN Positive,Yellow GreenM→STN Negative,BlueF→FSTN PositiveT→FSTN Negative�LCD Polarizer Type/ Temperature range/View direction A→Reflective,N.T,6:00D→Reflective,N.T,12:00G→Reflective,W.T,6:00J→Reflective,W.T,12:00B→Transflective,N.T,6:00E→Transflective,N.T.12:00H→Transflective,W.T,6:00K→Transflective,W.T,12:00C→Transmissive,N.T,6:00F→Transmissive,N.T,12:00I→Transmissive,W.T,6:00L→Transmissive,W.T,12:00�Special Code V:Built in Negative Voltage;P:Sunplus IC#:Fit in with the ROHS Directions and regulations2.Precautions in Use of LCD Module(1)Avoid applying excessive shocks to the module or making any alterations or modifications to it.(2)Don’t make extra holes on the printed circuit board,modify its shape or change the components ofLCD Module.(3)Don’t disassemble the LCM.(4)Don’t operate it above the absolute maximum rating.(5)Don’t drop,bend or twist LCM.(6)Soldering:only to the I/O terminals.(7)Storage:please storage in anti-static electricity container and clean environment.3.General SpecificationITEM STANDARD VALUE UNIT Number of dots320x240dotsOutline dimension94.7(W)x83.3(H)x8.1max(T)mmView area81.4(W)x61.0(H)mmActive area76.78(W)x57.58(H)mmDot size0.225(W)x0.225(H)mmDot pitch0.24(W)x0.24(H)mmLCD type FSTN,positive,transflectiveView direction6o’clockBacklight LED,White4.Absolute Maximum RatingsITEM SYMBOL MIN.TYP.MAX.UNIT Operating Temperature T OP-20-+70℃Storage Temperature T ST-30-+80℃Input Voltage V I0-V DD V Supply Voltage For Logic V DD0- 3.5V Supply Voltage For LCD Vo-V SS0-30V DC-DC converter output VEE235.Electrical CharacteristicsITEM SYMBOL CONDITION MIN.TYP.MAX.UNIT Logic Voltage V DD-V SS- 3.0 3.3 3.5VSupply Voltage For LCD Vo-V SSTa=-20℃Ta=25℃Ta=+70℃--12.2-18.7-22.5--VVVInput High Volt.V IH-0.5V DD-V DD V Input Low Volt.V IL-V SS-0.2V DD V Output High Volt.V OH- 2.4--V Output Low Volt.V OL---0.4V Supply Current I DD-20.030.050.0mA6.Optical CharacteristicsITEM SYMBAL CONDITION MIN TYP MAX UNIT View Angle (V)θCR ≧230-60deg.(H)φCR ≧2-45-45deg.Contrast Ratio CR --5--Response TimeT rise --200300ms T fall--150200ms6.1Definitions■View Angles■Contrast Ratio■Response time7.Power Supply for LCD ModuleThe non-specified tolerance of dimension is 0.2mm .DOTS SIZEDETAILT h e n o n-s p e c i f i e d t o l e r a n c e o f d im e n s io n is0.2m m .D O T S S I Z ED E T A I LResetPower ONCL1M*:6800 family or 8080family interface selectable.*CSRA8835Controller32KSRAMCL2DB0~DB3FLMFGNDFrame PADN.V.GeneratorMPUDriverSeg241~320Seg161~240DriverSeg81~160DriverCom161~240Com81~160DriverDriverDB0~DB7A0WRRDPowerCircuitBiasandCom1~80DriverRESInternal contrast adjustment.Seg1~80Driver320X240 DOTVoVRVdd20KVss9.Interface Pin FunctionPin No.Symbol Level Description1V SS Ground2V DD Power supply for Logic3V O(Variable)Operation voltage LCD driving4A0H/L H:Data L:Instruction5WR H8080family:Write signal,6800family:Enable clock6RD L8080family:Read signal,6800family:R/W signal7D0H/L DB0Data bus line8D1H DB1Data bus line9D2H/L DB2Data bus line10D3H/L DB3Data bus line11D4H/L DB4Data bus line12D5H DB5Data bus line13D6H/L DB6Data bus line14D7H/L DB7Data bus line15CS H/L Chip Enable16RES H/L Reset17VEE Positive voltage output18SEL1H/L8080OR6800Family Interface Select;H:68xx,L:80xx19A Power supply for B/L20K Power supply for B/L21DIOFF DISPOFF22BUSY BUSYPage10of21WS-EP-00810.Contour Drawing&Block diagram PLEASE TO CONSUL RA8835SPEC11.RELIABILITY℃Note1:No dew condensation to be observed.Note2:The function test shall be conducted after4hours storage at the normal Temperature and humidity after remove from the test chamber.Note3:Vibration test will be conducted to the product itself without putting it in a container.12.Backlight InformationSpecificationPARAMETER SYMBOL MIN TYP MAX UNIT TEST CONDITIONSupply Current ILED 100120180mA V=3.5VSupply V oltage V 3.4 3.5 3.6V Reverse Voltage VR --5V Luminous Intensity IV160200-CD/M 2ILED=120mA Life Time -50K-Hr.ILED ≦120mA ColorwhiteNote:The LED of B/L is drive by current only,drive voltage is for reference only.drive voltage can make driving current under safety area (current between minimum and maximum maximum))B/LKA RR LCMpin19pin20Drive from pin19,pin2013.Inspection specificationNOItemCriterionAQL01Electrical Testing1.1Missing vertical,horizontal segment,segment contrast defect.1.2Missing character ,dot or icon.1.3Display malfunction.1.4No function or no display.1.5Current consumption exceeds product specifications.1.6LCD viewing angle defect.1.7Mixed product types.1.8Contrast defect.0.6502Black or whitespots onLCD (display only)2.1White and black spots on display ≦0.25mm,no more than three white or black spots present.2.2Densely spaced:No more than two spots or lines within 3mm 2.503LCD black spots,white spots,contamination (non-display)3.1Round type :As following drawingΦ=(x +y )/2SIZE Acceptable Q TYΦ≦0.10Accept no dense 0.10<Φ≦0.2020.20<Φ≦0.2510.25<Φ0 2.53.2Line type :(As following drawing)Length Width Acceptable Q TY---W ≦0.02Accept no denseL ≦3.00.02<W ≦0.032L ≦2.50.03<W ≦0.05---0.05<W As round type2.504PolarizerbubblesIf bubbles are visible,judge using black spot specifications,not easy to find,must check in specify direction.Size ΦAcceptable Q TY Φ≦0.20Accept no dense0.20<Φ≦0.5030.50<Φ≦1.0021.00<Φ0Total Q TY 32.5NO Item CriterionAQL05Scratches Follow NO.3LCD black spots,white spots,contamination06Chipped glassSymbols Define:x:Chip length y:Chip width z:Chip thickness k:Seal width t:Glass thickness a:LCD side length L:Electrode pad length:6.1General glass chip :6.1.1Chip on panel surface and crack between panels:z:Chip thickness y:Chip width x:Chip lengthZ≦1/2t Not over viewing area x≦1/8a 1/2t<z≦2t Not exceed 1/3k x≦1/8a ⊙If there are 2or more chips,x is total length of each chip.6.1.2Corner crack:z:Chip thickness y:Chip width x:Chip lengthZ≦1/2t Not over viewing area x≦1/8a 1/2t<z≦2t Not exceed 1/3k x≦1/8a ⊙If there are 2or more chips,x is the total length of each chip.2.5NO Item CriterionAQL06Glass crack Symbols:x:Chip length y:Chip width z:Chip thicknessk:Seal width t:Glass thickness a:LCD side lengthL:Electrode pad length6.2Protrusion over terminal:6.2.1Chip on electrode pad:y:Chip width x:Chip length z:Chip thicknessy≦0.5mm x≦1/8a0<z≦t6.2.2Non-conductive portion:y:Chip width x:Chip length z:Chip thicknessy≦L x≦1/8a0<z≦t ⊙If the chipped area touches the ITO terminal,over2/3of the ITO must remain and be inspected according to electrode terminalspecifications.⊙If the product will be heat sealed by the customer,the alignment mark not be damaged.6.2.3Substrate protuberance and internal crack.y:width x:lengthy≦1/3L x≦a2.5NO Item Criterion AQLNO Item Criterion AQL12Generalappearance12.1No oxidation,contamination,curves or,bends on interface Pin(OLB)of TCP.12.2No cracks on interface pin(OLB)of TCP.12.3No contamination,solder residue or solder balls on product.12.4The IC on the TCP may not be damaged,circuits.12.5The uppermost edge of the protective strip on the interface pinmust be present or look as if it cause the interface pin to sever.12.6The residual rosin or tin oil of soldering(component or chipcomponent)is not burned into brown or black color.12.7Sealant on top of the ITO circuit has not hardened.12.8Pin type must match type in specification sheet.12.9LCD pin loose or missing pins.12.10Product packaging must the same as specified on packagingspecification sheet.12.11Product dimension and structure must conform to productspecification sheet.2.50.652.52.52.52.52.50.650.650.650.6514.Material List of Components for RoHs1.WINSTAR Display Co.,Ltd hereby declares that all of or part of products(with the mark “#”in code),including,but not limited to,the LCM,accessories or packages,manufactured and/or delivered to your company(including your subsidiaries and affiliated company) directly or indirectly by our company(including our subsidiaries or affiliated companies)do not intentionally contain any of the substances listed in all applicable EU directives and regulations,including the following substances.Exhibit A:The Harmful Material ListMaterial(Cd)(Pb)(Hg)(Cr6+)PBBs PBDEsLimited Value 100ppm1000ppm1000ppm1000ppm1000ppm1000ppmAbove limited value is set up according to RoHS.2.Process for RoHS requirement:(1)Use the Sn/Ag/Cu soldering surface;the surface of Pb-free solder is rougher than we used before.(2)Heat-resistance temp.:Reflow:250℃,30seconds Max.;Connector soldering wave or hand soldering:320℃,10seconds max.(3)Temp.curve of reflow,max.Temp.:235±5℃;Recommended customer’s soldering temp.of connector:280℃,3seconds.winstar LCM Sample Estimate Feedback SheetModule Number:Page:11、Panel Specification:1.Panel Type:□Pass□NG,2.View Direction:□Pass□NG,3.Numbers of Dots:□Pass□NG,4.View Area:□Pass□NG,5.Active Area:□Pass□NG,6.Operating Temperature:□Pass□NG,7.Storage Temperature:□Pass□NG,8.Others:2、Mechanical Specification:1.PCB Size:□Pass□NG,2.Frame Size:□Pass□NG,3.Materal of Frame:□Pass□NG,4.Connector Position:□Pass□NG,5.Fix Hole Position:□Pass□NG,6.Backlight Position:□Pass□NG,7.Thickness of PCB:□Pass□NG,8.Height of Frame to PCB:□Pass□NG,9.Height of Module:□Pass□NG,10.Others:□Pass□NG,3、Relative Hole Size:1.Pitch of Connector:□Pass□NG,2.Hole size of Connector:□Pass□NG,3.Mounting Hole size:□Pass□NG,4.Mounting Hole Type:□Pass□NG,5.Others:□Pass□NG,4、Backlight Specification:1.B/L Type:□Pass□NG,2.B/L Color:□Pass□NG,3.B/L Driving Voltage(Reference for LED Type):□Pass□NG,4.B/L Driving Current:□Pass□NG,5.Brightness of B/L:□Pass□NG,6.B/L Solder Method:□Pass□NG,7.Others:□Pass□NG,>>Go to page2<<Module Number:Page:25、Electronic Characteristics of Module:1.Input Voltage:□Pass□NG,2.Supply Current:□Pass□NG,3.Driving Voltage for LCD:□Pass□NG,4.Contrast for LCD:□Pass□NG,5.B/L Driving Method:□Pass□NG,6.Negative Voltage Output:□Pass□NG,7.Interface Function:□Pass□NG,8.LCD Uniformity:□Pass□NG,9.ESD test:□Pass□NG,10.Others:□Pass□NG,6、Summary:Sales signature:Customer Signature:Date://Page21of21WS-EP-00810(A)。
240320触摸屏液晶ILI9325驱动程序
/*********************************************************************** ILI9325 TFT彩屏驱动程序*********************************************************************** 文件名: ILI9325.c* 描述:* 公司: 爱晶电子* 作者日期注释*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * 王伟民2010/3/20 原始文件********************************************************************/#include "stc.h"//#include <stdio.h>#include "ILI9325.h"#include "delay.h"//=============================================================//TFT初始化//功能:该函数用于初始化TFT彩屏模块。
//入口参数: 无//出口参数: 无void ILI9325_initial(void){TFT_CS=1;delayms(5);TFT_RST=0;delayms(5);TFT_RST=1;delayms(50);//可以适当调整延时,保障稳定显示write_cmd_data(0x0001,0x0100); //源扫描设置SS=0, 输出的移动方向是从S1到S720 //(源扫描设置SS=1, 输出的移动方向是从S720到S1)//SM=0,逐行扫描(SM=1,隔行扫描)write_cmd_data(0x0002,0x0700); //B/C=1、EOR=1:行倒置(B/C=0:帧/场倒置)write_cmd_data(0x0003,0x1030); //AM=0,地址在水平方向自动加1//I/D[1:0] = 11:水平垂直方向均增加//BGR=1:采用BGR格式//TRI=0、DFM=*:8位机、两次数据传送write_cmd_data(0x0004,0x0000); //比例缩放设置:不缩放//显示控制write_cmd_data(0x0008,0x0207); //设置后边沿和前沿write_cmd_data(0x0009,0x0000);//设置非显示区时间间隔ISC[3:0] write_cmd_data(0x000A,0x0000); //帧标记功能write_cmd_data(0x000C,0x0000);//RGB显示接口控制1write_cmd_data(0x000D,0x0000);//帧标记位置write_cmd_data(0x000F,0x0000);//RGB显示接口控制2//电源配置write_cmd_data(0x0010,0x0000);write_cmd_data(0x0011,0x0007);write_cmd_data(0x0012,0x0000);write_cmd_data(0x0013,0x0000);//vghwrite_cmd_data(0x0010,0x1290);write_cmd_data(0x0011,0x0227);//delayms(100);//vregioutwrite_cmd_data(0x0012,0x001d); //0x001b//delayms(100);//vom amplitudewrite_cmd_data(0x0013,0x1500);//delayms(100);//vom Hwrite_cmd_data(0x0029,0x0018);write_cmd_data(0x002B,0x000D);//伽马校正write_cmd_data(0x0030,0x0004);write_cmd_data(0x0031,0x0307);write_cmd_data(0x0032,0x0002);//0006write_cmd_data(0x0035,0x0206);write_cmd_data(0x0036,0x0408);write_cmd_data(0x0037,0x0507);write_cmd_data(0x0038,0x0204);//0200write_cmd_data(0x0039,0x0707);write_cmd_data(0x003C,0x0405);//0504write_cmd_data(0x003D,0x0F02);//窗口设置write_cmd_data(0x0050,0x0000);//水平起始位置write_cmd_data(0x0051,0x00EF);//水平终止位置write_cmd_data(0x0052,0x0000);//垂直起始位置write_cmd_data(0x0053,0x013F);//垂直终止位置write_cmd_data(0x0060,0xA700);//门扫描设置,GS=1:从G320扫描到G1,320线write_cmd_data(0x0061,0x0001);write_cmd_data(0x006A,0x0000);//write_cmd_data(0x0080,0x0000);write_cmd_data(0x0081,0x0000);write_cmd_data(0x0082,0x0000);write_cmd_data(0x0083,0x0000);write_cmd_data(0x0084,0x0000);write_cmd_data(0x0085,0x0000);//write_cmd_data(0x0090,0x0010);write_cmd_data(0x0092,0x0600);write_cmd_data(0x0093,0x0003);write_cmd_data(0x0095,0x0110);write_cmd_data(0x0097,0x0000);write_cmd_data(0x0098,0x0000);write_cmd_data(0x0007,0x0133);//write_cmd_data(0x0022);}//=============================================================//写命令//功能:写一个命令到TFT控制器。
波士顿3.2英寸320x240触摸LCD显示屏用户手册说明书
3.2inch 320x240 Touch LCD (C) User Manual Key ParametersLCD Controller ILI9325Touch Screen Controller XPT2046LCD Type TFTLCD Interface 16-bit parallelTouch Screen Interface SPIBacklight LEDColors 65536Resolution 320*240 DOTSContents3.2inch 320x240 Touch LCD (C) User Manual (1)Key Parameters (1)1. Hardware Resources (2)1.1 ILI9325 (2)1.2 XPT2046 (4)2. LCD Pin Description (5)3. Example Analysis (6)1. Hardware Resources1.1 ILI9325● ILI9325C is a 262,144-color one-chip SoC driver for a-TFT liquid crystal display withresolution of 240RGBx320 dots, comprising a 720-channel source driver, a 320-channel gate driver, 172,800 bytes RAM for graphic data of 240RGBx320 dots, and power supply circuit. ● ILI9325C has five kinds of system interfaces which are i80-system MPU interface(8-/9-/16-/18-bit bus width), VSYNC interface (system interface + VSYNC, internal clock,DB[17:0]), serial data transfer interface (SPI), RGB 6-/16-/18-bit interface (DOTCLK, VSYNC, HSYNC, ENABLE, DB[17:0]).The following figure shows correspondence between 18-bit RGB Assignment and 16-Bit GRAM.You can see from figure, the useful data bus interfaces of ILI9325 under 16-bit mode are: D17~D10 and D8~D1. D9 and D0 are unused. Actually, D9 and D0 of ILI9341 are not welded in this LCD module. D17~D10 and D8~D1 of ILI9325 correspond to D15~D0 of the MCU. The lower five bits of the 16-bit MCU data indicate blue. The middle six bits indicate green. The higher five bits indicate red. When the value bigger, the color deeper.Important Register IntroductionPlease see ILI9325 datasheet for more details about ILI9325. Here are just some important register introduction.Entry Mode (R03h)R/W RS D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 W 1TRI DFM 0 BGR 0 0 0 0 ORG 0 I/D1 I/D0 AM 0 0 0 Default11AM Control the GRAM update direction.When AM = “0”, the address is updated in horizontal writing direction. When AM = “1”, the address is updated in vertical writing direction.I/D[1:0] Control the address counter (AC) to automatically increase or decrease by 1 when update one pixel display data. Refer to the following figure for the details.GRAM Dat aRGB Ass ignment Source OutputPini80/M68 system 16-bit data bus interfaceORG Moves the origin address according to the ID setting when a window address area is made. This function is enabled when writing data with the window address area usinghigh-speed RAM write.ORG = “0”: The origin address is not moved. In this case, specify the address to start writeoperation according to the GRAM address map within the window address area.ORG = “1”: The original address “00000h” moves according to the I/D[1:0] setting.BGR Swap the R and B order of written data.BGR=”0”: Follow the RGB order to write the pixel data.BGR=”1”: Swap the RGB data to BGR in writing into GRAM.GRAM Horizontal/Vertical Address Set (R20h, R21h)R/W RS D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 W 1 0 0 0 0 0 0 0 0 AD7 AD6 AD5 AD4 AD3 AD2 AD1 AD0 W 1 0 0 0 0 0 0 0 AD16 AD15 AD14 AD13 AD12 AD11 AD10 AD9 AD8 Default 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0AD[16:0] Set the initial value of address counter (AC).The address counter (AC) is automatically updated in accordance to the setting of theAM, I/D bits as data is written to the internal GRAM. The address counter is notautomatically updated when read data from the internal GRAM.AD[16:0] GRAM Data Map17’h00000 ~ 17’h000EF 1st line GRAM Data17’h00100 ~ 17’h001EF 2nd line GRAM Data17’h00200 ~ 17’h002EF 3rd line GRAM Data17’h00300 ~ 17’h003EF 4th line GRAM Data17’h13D00 ~ 17’ h13DEF 318th line GRAM Data17’h13E00 ~ 17’ h13EEF 319th line GRAM Data17’h13F00 ~ 17’h13FEF 320th line GRAM DataWrite Data to GRAM (R22h)R/W RSD17 D16 D15 D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4D3D2D1D0W1RAM write data (WD[17:0], the DB[17:0] pin assignment differs for each interface.This register is the GRAM access port. When update the display data through this register, the address counter (AC) is increased/decreased automatically.GRAM Address Map & Read/WriteILI9325C has an internal graphics RAM (GRAM) of 172,800 bytes to store the display data and one pixel is constructed of 18 bits. The GRAM can be accessed through the i80 system, SPI and RGB interfaces.1.2 XPT2046● The XPT2046 is a 4-wire resistive touch screen controller that incorporates a 12-bit 125kHz sampling SAR typeA/D converter.● The XPT2046 supports digital I/O interface voltage from 1.5V to VCC in order toconnect low voltage uP .● The XPT2046 can detect the pressed screen location by performing two A/Dconversions. In addition to location, the XPT2046 also measures touch screenpressure.On-chip VREF can be utilized for analog auxiliary input, temperature measurement and battery monitoring withthe ability to measure voltage from 0V to 5V.i8018-/16-bit S ys te m Bus Inte rfa ce Tim ingW rite “0022h "to ind e x re g is te rW rite G R AM “d a ta "N th p ixe lnWR DB[17:0]nR D R S nC S (a )Write to G R AMnWR DB[17:0]nR D R S nC S (b)R e a d from G R AMW rite G R AM “d a ta "(N+1)th p ixe lW rite G R AM “d a ta "(N+2)th p ixe lW rite G R AM “d a ta "(N+3)th p ixe lW rite “0022h "to ind e x re g is te r1s t R e a d “d a ta "N th p ixe lD u m m y R e a d2n d R e a d “d a ta "(N+1)th p ixe l3rd R e a d “d a ta "(N+2)th p ixe l● The XPT2046 also has an on-chip temperature sensor .● The XPT2046 is available in 16pin QFN thin package(0.75mm in height) and has theoperating temperature range of -40°C to +85°C2. LCD Pin DescriptionPIN NO. SYMBOL DESCRIPTION FUNCTION15V5V power supply When powered from 5V supply,Pin 1 & Pin 2 as power input,Pin 33 & Pin 34 provide 3.3V output. 2 GND Ground GND3 D0 Data pinD0-D154 D15 D26 D37 D48 D59 D6 10 D7 11 D8 12 D9 13 D10 14 D11 15 D12 16 D13 17 D14 18 D15 19 CS LCD chip select Low active20 RS Instruction/Data register selection RS = 1 : Data RegisterRS = 0 : Instruction Register 21 WR Write WR = 0,RD = 1 22 RD ReadWR = 1,RD = 023 RESET Reset thecontroller chip Low active24 NC Not connect Not connect 25 BLVCC 5V or 3.3V Backlight VCC 26 BLGND Ground Backlight GND27BLCNTBacklight brightness adjustmentControl the backlight brightness via PWM28 TP_IRQTouch screeninterruptLow level while the touch screen detects pressing29 TP_CS Touch screenchip select Low active30 TP_SCK Touch screen SPI clockconnects to SPI SCK31 TP_SI Touch screendata inputconnects to SPI MOSI32 TP_SO Touch screendata outputconnects to SPI MISO333.3V3.3V power supply When powered from 3.3V supply, Pin 33 & Pin 34 as power input,Pin 1 & Pin 2 keep NC. 34 GNDGround3. Example AnalysisWe use STM32 development board (MCU STM32F103RCT6 onboard) to describe how to use the LCD. You can use the LCD with other similar products.The following figure is a schematic of the LCD Port of the development board.LCD Demo ProcedureSource Code Analysis/* The following macro defines image rotation. *///#define DISP_ORIENTATION 0//#define DISP_ORIENTATION 90//#define DISP_ORIENTATION 180#define DISP_ORIENTATION 270#define Set_Cs GPIO_SetBits(GPIOC, GPIO_Pin_6); //CS=1;#define Clr_Cs GPIO_ResetBits(GPIOC, GPIO_Pin_6); //CS=0;#define Set_Rs GPIO_SetBits(GPIOC, GPIO_Pin_7); //RS=1;#define Clr_Rs GPIO_ResetBits(GPIOC, GPIO_Pin_7); //RS=0;#define Set_nWr GPIO_SetBits(GPIOC, GPIO_Pin_1); //WR=1;#define Clr_nWr GPIO_ResetBits(GPIOC, GPIO_Pin_1); //WR=0;#define Set_nRd GPIO_SetBits(GPIOC, GPIO_Pin_2); //RD=1;#define Clr_nRd GPIO_ResetBits(GPIOC, GPIO_Pin_2); // RD=0;/* Command writing function */__inline void LCD_WriteIndex(uint16_t index){Clr_Rs; //RS=0Set_nRd; //RD=0LCD_Delay(0); //DelayGPIOB->ODR = index; /* index is an command’s address*/LCD_Delay(0); //DelayClr_nWr; //WR=0Set_nWr; //WR=1}/* Data writing function */__inline void LCD_WriteData(uint16_t data){Set_Rs; //RS=1LCD_Delay(0); //DelayGPIOB->ODR = data; /* Data writing address*/LCD_Delay(0); //DelayClr_nWr; //WR=0Set_nWr; //WR=1}/* Data reading function */__inline uint16_t LCD_ReadData(void){uint16_t value;Set_Rs;Set_nWr;Clr_nRd;GPIOB->CRH = 0x44444444; //Set PB0-PB15 as input pinGPIOB->CRL = 0x44444444;value = GPIOB->IDR; //Reads dataGPIOB->CRH = 0x33333333; //Set PB0-PB15 as output pinGPIOB->CRL = 0x33333333;Set_nRd;return value;}/******************************************************************************Write data to a specified address, LCD_Reg indicates register address while LCD_RegValue indicates register value.******************************************************************************/__inline void LCD_WriteReg(uint16_t LCD_Reg,uint16_t LCD_RegValue) {Clr_Cs;LCD_WriteIndex(LCD_Reg); //Writing command, LCD_Reg is an address to be written in.LCD_WriteData(LCD_RegValue); //Writes data.Set_Cs;}/******************************************************************************Read data from a specified address, LCD_Reg indicates register address. This function will return a value from the address.******************************************************************************/__inline uint16_t LCD_ReadReg(uint16_t LCD_Reg){uint16_t LCD_RAM;Clr_Cs;LCD_WriteIndex(LCD_Reg); //Writing command, LCD_Reg is an address to be read from.LCD_RAM = LCD_ReadData(); //Reads dataSet_Cs;return LCD_RAM;}//That’s the basic read-and-write functions by IO emulation. If you want use FSMC from STM32 to control the LCD, you can read another demo LCD + TouchPanel(8080 FSMC)/******************************************************************************This is LCD initialization function. The initialization value of theLCD is provided by the factory. So usually you can copy them directlyto initialize LCD. Please refer to ILI9325 datasheets for more details.******************************************************************************/void LCD_Initializtion(void){uint16_t DeviceCode;LCD_Configuration(); //LCD InitializationGPIO_ResetBits(GPIOC, GPIO_Pin_0); /* LCD reset*/delay_ms(100);GPIO_SetBits(GPIOC, GPIO_Pin_0);GPIO_SetBits(GPIOA, GPIO_Pin_3); /* Enable back light */DeviceCode = LCD_ReadReg(0x0000); /* Reads ID */if( DeviceCode == 0x9325 || DeviceCode == 0x9328 ){LCD_WriteReg(0x00e7,0x0010);LCD_WriteReg(0x0000,0x0001);LCD_WriteReg(0x0001,(0<<10)|(1<<8));LCD_WriteReg(0x0002,0x0700);#if (DISP_ORIENTATION == 0)LCD_WriteReg(0x0003,(1<<12)|(1<<5)|(1<<4)|(0<<3));#elif (DISP_ORIENTATION == 90)LCD_WriteReg(0x0003,(1<<12)|(0<<5)|(1<<4)|(1<<3));#elif (DISP_ORIENTATION == 180)LCD_WriteReg(0x0003,(1<<12)|(0<<5)|(0<<4)|(0<<3));#elif (DISP_ORIENTATION == 270)LCD_WriteReg(0x0003,(1<<12)|(1<<5)|(0<<4)|(1<<3));#endifLCD_WriteReg(0x0004,0x0000);LCD_WriteReg(0x0008,0x0207);LCD_WriteReg(0x0009,0x0000);LCD_WriteReg(0x000a,0x0000);LCD_WriteReg(0x000c,0x0001);LCD_WriteReg(0x000d,0x0000);LCD_WriteReg(0x000f,0x0000);/* Power On sequence */LCD_WriteReg(0x0010,0x0000);LCD_WriteReg(0x0011,0x0007);LCD_WriteReg(0x0012,0x0000);LCD_WriteReg(0x0013,0x0000);delay_ms(50); /* delay 50 ms */LCD_WriteReg(0x0010,0x1590);LCD_WriteReg(0x0011,0x0227);delay_ms(50); /* delay 50 ms */LCD_WriteReg(0x0012,0x009c); delay_ms(50); /* delay 50 ms */LCD_WriteReg(0x0013,0x1900);LCD_WriteReg(0x0029,0x0023);LCD_WriteReg(0x002b,0x000e);delay_ms(50); /* delay 50 ms */delay_ms(50); /* delay 50 ms */LCD_WriteReg(0x0030,0x0007);LCD_WriteReg(0x0031,0x0707);LCD_WriteReg(0x0032,0x0006);LCD_WriteReg(0x0035,0x0704);LCD_WriteReg(0x0036,0x1f04);LCD_WriteReg(0x0037,0x0004);LCD_WriteReg(0x0038,0x0000);LCD_WriteReg(0x0039,0x0706);LCD_WriteReg(0x003c,0x0701);LCD_WriteReg(0x003d,0x000f);delay_ms(50); /* delay 50 ms */LCD_WriteReg(0x0050,0x0000);LCD_WriteReg(0x0051,0x00ef);LCD_WriteReg(0x0052,0x0000);LCD_WriteReg(0x0053,0x013f);LCD_WriteReg(0x0060,0xa700);LCD_WriteReg(0x0061,0x0001);LCD_WriteReg(0x006a,0x0000);LCD_WriteReg(0x0080,0x0000);LCD_WriteReg(0x0081,0x0000);LCD_WriteReg(0x0082,0x0000);LCD_WriteReg(0x0083,0x0000);LCD_WriteReg(0x0084,0x0000);LCD_WriteReg(0x0085,0x0000);LCD_WriteReg(0x0090,0x0010);LCD_WriteReg(0x0092,0x0600);LCD_WriteReg(0x0093,0x0003);LCD_WriteReg(0x0095,0x0110);LCD_WriteReg(0x0097,0x0000);LCD_WriteReg(0x0098,0x0000);/* display on sequence */LCD_WriteReg(0x0007,0x0133);}delay_ms(50);}/**************************************************************** **************Set window coordinate.***************************************************************** ************/static void LCD_SetCursor( uint16_t Xpos, uint16_t Ypos ){uint16_t temp;#if (DISP_ORIENTATION == 0)#elif (DISP_ORIENTATION == 90)temp = Xpos;Xpos =Ypos;Ypos = MAX_X - 1 - temp;#elif (DISP_ORIENTATION == 180)Xpos = MAX_X - 1 - Xpos;Ypos = MAX_Y - 1 - Ypos;#elif (DISP_ORIENTATION == 270)temp = Ypos;Ypos = Xpos;Xpos = MAX_Y - 1 - temp;#endifLCD_WriteReg(0x0020, Xpos); // Sets the horizontal position X LCD_WriteReg(0x0021, Ypos); // Sets the vertical position Y}/**************************************************************** **************Clear the screen and fill it with one color.***************************************************************** ************/void LCD_Clear(uint16_t Color){uint32_t index=0;LCD_SetCursor(0,0); //Set cursor coordinate X, YClr_Cs;LCD_WriteIndex(0x0022);//Start to write data into GRAMfor( index = 0; index < MAX_X * MAX_Y; index++ ){LCD_WriteData(Color);}Set_Cs;}int main(void){//Delay and initialize your systemLCD_Initializtion(); //LCD initialization//LCD touch panel initializaionLCD_Clear(Red); //Clear the LCD with filled with red.//You can fill functions to calibrate touch screen./* Infinite loop */while (1){//You can fill functions to show touch coordinate on the LCD. }}。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
/*程序名称:T6963液晶控制程序 for 51程序版本:1.0使用芯片:51编译器:SDCC作者:残剑饮血(master@)最后更新:2008年9月29日 20时14分16秒*/#ifndef LCD_T6963_H_INCLUDED#define LCD_T6963_H_INCLUDED/********液晶参数***********/#define LCD_T6963_width 240 //液晶宽度#define LCD_T6963_high 64#define LCD_T6963_FONT 8 // 8*8 6*8字体设置#define LCD_T6963_width_byte (LCD_T6963_width / LCD_T6963_FONT) #define LCD_T6963_TEXT_ADDR_LSB 0x00 //文本地址起始低位#define LCD_T6963_TEXT_ADDR_MSB 0x00 //文本地址起始高位#define LCD_T6963_IMG_ADDR_LSB 0x00 //图形地址起始低位#define LCD_T6963_IMG_ADDR_MSB 0x08 //图形地址起始高位/********液晶参数***********//********硬件连接设置**********/#define LCD_T6963_WD P3_4#define LCD_T6963_RD P3_6#define LCD_T6963_CE P3_5#define LCD_T6963_CD P2_6#define LCD_T6963_RST P2_4#define LCD_T6963_FS P2_2 //字体设置#define LCD_T6963_PORT P0 //液晶数据线所在的端口/********硬件连接设置**********//*1:指针设置指令D1,D2,(0x20 | N)N 指令代码功能 D1 D2N=1:0x21 光标指针设置水平位置(低七位) 垂直位置(低五位) N=2:0x22 CGRAM偏置地址设置地址(低五位) 0x00N=4:0x24 地址指针位置低字节高字节2:显示区域设置D1,D2,(0x40 | N)N 指令代码功能 D1 D2N=0:0x41 文本区首地址低字节高字节N=1:0x41 文本区宽度(字节) 字节数 0x00N=2:0x42 图形区首址低字节高字节N=3:0x43 图形区宽度(字节) 字节数 0x003:显示方式设置(0B 1 0 0 0 N3 N2 N1 N0)(0x80 | N)(无参数)N2 N1 N0 指令(不含N3) 指令代码显示方式0 0 0 0x80 逻辑"或"合成0 0 1 0x81 逻辑"异或"合成0 1 1 0x83 逻辑"与"合成1 0 0 0x84 文本特征(将图形区改为文本特征区)文本特征规则: D7 D6 D5 D4 D3 D2 D1 D0* * * * D3 D2 D1 D0 ( D3=1为闪烁, D3=0为不闪烁)0 0 0 正常显示1 0 1 负向显示0 1 1 禁止显示,空白4:显示开关设置(0B 1 0 0 1 N3 N2 N1 N0)(0x90 | N)(无参数)N0:1/0 光标闪烁开启/关闭N1:1/0 光标显示开启/关闭N2:1/0 文本显示开启/关闭N3:1/0 图形显示开启/关闭5:光标开关选择(0xA0 | N)(无参数) 光标开关为8点 X N行 N为0-76:自动读写设置(0xB0 | N)(无参数)N 指令代码功能N=0:0xB0 自动写设置N=2:0xB3 自动写结束N=1:0xB2 自动读设置N=3:0xB3 自动读结束7:单次读写指令D1,(0xC0 | N)N 指令代码功能N=0:0xC0 数据写,地址+1N=1:0xC1 数据读,地址+1N=2:0xC2 数据写,地址-1N=3:0xC3 数据读,地址-1N=4:0xC4 数据写,地址不变N=5:0xC5 数据读,地址不变*/unsigned char LCD_T6963_READ_STATE(unsigned char in)//返回状态值参数为需要检查的位低有效示例:while(LCD_T6963_READ_STATE(0xFC))刚为等待最低两位为高{unsigned char a;LCD_T6963_PORT = 0xFF;LCD_T6963_CD = 1;LCD_T6963_RD = 0;//delay_ms(1);a = LCD_T6963_PORT;LCD_T6963_RD = 1;return ~(a | in);}void LCD_T6963_WRITE_DATA(unsigned char write_data)//写数据{while(LCD_T6963_READ_STATE(0xFC));LCD_T6963_CD = 0;LCD_T6963_PORT = write_data;LCD_T6963_WD = 0;//delay_ms(1);LCD_T6963_WD = 1;}void LCD_T6963_WRITE_CMD(unsigned char write_cmd)//写命令{while(LCD_T6963_READ_STATE(0xFC));LCD_T6963_CD = 1;LCD_T6963_PORT = write_cmd;LCD_T6963_WD = 0;//delay_ms(1);LCD_T6963_WD = 1;}void LCD_T6963_INIT(void)//T6963初始化{unsigned int i;LCD_T6963_RST = 0;// delay_ms(100);LCD_T6963_RST = 1;LCD_T6963_CE = 0;LCD_T6963_CD = 1;LCD_T6963_RD = 1;LCD_T6963_WD = 1;#if LCD_T6963_FONT == 8LCD_T6963_FS = 0;//设置字体为8*8#endif#if LCD_T6963_FONT == 6LCD_T6963_FS = 1;//设置字体为6*8#endif/**********设置液晶参数************/LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_MSB);LCD_T6963_WRITE_CMD(0x40); //设置文本显示区域首地址LCD_T6963_WRITE_DATA(LCD_T6963_width_byte);LCD_T6963_WRITE_DATA(0x00);LCD_T6963_WRITE_CMD(0x41); //设置文本显示区域所占宽度如240X64为240/8=30ByteLCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_MSB);LCD_T6963_WRITE_CMD(0x42); //设置图形区域首地址LCD_T6963_WRITE_DATA(LCD_T6963_width_byte);LCD_T6963_WRITE_DATA(0x00);LCD_T6963_WRITE_CMD(0x43); //图形区域宽度如240X64为240/8=30Byte/**********设置液晶参数************//*********全部填0***********/LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_MSB);LCD_T6963_WRITE_CMD(0x24); //文体区域起始地址LCD_T6963_WRITE_CMD(0xB0); //连续写for(i=0;i<(LCD_T6963_width / LCD_T6963_FONT * LCD_T6963_high / 8);i++){LCD_T6963_WRITE_DATA(0x00);}LCD_T6963_WRITE_CMD(0xB2); //连续写结束LCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_MSB);LCD_T6963_WRITE_CMD(0x24); //图形区域起始地址LCD_T6963_WRITE_CMD(0xB0); //连续写for(i=0;i<(LCD_T6963_width / LCD_T6963_FONT * LCD_T6963_high);i++) {LCD_T6963_WRITE_DATA(0x00);}LCD_T6963_WRITE_CMD(0xB2); //连续写结束/*********全部填0***********/LCD_T6963_WRITE_CMD(0xA0 | 1); //设置光标大小 0-7LCD_T6963_WRITE_CMD(0x80 | 0); //显示方式设置LCD_T6963_WRITE_CMD(0x9C); //显示开关设置}#endif // LCD_T6963_H_INCLUDED////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// 程序名称:T6963液晶控制程序 for AVR程序版本:1.0使用芯片:M16编译器:AVR-GCC作者:残剑饮血(master@)最后更新:2008年9月29日 21时00分30秒*/#ifndef LCD_T6963_H_INCLUDED#define LCD_T6963_H_INCLUDED#include <util/delay.h>/********液晶参数***********/#define LCD_T6963_width 240 //液晶宽度#define LCD_T6963_high 64#define LCD_T6963_FONT 8 // 8*8 6*8字体设置#define LCD_T6963_width_byte (LCD_T6963_width / LCD_T6963_FONT) #define LCD_T6963_TEXT_ADDR_LSB 0x00 //文本地址起始低位#define LCD_T6963_TEXT_ADDR_MSB 0x00 //文本地址起始高位#define LCD_T6963_IMG_ADDR_LSB 0x00 //图形地址起始低位#define LCD_T6963_IMG_ADDR_MSB 0x08 //图形地址起始高位//请在最后设置显示模式控制/********液晶参数***********//********硬件连接设置**********/#define LCD_T6963_PORT PORTB //液晶数据线所在的端口#define LCD_T6963_PORT_STATE DDRB#define LCD_T6963_PORT_INPUT PINB#define LCD_T6963_WD PD4 // PIN 5#define LCD_T6963_WD_INIT DDRD |= (1<<LCD_T6963_WD)#define LCD_T6963_WD_0 PORTD &= ~(1<<LCD_T6963_WD)#define LCD_T6963_WD_1 PORTD |= (1<<LCD_T6963_WD)#define LCD_T6963_RD PD5 // PIN 6#define LCD_T6963_RD_INIT DDRD |= (1<<LCD_T6963_RD)#define LCD_T6963_RD_0 PORTD &= ~(1<<LCD_T6963_RD)#define LCD_T6963_RD_1 PORTD |= (1<<LCD_T6963_RD)#define LCD_T6963_CE PD6 // PIN 7#define LCD_T6963_CE_INIT DDRD |= (1<<LCD_T6963_CE)#define LCD_T6963_CE_0 PORTD &= ~(1<<LCD_T6963_CE)#define LCD_T6963_CE_1 PORTD |= (1<<LCD_T6963_CE)#define LCD_T6963_CD PC7 // PIN 8#define LCD_T6963_CD_INIT DDRC |= (1<<LCD_T6963_CD)#define LCD_T6963_CD_0 PORTC &= ~(1<<LCD_T6963_CD)#define LCD_T6963_CD_1 PORTC |= (1<<LCD_T6963_CD)#define LCD_T6963_RST PC6 // PIN 10#define LCD_T6963_RST_INIT DDRC |= (1<<LCD_T6963_RST)#define LCD_T6963_RST_0 PORTC &= ~(1<<LCD_T6963_RST)#define LCD_T6963_RST_1 PORTC |= (1<<LCD_T6963_RST)#define LCD_T6963_FS PC2 //字体设置#define LCD_T6963_FS_INIT DDRC |= (1<<LCD_T6963_FS)#define LCD_T6963_FS_0 PORTC &= ~(1<<LCD_T6963_FS)#define LCD_T6963_FS_1 PORTC |= (1<<LCD_T6963_FS)/********硬件连接设置**********//*1:指针设置指令D1,D2,(0x20 | N)N 指令代码功能 D1 D2N=1:0x21 光标指针设置水平位置(低七位) 垂直位置(低五位) N=2:0x22 CGRAM偏置地址设置地址(低五位) 0x00N=4:0x24 地址指针位置低字节高字节2:显示区域设置D1,D2,(0x40 | N)N 指令代码功能 D1 D2N=0:0x41 文本区首地址低字节高字节N=1:0x41 文本区宽度(字节) 字节数 0x00N=2:0x42 图形区首址低字节高字节N=3:0x43 图形区宽度(字节) 字节数 0x003:显示方式设置(0B 1 0 0 0 N3 N2 N1 N0)(0x80 | N)(无参数)N2 N1 N0 指令(不含N3) 指令代码显示方式0 0 0 0x80 逻辑"或"合成0 0 1 0x81 逻辑"异或"合成0 1 1 0x83 逻辑"与"合成1 0 0 0x84 文本特征(将图形区改为文本特征区)文本特征规则: D7 D6 D5 D4 D3 D2 D1 D0* * * * D3 D2 D1 D0 ( D3=1为闪烁, D3=0为不闪烁)0 0 0 正常显示1 0 1 负向显示0 1 1 禁止显示,空白4:显示开关设置(0B 1 0 0 1 N3 N2 N1 N0)(0x90 | N)(无参数)N0:1/0 光标闪烁开启/关闭N1:1/0 光标显示开启/关闭N2:1/0 文本显示开启/关闭N3:1/0 图形显示开启/关闭5:光标开关选择(0xA0 | N)(无参数) 光标开关为8点 X N行 N为0-76:自动读写设置(0xB0 | N)(无参数)N 指令代码功能N=0:0xB0 自动写设置N=2:0xB3 自动写结束N=1:0xB2 自动读设置N=3:0xB3 自动读结束7:单次读写指令D1,(0xC0 | N)N 指令代码功能N=0:0xC0 数据写,地址+1N=1:0xC1 数据读,地址+1N=2:0xC2 数据写,地址-1N=3:0xC3 数据读,地址-1N=4:0xC4 数据写,地址不变N=5:0xC5 数据读,地址不变*/unsigned char LCD_T6963_READ_STATE(unsigned char inda)//返回状态值参数为需要检查的位低有效示例:while(LCD_T6963_READ_STATE(0xFC))刚为等待最低两位为高{unsigned char a;LCD_T6963_PORT_STATE = 0x00;LCD_T6963_CD_1;LCD_T6963_RD_0;_delay_us(1);a = LCD_T6963_PORT_INPUT;LCD_T6963_RD_1;return ~(a | inda); //}void LCD_T6963_WRITE_DATA(unsigned char write_data)//写数据{while(LCD_T6963_READ_STATE(0xFC));LCD_T6963_CD_0;LCD_T6963_PORT_STATE = 0xFF;LCD_T6963_PORT = write_data;LCD_T6963_WD_0;_delay_us(1);LCD_T6963_WD_1;}void LCD_T6963_WRITE_CMD(unsigned char write_cmd)//写命令{while(LCD_T6963_READ_STATE(0xFC));LCD_T6963_CD_1;LCD_T6963_PORT_STATE = 0xFF;LCD_T6963_PORT = write_cmd;LCD_T6963_WD_0;_delay_us(1);LCD_T6963_WD_1;}void LCD_T6963_INIT(void)//T6963初始化{unsigned int i;LCD_T6963_RST_INIT;LCD_T6963_CD_INIT;LCD_T6963_CE_INIT;LCD_T6963_RD_INIT;LCD_T6963_WD_INIT;LCD_T6963_FS_INIT;//字体选择初始化根据实际可不要LCD_T6963_RST_0;LCD_T6963_RST_1;LCD_T6963_CE_0;LCD_T6963_CD_1;LCD_T6963_RD_1;LCD_T6963_WD_1;#if LCD_T6963_FONT == 8LCD_T6963_FS_0; //设置字体为8*8#endif#if LCD_T6963_FONT == 6LCD_T6963_FS_1; //设置字体为6*8#endif/**********设置液晶参数************/LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_MSB);LCD_T6963_WRITE_CMD(0x40); //设置文本显示区域首地址LCD_T6963_WRITE_DATA(LCD_T6963_width_byte);LCD_T6963_WRITE_DATA(0x00);LCD_T6963_WRITE_CMD(0x41); //设置文本显示区域所占宽度如240X64为240/8=30ByteLCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_MSB);LCD_T6963_WRITE_CMD(0x42); //设置图形区域首地址LCD_T6963_WRITE_DATA(LCD_T6963_width_byte);LCD_T6963_WRITE_DATA(0x00);LCD_T6963_WRITE_CMD(0x43); //图形区域宽度如240X64为240/8=30Byte/**********设置液晶参数************//*********全部填0***********/LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_TEXT_ADDR_MSB);LCD_T6963_WRITE_CMD(0x24); //文体区域起始地址LCD_T6963_WRITE_CMD(0xB0); //连续写for(i=0;i<(LCD_T6963_width / LCD_T6963_FONT * LCD_T6963_high / 8);i++){LCD_T6963_WRITE_DATA(0x00);}LCD_T6963_WRITE_CMD(0xB2); //连续写结束LCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_LSB);LCD_T6963_WRITE_DATA(LCD_T6963_IMG_ADDR_MSB);LCD_T6963_WRITE_CMD(0x24); //图形区域起始地址LCD_T6963_WRITE_CMD(0xB0); //连续写for(i=0;i<(LCD_T6963_width / LCD_T6963_FONT * LCD_T6963_high);i++) {LCD_T6963_WRITE_DATA(0x00);}LCD_T6963_WRITE_CMD(0xB2); //连续写结束/*********全部填0***********/LCD_T6963_WRITE_CMD(0xA0 | 1); //设置光标大小 0-7LCD_T6963_WRITE_CMD(0x80 | 0); //显示方式设置LCD_T6963_WRITE_CMD(0x9F); //显示开关设置}#endif // LCD_T6963_H_INCLUDED////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /C51# 程序如下sbit bf0_fg = ACC^0;sbit bf1_fg = ACC^1;sbit bf3_fg = ACC^3;sbit lcd_wr = P3^6;sbit lcd_rd = P3^7;sbit lcd_cd = P2^0;unsigned char zimow[];unsigned char zimoc[];void lcd_read(void) /*液晶读函数*/{EA=0;lcd_cd = 1;lcd_wr = 1;lcd_rd = 0;ACC = P0;lcd_rd = 1;EA=1;}void lcd_bf01(void) /*液晶单字节读写判忙函数*/ {dolcd_read();while (!(bf0_fg && bf1_fg));}void lcd_bf3(void) /*液晶连续读写判忙函数*/ {dolcd_read();while (!bf3_fg);}void lcd_stric(uchar datax) /*液晶单字节写命令函数*/{lcd_bf01();EA=0;lcd_cd = 1;lcd_rd = 1;lcd_wr = 0;lcd_wr = 1;EA=1;}void lcd_data(uchar datax) /*液晶单字节写数据函数*/{EA=0;lcd_cd = 0;lcd_rd = 1;lcd_wr = 0;P0 = datax;lcd_wr = 1;EA=1;}void lcd_wt2(uchar data2,uchar comm) /*液晶双字节写函数*/{lcd_bf01();lcd_data(data2);lcd_stric(comm);}void lcd_wt3(uchar data1,uchar data2,uchar comm) /*液晶三字节写函数*/{lcd_bf01();lcd_data(data1);lcd_bf01();lcd_data(data2);lcd_stric(comm);}void lcd_clr(void) /*液晶清屏函数*/ {uchar i,j=128;lcd_wt3(0,0,0x24);lcd_stric(0xb0);do{i=30;do{lcd_bf3();lcd_data(0);i--;}while (i);j--;}while (j);lcd_stric(0xb2);}void lcd_init(void) /*液晶初始化函数*/ {lcd_wt3(0,0,0x40);lcd_wt3(30,0,0x41);lcd_wt3(0,0,0x42);lcd_wt3(30,0,0x43);lcd_stric(0xa4);lcd_stric(0x80);lcd_stric(0x9;}void lcd_word(uchar o_x,uchar o_y,uchar zm_code) /*在(o_x,0_y) 位置显示16*16点阵的汉字*/{uint xx,yy;uchar i=16;xx=o_y*30;xx+=o_x;yy=zm_code*0x20;do{lcd_wt3(xx,xx/256,0x24);lcd_wt2(zimow[yy],0xc0);yy++;lcd_wt2(zimow[yy],0xc0);yy++;xx+=30;i--;}while (i);}void lcd_fwd(uchar o_x,uchar o_y,uchar zm_code){uint xx,yy;uchar i=16;xx=o_y*30;xx+=o_x;yy=zm_code*0x20;do{lcd_wt3(xx,xx/256,0x24);lcd_wt2(~zimow[yy],0xc0);yy++;lcd_wt2(~zimow[yy],0xc0);yy++;xx+=30;i--;}while (i);}void lcd_fbt(uchar o_x,uchar o_y,uchar zm_code)/*在(o_x,0_y) 位置显示8*16点阵的汉字*/{uint xx,yy;uchar i=16;xx=o_y*30;xx+=o_x;yy=zm_code*0x10;do{lcd_wt3(xx,xx/256,0x24);lcd_wt2(~zimoc[yy],0xc0);yy++;xx+=30;i--;}while (i);}void lcd_byte(uchar o_x,uchar o_y,uchar zm_code) {uint xx,yy;uchar i=16;xx=o_y*30;xx+=o_x;yy=zm_code*0x10;do{lcd_wt3(xx,xx/256,0x24);lcd_wt2(zimoc[yy],0xc0);yy++;xx+=30;i--;}while (i);}240128(21脚)引脚说明:Pin NO. Symbol Description(Function) Remark1 FG Module Frame Ground2 VSS Ground3 VDD Supply voltage for logic and LCE(+)4 V0 Operating voltage for LCD variable5 WR Data Write into T6963C6 RD Chip enable Signal7 CE Command/Data Selection8 C/D Command/Data Selection9 Reset Reset signal10 DB0 Data bit 011 DB1 Data bit 112 DB2 Data bit 213 DB3 Data bit 314 DB4 Data bit 415 DB5 Data bit 516 DB6 Data bit 617 DB7 Data bit 718 FS Font Selection19 VEE LCD 驱动负电压20 LED(+) LED or EL Backlight21 LED(-) LED or EL Backlight////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////3333333333333333333333333333333333333333333 希望以下代码能帮助你#include "absacc.h"#include "math.h"#include "ASCII816.h" //字符点阵库0x20--0x7F#include "HZTable.h" //汉字点阵库(自做)#include "menu.h" //汉字点阵库(自做)//set following data by user according to LCD#define ComPort 0xB101#define DataPort 0xB000#define GraphAddr 0x0000 //head of graph//以8*8字符计算,显示屏横向、纵向可以显示的字符个数//以240*128为例:#define LineChar 30 //一行16个字符(8*8)#define ColumnChar 16 //总共16列//指令,数据读写状态检查#define RWCheck() { unsigned char sta; do{ sta=XBYTE[ComPort] & 0x03; }while(sta!=0x03); }//数据自动读状态检查#define AutoRCheck() { unsigned char sta; do{ sta=XBYTE[ComPort] & 0x04; }while(sta!=0x04); }//数据自动写状态检查#define AutoWCheck() { unsigned char sta; do{ sta=XBYTE[ComPort] & 0x08; } while(sta!=0x08); }/*------输入/出函数,与T6963通讯------------------------------------------------*//*------------------------------------------------------------------------*/// 向数据口发Data#define OutPortData(dat ) { RWCheck(); XBYTE[DataPort]=dat; }//写有1 个参数命令#define OutPortCom1(command) { RWCheck(); XBYTE[ComPort]= command; }//写有2 个参数命令#define OutPortCom2(dat, command) { OutPortData(dat); OutPortCom1(command); }//写有3 个参数命令#define OutPortCom3(data1, data2, command) { OutPortData(data1);OutPortData(data2); OutPortCom1(command);}unsigned char InPortData() { RWCheck(); return(XBYTE[DataPort]); }/*-----------------------------------------------------------------------------------*///显示8*16字符//lin:行(0-7), column: 列(0-15)//ch:字符代码(标准ASCII码)void ShowChar(unsigned char lin,unsigned char column,unsigned char ch){unsigned char i;unsigned char dat;unsigned int StartAddr;StartAddr=lin*LineChar +column; //定位起始行for(i=0;i<16;i++){dat=ASCII816[ ch-0x20 ][i];OutPortCom3( (unsigned char)(StartAddr), (unsigned char)(StartAddr>>8), 0x24); //set addressOutPortCom2( dat, 0xc4);StartAddr=StartAddr + LineChar;}}/*----------------------------------------------------------------------------------------------*///显示一个汉字(16*16点阵)//lin:行(0-7), column: 列(0-7)//hzcode: 汉字代码(自定义的)void ShowHZ(unsigned char lin,unsigned char column,unsigned int hzcode){unsigned char i;unsigned int StartAddr;StartAddr=lin*LineChar + column; //定位起始行for(i=0;i<16;i++){OutPortCom3( (unsigned char)(StartAddr), (unsigned char)(StartAddr>>8), 0x24); OutPortCom2( HZTable[hzcode][i*2], 0xc0); //左半部地址加一OutPortCom2( HZTable[hzcode][i*2+1], 0xc4); //右半部字模地址加一StartAddr=StartAddr + LineChar;}}///////////////////////////////////////////////////////////////////////////////////////////////显示一个汉字(16*16点阵)//lin:行(0-7), column: 列(0-7)//hzcode: 汉字代码(自定义的)void ShowHZD(unsigned char lin,unsigned char column,unsigned int hzcode){unsigned char i,j;unsigned int StartAddr;StartAddr=lin*LineChar*16 +column; //定位起始行for(i=0;i<35;i++){OutPortCom3( (unsigned char)(StartAddr), (unsigned char)(StartAddr>>8), 0x24); //定位当前操作位置for(j=0;j<5;j++) OutPortCom2( HZTable[hzcode][i*5+j], 0xc0); //显示当前一行StartAddr=StartAddr + LineChar;}}/////////////////////////////////////////////////////////////////////////////////////////////*-----------------------------------------------------------------------------------*///显示一行字符串(汉字,字母混排,一行16字节)//lin:行//lineheadaddr: 此行汉字代码区首地址void ShowLine(unsigned char lin,unsigned char column,unsigned char linehead[]){unsigned char i,j;unsigned char byte;unsigned int hzcode;for( i= column,j=0; i< column+14 ; ){ byte=linehead[j];if(byte < 0x80) //字母{ShowChar(lin, i , byte);i=i+1;j=j+1;}else // byte >= 0x80(汉字){byte=byte & 0x7f; //最高位置0,即:减去0x8000hzcode=byte*256 + linehead[j+1]; //加低8位,组合成整型数地址ShowHZ( lin,i,hzcode);i=i+2;j=j+2;}}/*-----------------------------------------------------------------------------------*///显示一屏汉字//pageheadaddr:此屏汉字代码地址区首地址void ShowPage(unsigned char lin,unsigned char column1,unsigned char pagehead[][14]) {unsigned char i;for(i=0;i< 4 ;i++)ShowLine((lin+i*20),column1,pagehead[i]); //1行8个汉字,16字节}/*----------------------------------------------------------------------------------------------------*///反显一个字符//lin:行(0-7), column: 列(0-15)void ReverseShowChar(unsigned char lin,unsigned char column){unsigned char i;unsigned char dat;unsigned int StartAddr;StartAddr=lin*LineChar +column; //定位起始行for(i=0;i<16;i++){OutPortCom3( (unsigned char)(StartAddr), (unsigned char)(StartAddr>>8), 0x24); //set addressOutPortCom1( 0xc5 ); //数据一次读,地址不变dat=InPortData(); //读入数据dat=~dat; //取反OutPortCom2( dat, 0xc4); //送回StartAddr=StartAddr+ LineChar;}}/*----------------------------------------------------------------------------------------------------*///反显一个汉字//lin:行(0-7), column: 列(0-15)void ReverseShowHZ(unsigned char lin,unsigned char column)ReverseShowChar(lin,column);ReverseShowChar(lin,column+1);}/*----------------------------------------------------------------------------------------------------*///反显一行汉字//lin:行(0-7)void ReverseShowLine(unsigned char lin){unsigned char column;for(column=0; column< ColumnChar; column++) ReverseShowChar(lin,column);}//////////////////////////////////////////////////////////////////////////////////////void ShowPicture(unsigned char Startline,unsigned char Startcolumn,unsigned char LineWidth,unsigned char ColumnWidth,unsigned int address){unsigned char i,j;unsigned int StartAddr;StartAddr=Startline*LineChar + Startcolumn; //定位起始位置for(i=0;i<ColumnWidth;i++){OutPortCom3( (unsigned char)(StartAddr), (unsigned char)(StartAddr>>8), 0x24); //set addressfor(j=0;j<LineWidth;j++){OutPortCom2( CBYTE[address + i*LineWidth+ j ], 0xc0);}StartAddr=StartAddr + LineChar;}}//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////图形函数,用于描点画图//---------------------------------------------------------------------------//在指定位置显示一个点//如果显示屏超过了256*256,请修改这个函数PointX,PointY的类型//Mode 1:显示0:清除该点Pixel(unsigned char PointX,unsigned char PointY, bit Mode){unsigned int StartAddr=0;unsigned char dat;StartAddr=PointX*LineChar + PointY/8;dat=0xf0+7-PointY%8;if(Mode) dat=dat 0x08;OutPortCom3( (unsigned char)(StartAddr),(unsigned char)(StartAddr>>8),0x24 ); //设置该点所在单元地址OutPortCom1(dat);}//-------------------------------------------------------------------------------//划线函数void Line( unsigned char x1, unsigned char y1, unsigned char x2, unsigned char y2, bit Mode){unsigned char x,y;double k,b;if( abs(y1-y2) <= abs(x1-x2) ) // k <=1{k=(float)(y2-y1) / (float)(x2-x1) ;b=y1-k*x1;if( x1 <= x2 ){for(x=x1;x<=x2;x++){y=k*x+b;Pixel(x, y, Mode);}}else{for(x=x2;x<=x1;x++){ y=k*x+b;Pixel(x, y, Mode);}}}else // abs(y1-y2) > abs(x1-x2) K >1{k=(float)(x2-x1) / (float)(y2-y1) ;b=x1-k*y1;if( y1 <= y2 ){for(y=y1;y<=y2;y++){ x=k*y+b;Pixel( x , y,Mode );}}else{for(y=y2;y<=y1;y++){ x=k*y+b;Pixel( x , y,Mode );}}}}/*---------------------------------------------------------------------------------------------------*/ void ClearScreen(){unsigned int i;///////// 清显示RAM 区0000h--2000h (8k)OutPortCom3(0x00,0x00,0x24); //设置指针地址0000HOutPortCom1(0xb0); //设置自动写状态for(i=0x00;i<0x2000;i++) OutPortData(0x00); // data=0;OutPortCom1(0xb2); // 自动写结束}//初始化LCD//需要手动设置void InitLCD(){OutPortCom3( 0x00,0x00,0x42 ); //设置图形显示区域首地址GraphAddrOutPortCom3( 30,0x00,0x43 ); //设置图形显示区域宽度: LineChar// OutPortCom3( 0x00,0x00,0x42 ); //设置图形显示区域首地址GraphAddr// OutPortCom3( 0x10,0x00,0x43); //设置图形显示区域宽度:10HOutPortCom1(0xa7); //设置光标形状cursor size 8x8OutPortCom1(0x80); //设置显示方式: CGROM方式文本\图形"或"OutPortCom1(0x98); //设置显示开关: 1001 1100 图形ClearScreen();}4444444444444444444444444444444444444444444444444444 4444444444444444444444444444444444444444444444444444444444444444444444444444444 44444444444444444444444444444444试一试:#include <msp430x13x.h>#define lcdwr BIT2 //p4.2#define lcdrd BIT3 //p4.3#define lcdce BIT4 //p4.4#define lcdcd BIT5 //p4.5#define lcdrst BIT6 //p4.6#define lcdfs BIT7 //p4.7unsigned char dian[32]={ 0x02,0x00,0x02,0x00,0x02,0x08,0x03,0xFC,0x02,0x00,0x02,0x10,0x3F,0xF8,0x20,0x10,0x20,0x10,0x20,0x10,0x3F,0xF0,0x00,0x00,0x29,0x10,0x24,0xC8,0x44,0x44,0x80,0x04};unsigned char zhen[32]={ 0x00,0x80,0x78,0x84,0x4F,0xFE,0x50,0x80,0x50,0xA0,0x61,0x20,0x51,0x28,0x4B,0xFC,0x48,0x20,0x48,0x20,0x68,0x24,0x57,0xFE,0x40,0x20,0x40,0x20,0x40,0x20,0x40,0x20};unsigned char ye[32]={ 0x00,0x80,0x40,0x44,0x37,0xFE,0x10,0x20,0x81,0x20,0x61,0x3C,0x22,0x44,0x0A,0x64,0x16,0x98,0x2B,0x48,0xE2,0x50,0x22,0x20,0x22,0x50,0x22,0x8E,0x23,0x04,0x22,0x00};unsigned char jing[32]={ 0x0F,0xE0,0x08,0x20,0x08,0x20,0x0F,0xE0,0x08,0x20,0x08,0x20,0x0F,0xE0,0x08,0x24,0x7E,0xFE,0x42,0x84,0x42,0x84,0x7E,0xFC,0x42,0x84,0x42,0x84,0x7E,0xFC,0x42,0x84};unsigned char lian[32]={ 0x01,0x04,0xFE,0xCC,0x24,0x50,0x24,0x00,0x3D,0xFC,0x24,0x20,0x24,0x20,0x24,0x24,0x3F,0xFE,0x24,0x20,0x24,0x20,0x24,0x50,0x3E,0x50,0xE4,0x88,0x05,0x0E,0x06,0x04};unsigned char xi[32]={ 0x00,0x38,0x7F,0xC0,0x04,0x00,0x04,0x10,0x08,0x20,0x3F,0xC0,0x01,0x00,0x02,0x20,0x04,0x10,0x3F,0xF8,0x01,0x08,0x09,0x20,0x09,0x10,0x11,0x08,0x25,0x08,0x02,0x00 };unsigned char ren[32]={ 0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x01,0x00,0x02,0x80,0x02,0x80,0x02,0x80,0x04,0x40,0x04,0x40,0x08,0x20,0x10,0x10,0x20,0x0E,0x40,0x04};unsigned char yang[32]={0x10,0x00,0x13,0xF8,0x10,0x10,0x10,0x20,0xFC,0x40,0x10,0x84,0x33,0xFE,0x38,0xA4,0x54,0xA4,0x50,0xA4,0x91,0x24,0x11,0x44,0x12,0x44,0x14,0x84,0x11,0x28,0x10,0x10};unsigned char xiao[32]={0x00,0x80,0x08,0x88,0x7C,0xFC,0x4F,0x80,0x48,0x50,0x48,0x22,0x78,0xD2,0x4B,0x0E,0x48,0x00,0x4B,0xFC,0x48,0xA0,0x78,0xA0,0x49,0x22,0x01,0x22,0x02,0x1E,0x0C,0x00};unsigned char llong[32]={0x02,0x00,0x02,0x40,0x02,0x20,0x02,0x04,0xFF,0xFE,0x02,0x80,0x02,0x88,0x04,0x88,0x04,0x90,0x04,0xA0,0x08,0xC0,0x08,0x82,0x11,0x82,0x16,0x82,0x20,0x7E,0x40,0x00};void Lcd_Delay(unsigned int x);void LcdWaitBusy(void);void LcdWaitBusyAuto(void);void LcdWrite_D(unsigned char x); //write datavoid LcdWrite_I(unsigned char x); //write instructionvoid LcdWrite_Com2(unsigned char x,unsigned char y,unsigned char z);void LcdWrite_Com1(unsigned char x,unsigned char y);void LcdWrite_Com0(unsigned char x);void LcdWrite_HanZi(unsigned char* hanzi,unsigned int z);void LcdWrite_Text(unsigned char w,unsigned int z);void LcdInit(void);/*************************************************************/ void main(void){WDTCTL=WDTPW+WDTHOLD; // shut up watchdogP4SEL&=~(BIT2+BIT3+BIT4+BIT5+BIT6+BIT7); // port function set I/O portP4DIR|=BIT2+BIT3+BIT4+BIT5+BIT6+BIT7; // port function set output P4OUT|=BIT2+BIT3+BIT4+BIT5+BIT6; // port function setP4OUT&=~BIT7; // select 8*8LcdInit();LcdWrite_Com0(0x9c);LcdWrite_Text(0x13,0x0801); // line 1LcdWrite_Text(0x36,0x0802);LcdWrite_Text(0x11,0x0803);LcdWrite_Text(0x12,0x0804);LcdWrite_Text(0x18,0x0805);LcdWrite_Text(0x0a,0x0806);LcdWrite_Text(0x16,0x0807);LcdWrite_Text(0x14,0x0808);LcdWrite_HanZi(dian,0x0809);LcdWrite_HanZi(zhen,0x080b);LcdWrite_HanZi(ye,0x080d);LcdWrite_HanZi(jing,0x080e);LcdWrite_HanZi(lian,0x09e1); // line 2LcdWrite_HanZi(xi,0x09e3);LcdWrite_HanZi(ren,0x09e5);LcdWrite_Text(0x1a,0x1861);LcdWrite_HanZi(yang,0x09e9);LcdWrite_HanZi(xiao,0x09eb);LcdWrite_HanZi(llong,0x09ed);LcdWrite_Text(0x10,0x189a); // line 3LcdWrite_Text(0x17,0x189b);LcdWrite_Text(0x15,0x189c);LcdWrite_Text(0x15,0x189d);LcdWrite_Text(0x0d,0x189e);LcdWrite_Text(0x12,0x189a);LcdWrite_Text(0x16,0x189b);LcdWrite_Text(0x11,0x189c);LcdWrite_Text(0x15,0x189d);LcdWrite_Text(0x16,0x189e);LcdWrite_Text(0x19,0x189c);LcdWrite_Text(0x13,0x189d);LcdWrite_Text(0x10,0x189e);LcdWrite_Text(0x31,0x18b4); // line 4LcdWrite_Text(0x31,0x18b5);LcdWrite_Text(0x1a,0x18b6);LcdWrite_Text(0x13,0x18b7);LcdWrite_Text(0x17,0x18b8);LcdWrite_Text(0x16,0x18b9);LcdWrite_Text(0x10,0x18ba);LcdWrite_Text(0x12,0x18bb);LcdWrite_Text(0x17,0x18bc);LcdWrite_Text(0x12,0x18bd);LcdWrite_Text(0x17,0x18be);LcdWrite_Text(0x17,0x18bf);}/**************************************************************/ void Lcd_Delay(unsigned int x) //time delay{while(x!=0)x--;}void LcdWrite_D(unsigned char x) //write date{P4OUT&=~lcdcd;P4OUT|=lcdwr;P4OUT&=~lcdce;P4OUT&=~lcdwr;P5DIR=0xff;P5OUT=x;P4OUT|=lcdce;P4OUT|=lcdwr;}void LcdWrite_I(unsigned char x) //write instruction{P4OUT|=lcdcd;P4OUT|=lcdwr;P4OUT&=~lcdwr;P4OUT&=~lcdce;P5DIR=0xff;P5OUT=x;P4OUT|=lcdce;P4OUT|=lcdwr;}void LcdWrite_Com2(unsigned char x,unsigned char y,unsigned char z){LcdWaitBusy();LcdWrite_D(x);LcdWaitBusy();。