TFT触摸屏使用说明
- 格式:pdf
- 大小:459.74 KB
- 文档页数:7
MY-TFT070V2 产品用户手册版本V1.12015年3月16日版本记录目录目录 (1)第1章产品概述 (2)1.1 产品简介 (2)1.2 规格参数 (2)1.3 产品预览 (3)第2章硬件指南 (5)2.1 引脚分布 (5)2.2 信号定义 (5)2.3 电气特性 (6)2.4 时序参数 (7)第3章机械参数 (10)附录 (12)附录一联系方式 (13)附录二售后服务与技术支持 (14)第1章产品概述1.1 产品简介MY-TFT070V2是深圳米尔科技有限公司推出的7寸液晶模块,是彩色有源矩阵薄膜晶体管(TFT)液晶显示器(LCD),由TFT LCD显示器件,连接件,控制与驱动外围电路,PCB驱动底板等组成,驱动底板预留1.27mm间距的IDC排线插针(25pinX2)和0.5mm 间距的FPC连接器两种连接方式,是专为米尔科技ARM主板设计的配套LCD液晶显示模块。
1.2 产品特性MY-TFT070V2兼容三种触摸输入方式,分别为电阻式触摸输入、电容式触摸输入和外置式输入,可以根据需要任意选用需要的方式,同时只能有一种触摸方式被连接。
图1-1MY-TFT070V2带有一颗存储芯片,用来保存LCD的一些常规信息,MYiR的开发板系统能够版识别MY-TFT070V2,并根据这些信息来加载相应的驱动。
1.3 规格参数1.4 产品预览MY-TFT070V2 产品平面图如图1-2、图1-3所示:图1-2 MY-TFT070V2产品正面图图1-3 MY-TFT070V2 产品背面图第2章硬件指南2.1 接口分布底板接口分布如下图2-1所示:图2-1 底板接口分布图如上图所示,驱动底板预留1.27mm间距的50pin IDC排线插针(J1)和0.5mm间距的50pin FPC连接器(J2)两种连接方式,默认连接50pin IDC排线。
J4为电阻触摸信号连接,J5,J7分别为电容触摸控制信号连接,默认选择J5电容触摸模式。
1.77寸TFT使用说明外观美观大方,质量可靠,采用品牌厂商生产的TFT,提供多个例程,程序精炼、准确、实用。
您的满意就是我们的成功!TFT尺寸:1.7”;分辨率:128xBGRx160,可达262K色;电压类型:支持5V或3.3V电压输入,5v电压接入时,“VCC_SEL”(即16、17pin)断开;3.3v电压接入时,“VCC_SEL”短接;接口类型:支持8位数据接口或16位数据接口,8位数据接口可与12864液晶接口兼容(修改一下程序中的接口定义即可)。
使用16位数据接口时,“MOD”(即18pin)连接到GND。
兼容12864接口,TFT第一脚与12864接口第一脚对齐,注意12864接口的背光控制脚(第三脚)用跳帽连接到地(使TFT的CS控制信号为低电平)如果TFT仍显示不了则需将12864接口电位器旋转至GND。
TFT液晶各引脚功能说明如下:GND:接地;VCC:5V/3V电压输入,注意VCC_SEL的连接;CS:片选信号;RS:命令/数据选择;RS=0写数据,RS=1写命令;WR:写控制信号;RD:读控制信号;D8~D15: 使用8位数据口时为8位数据/命令并行口;使用16位数据/命令并行口时为其高8位;RST:液晶复位信号;VCC_SEL: 5v VCC接入时“VCC_SEL”断开;3.3v VCC接入时“VCC_SEL”短接;MOD: 数据/命令并行口的模式选择,MOD=GND时TFT为16位工作模式,MOD 不连接时TFT为8位工作模式;D0~D7:仅在使用16位数据/命令并行口时使用,为16位数据/命令并行口的低8位;液晶控制IC说明请参考“S6D0144.pdf”,液晶FPC接口定义请参考“GG1P0360管脚定义.pdf”。
8位接口模式,程序中的接口定义:D8~D15 = P0;CS = P2^1;RST = P2^2;RS = P2^5;WR_ = P2^4;RD_ = P2^3;16位接口模式,程序中的接口定义:D0~D7 = P0;D8~D15 = P1;CS = P2^1;RST = P2^2;RS = P2^5;WR_ = P2^4;RD_ = P2^3;SD卡使用方法程序4的功能是将SD卡中存储的图片显示到TFT,故此处SD卡主要用来存储图片。
ITEMCONTENTSUNITLCD Type TFT/Transmissive/Normally white / Size3.5Inch Viewing Direction12:00 (without image inversion) O’ Clock Gray Scale Inversion Direction 6:00O’ Clock Number of Dots 320 x (RGB) × 240 / Driver ICBT81x / Interface TypeSPI/QSPI/ Module Memory Size 1 MB (BT81x) + 64 Mb (external flash) / Color Depth16.7M/ Pixel Arrangement RGB Vertical Stripe/ Surface Treatment Anti-glare / Clear (for CTP) / Input Voltage3.3V3.5” EVE3 SERIES LCD TFTRiTFT-35 seriesRev.1.0 2018-10-22L C D T F T M o d u l e S p e c i f i c a t i o nNote 1: RoHS, REACH SVHC compliant Note 2: LCM weight tolerance: ± 5%.CONTENTS (2)1 MODULE CLASSIFICATION INFORMATION (3)2 ASSEMBLY GUIDE - INTEGRATION (3)2.1 Mounting frame (4)3 MODULE DRAWING (4)4 ABSOLUTE MAXIMUM RATINGS (5)5 ELECTRICAL CHARACTERISTICS (5)6 BACKLIGHT CHARACTERISTICS (5)7 ELECTRO-OPTICAL CHARACTERISTICS (5)8 INTERFACE DESCRIPTION (7)9 BT8x CONTROLLER SPECIFICATIONS (8)9.1 Serial host interface (8)9.2 Block Diagram (8)9.3 Host interface SPI mode 0 (9)9.4 Backlight driver block diagram (9)10 LCD TIMING CHARACTERISTICS (9)10.1 Clock and data input time diagram (9)10.2 Parallel RGB timing table (11)11 TOUCH SCREEN PANEL SPECIFICATIONS (11)11.1 Electrical characteristics (11)11.1.1 For capacitive touch panel (11)11.1.2 For resistive touch panel (12)11.2 Mechanical characteristics (12)11.2.1 For capacitive touch panel (12)11.2.2 For resistive touch panel (13)12 INSPECTION (13)12.1 Inspection condition (13)12.2 Inspection standard (14)13 RELIABILITY TEST (17)14 LEGAL INFORMATION (18)1. BRAND RV – Riverdi2. PRODUCT TYPE T – TFT StandardF – TFT Custom3. DISPLAY SIZE 35– 3.5”4. MODEL SERIAL NO. A (A-Z)5. RESOLUTION H– 320x240 px6. INTERFACE B – TFT + Controller BT81x7. FRAME N – No FrameF – Mounting Frame8. BACKLIGHT TYPE W – LED White9. TOUCH PANEL N – No Touch PanelR – Resistive Touch Panel C – Capacitive Touch Panel10. VERSION 00(00-99)RiTFT-35-RES RVT35AHBNWR00 BT816, resistive touch panelRiTFT-35-CAP RVT35AHBNWC00 BT815, capacitive touch panelRiTFT-35-FR RVT35AHBFWN00 BT816, no touch panel, mounting frame RiTFT-35-RES-FR RVT35AHBFWR00 BT816, resistive touch panel, mounting frame RiTFT-35-CAP-FR RVT35AHBFWC00 BT815, capacitive touch panel, mounting frame2.1Mounting frameFor dimension s 3.5”, 4.3”, 5.0” and 7.0” the product with mounting frame version is available. Thanks to the four catches attached to the side, frame provides strong assembly to the surface by mounting element (like the screw, see Figure 3). The frames are specially designed to fit Riverdi products perfectly. The diameter of the mounting hole is 3.5mm.Figure 1. Mounting frameRiTFT-35 series3MODULE DRAWING `` RiTFT-35© 2018 Riverdi Page 4 of 24 RiTFT-35 seriesRiTFT-35-FR© 2018 Riverdi Page 5 of 24 RiTFT-35 seriesRiTFT-35-CAP© 2018 Riverdi Page 6 of 24 RiTFT-35-CAP-FR© 2018 Riverdi Page 7 of 24 RiTFT-35-RES© 2018 Riverdi Page 8 of 24 RiTFT-35-RES-FR© 2018 Riverdi Page 9 of 24 4ABSOLUTE MAXIMUM RATINGSPARAMETER SYMBOL MIN MAX UNITSupply Voltage for Logic VDD 0 4.0 V Supply Voltage for LED Inverter BLVDD 0 7.0 VInput Voltage for Logic VIN 0 4.0 VLED forward current (each LED) IF - 25 mA Operating Temperature T OP-20 70 °C PARAMETER SYMBOL MIN TYP MAX UNIT NOTES Supply Voltage For Module VDD 3.0 3.3 3.6 VInput Voltage for LED Inverter BLVDD 2.8 5.0 5.5 VLED Backlight Current IDD backlight- 150 187 mA BLVDD=3.3V LED Backlight Current IDD backlight- 93 117 mA BLVDD=5V Input Voltage ' H ' level V IH0.7VDD - VDD VInput Voltage ' L ' level V IL0 - 0.2VDD VInput Current I In TBD mAInput Current for module with CTP I InC TBD mAITEM SYMBOL MIN TYP MAX UNIT Voltage for LED backlight V l- 19.2 20.4 V Current for LED backlight I l- 20 25 mA LED Life Time - 30000 50000 - HrsLNote 1. Contrast Ratio(CR) is defined mathematically as below, for more information see Figure .Contrast Ratio =Average Surface Luminance with all white pixels (P1,P2,P3,P4,P5) Average Surface Luminance with all black pixels (P1,P2,P3,P4,P5)Note 2. Surface luminance is the LCD surface from the surface with all pixels displaying white. For more information, see Figure .Lv = Average Surface Luminance with all white pixels (P1, P2, P3, P4, P5)Note 3.The uniformity in surface luminance δ WHITE is determined by measuring luminance at each 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 Figure .δ WHITE =Minimum Surface Luminance with all white pixels (P1,P2,P3,P4,P5) Maximum Surface Luminance with all white pixels (P1,P2,P3,P4,P5)Note 4. Response time is the time required for the display to transition from white to black (Rise Time, Tr) and from black to white (Decay Time, Tf). For additional information see FIG 1. The test equipment is Autronic-Melchers’s ConoScope series.Note 5.CIE (x, y) chromaticity, the x, y value is determined by measuring luminance at each test position 1 through 5, and then make average value.Note 6. Viewing angle is the angle at which the contrast ratio is greater than 2. For TFT module the contrast 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 Figure .Note 7. For viewing angle and response time testing, the testing data is based on Autronic-Melchers’s ConoScope series. Instruments for Contrast Ratio, Surface Luminance, Luminance Uniformity, CIE the test data is based on TOPCON’s BM-5 photo detector.Note 8. For TFT module, Gray scale reverse occurs in the direction of panel viewing angle.Figure 2. The definition of response timeFigure 3. Measuring method for Contrast ratio, surface luminance, Luminance uniformity, CIE (x, y) chromaticityFigure 4.The definition of viewing angle8INTERFACE DESCRIPTION9BT8x CONTROLLER SPECIFICATIONSBT8x or EVE3 (Embedded Video Engine 3) simplifies the system architecture for advanced human machine interfaces (HMIs) by providing functionality for display, audio, and touch as well as an object oriented architecture approach that extends from display creation to the rendering of the graphics.9.1Serial host interfaceFigure 5.SPI interface connection Figure 6. QSPI interface connectionSPI Interface– the SPI slave interface operates up to 30MHz.Only SPI mode 0 is supported. The SPI interface is selected by default (MODE pin is internally pulled low by 47k resistor).9.2Block DiagramFigure 7.. BT8x Block diagram9.3Host interface SPI mode 0Figure 8. SPI timing diagramFor more information about BT8x controller please go to official BT8x website.https:///Products/ICs/BT81X.html9.4Backlight driver block diagramBacklight enable signal is internally connected to BT8x Backlight control pin. This pin is controlled by two BT8x’s registers. One of them specifies the PWM output frequency, second one specifies the duty cycle. Refer to BT8x datasheet for more information.Figure 9. Backlight driver block diagram10LCD TIMING CHARACTERISTICS10.1Clock and data input time diagramFigure 10. DE mode timing diagramBT8xFigure 11. SYNC mode timing diagramFigure 12. Timing diagram10.2Parallel RGB timing tableTiming parameter (VDD=3.3V, GND=0V, Ta=25˚C)PARAMETER SYMBOL MIN TYP MAX UNIT CONDITION CLK Clock Time T clk 1/Max(F CLK) - 1/Min(F CLK) ns -11TOUCH SCREEN PANEL SPECIFICATIONS11.1Electrical characteristicsNote: Avoid operating with hard or sharp material such as a ball point pen or a mechanical pencil except a polyacetal pen (tip R0.8mm or less) or a fingerITEM VALUE UNIT REMARKMin. Typ. Max.Linearity - - 1.5 % Analog X and Y directions Terminal Resistance 200 - 900 ΩX100 - 600 ΩY11.2Mechanical characteristicsNote 1: Force test condition, Input DC 5V on X direction, Drop off Polyacetal Stylus (R0.8), until output voltage stabilize, then get the R8.0mm Silicon rubber and do finger Activation force test. Next step, 9 points.Note 2: Measurement surface area conditions, Scratch 100,000 times straight line on the film with a stylus change every 20,000 times with Force: 250gf, Speed: 60mm/sec by R0.8 polaceteal stylus.Note 3: Pitting test, Pit 1, 000, 000 times on the film with R0.8 silicon rubber with Force: 250gf and Speed: 2 times/sec.Note 1: Force test condition, Input DC 5V on X direction, drop off Polyacetal Stylus (R0.8), until output voltage stabilize, then get the R8.0mm Silicon rubber and do finger Activation force test. Next step, 9 points.ITEM VALUE UNIT REMARKMin. Typ. Max.12INSPECTIONStandard acceptance/rejection criteria for TFT module.12.1Inspection conditionAmbient conditions:•Temperature: 25±°C•Humidity: (60±10) %RH•Illumination: Single fluorescent lamp non-directive (300 to 700 lux)Viewing distance:35±5cm between inspector bare eye and LCD.Viewing Angle:U/D: 45°/45°, L/R 45°/45°12.2Inspection standard Item Criterion Black spots, whitespots, light leakage,Foreign Particle(round Type)D=(x+y)2*Spots density: 10 mmSize < 5”Average Diameter Qualified QtyD < 0.2 mm Ignored0.2 mm < D < 0.3 mm 30.3 mm < D < 0.5 mm 20.5 mm < D 0Size >= 5”Average Diameter Qualified Qty D<0.2 mm Ignored0.2 mm < D < 0.3 mm 40.3 mm < D < 0.5 mm 20.5 mm < D 0Clear spotsSize >= 5”Average Diameter Qualified Qty D<0.2 mmIgnored 0.2 mm < D < 0.3 mm 4 0.3 mm < D < 0.5 mm 2 0.5 mm < D*Spots density: 10 mm Size < 5”Average Diameter Qualified Qty D < 0.2 mmIgnored 0.2 mm < D < 0.3 mm 3 0.3 mm < D < 0.5 mm 2 0.5 mm < D 0Polarizer bubblesSize < 5”Average Diameter Qualified Qty D < 0.2 mmIgnored 0.2 mm < D < 0.5 mm 3 0.5 mm < D < 1 mm 2 1 mm < D 0 Total Q’ty 3Size >= 5”Average Diameter Qualified Qty D<0.25 mmIgnored 0.25 mm < D < 0.5 mm 3 0.5 mm < D 0Electrical Dot DefectSize < 5”itemQualified Qty Black do defect 4 Bright dot defect 2 Total Dot 5Size >= 5”itemQualified Qty Black do defect 5 Bright dot defect 2 Total Dot 5Touch panel spotSize < 5”Average Diameter Qualified QtyD < 0.2 mm Ignored0.2 mm < D < 0.4 mm 50.4 mm < D < 0.5 mm 213RELIABILITY TESTNO. TEST ITEM TEST CONDITION REMARKS1 High Temperature Storage 80±2°C/240hours Note 22 Low Temperature Storage -30±2°C/240hours Note 1,2Note 1: Without water condensation.Note 2:The function test shall be conducted after 2 hours storage at the room temperature and humidity after removed from the test chamber.14LEGAL INFORMATIONRiverdi makes no warranty, either expressed or implied with respect to any product, and specifically disclaims all other warranties, including, without limitation, warranties for merchantability, non-infringement and fitness for any particular purpose. Information about device are the property of Riverdi and may be the subject of patents pending or granted. It is not allowed to copy or disclosed this document without prior written permission.Riverdi endeavors to ensure that the all contained information in this document are correct but does not accept liability for any error or omission. Riverdi products are in developing process and published information may be not up to date. Riverdi reserves the right to update and makes changes to Specifications or written material without prior notice at any time. It is important to check the current position with Riverdi.Images and graphics used in this document are only for illustrative the purpose. All images and graphics are possible to be displayed on the range products of Riverdi, however the quality may vary. Riverdi is no liable to the buyer or to any third part for any indirect, incidental, special, consequential, punitive or exemplary damages (including without limitation lost profits, lost savings, or loss of business opportunity) relating to any product, service provided or to be provided by Riverdi, or the use or inability to use the same, even if Riverdi has been advised of the possibility of such damages.Riverdi products are not fault tolerant nor designed, manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of the product could lead directly to death, personal injury or severe physical or environmental damage (‘High Risk Activities’). Riverdi and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities. Using Riverdi products and devices in 'High Risk Activities' and in any other application is entirely at the buyer’s risk, and the buyer agrees to defend, indemnify and hold harmless Riverdi from any and all damages, claims or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Riverdi intellectual property rights.。
TFT触摸屏使用说明2一、.4寸TFT 触摸屏使用说明要正确使用TFT 触摸屏,需要借助相应的单片机实验板,这里,以顶顶电子开发板DD-900实验开发板为例进行介绍,值得庆幸的是,DD-900上设有3V 电压输出端,因此,可以方便地为TFT 触摸屏供电。
TFT 触摸屏模块介绍随着TFT 触摸屏价格的不断下降,其应用也越来越广泛,学习TFT 触摸屏现已成为一种时尚,以前,很多人只有在ARM 单片机中才能看到TFT 触摸屏的风采,现在,随着51单片机性能的提高,51单片机也能玩TFT 触摸屏了,这里,我们介绍的是一款2.4寸TFT 触摸屏模块,其正面与反面外形如图所示:这款触摸屏模块主要具备如下特点:1.2.4寸320*240 ,65K/262K 色;2.屏带PCB 板, PCB 板设有2.4寸液晶屏、SD 卡座、触摸屏控制芯片ADS7843,通过40脚插针将屏、卡座和触摸芯片功能引脚,引脚间距为2.54mm ,采用杜邦线可十分方便地与单片机进行连接。
PCB 引出脚排列及功能如图所示:3.屏设置为8位,用户也可根据实际情况设置为16位。
4.控制IC 为ILI9325。
二、供电及连接说明DD-900实验开发板采用的是5V 供电,因此,单片机应采用5V 单片机,如STC89C516RD+、STC12C5A60S2等,晶振采用30M ,注意TFT 要采用3V 供电,否则有可能烧屏,TFT 与单片机连接时可加限流电阻,电阻大小为470欧左右,也可以不加,但单片机不可设置为推挽模式,各引脚连接如下: TFT 触摸屏 DD-900实验开发板说明GND GND 屏与背光供电VCC 3V LED+ 3V DB8~DB15 P00~P07 液晶屏部分DB0~DB7不连接(这里采用是8位方式,不用连接)RS P26 WR P25 RD P24 CS P27 RES P23 D_CLK P21 触摸控制部分D_CS P20 D_DIN P22 D_BUSY P34 D_DOUT P33 D_Penirq (中断) P35 SD_OUT 根据程序进行定义 SD 卡座部分(前两个实验,此部分未采用) SD_SCK 根据程序进行定义SD_DIN根据程序进行定义SD_CS 根据程序进行定义注意:在TFT 的PCB 板上标有TFT 的引脚功能,一定要认清管脚与标注的对应关系。
NHC_36彩色液晶显示控制模块使用说明一、N HC_36型显示控制模块的特点。
A:安装方便,板尺寸为168mm╳116mm,安装孔Ф3mm,四个安装孔位置为162mm╳110mm,高度为14mm。
B:微处理器可以随时读写显示存储器,而不影响显示效果,即显示不会出现“雪花”。
C:与微处理器接口连接简单,接口的读、写操作兼容8031总线时序。
D:有两页显示缓存,可以任意设定显示页和操作页。
二、物理特性:三、电器参数:NOTE1:最小电流的条件是电源4.8V,不对模块操作,液晶屏幕显示全黑。
最大电流的条件是电源5.2V,对控制卡进行高速逻辑写操作,屏幕显示全白。
四、MCU接口定义用户板和NHC_36控制模块的连接(J1)采用21线2.54mm间距单排插针。
对液晶的操作采用标准intel总线时序(8031总线时序)。
管脚图如下:(顶视图)如果第18管脚“RD\”不用时,接上拉电阻五、NHC_36液晶控制板与微处理器的接口时序接口时序与8031的总线时序相同时序:A0、A1/WR、D7—D0(D7—D0(READ时序特性参数六、指令介绍及编程方法:CS WR RD A1 A0 D0-D7H 任意任意任意任意操作无效L L H 0 0 写显示数据到LCDL H L 0 0 从LCD读数据L L H 0 1 写显示数据前用:设定行地址,地址0-233对应液晶屏从上到下1到234行L L H 1 0 设定列地址(0-479)L L H 1 1 设定显示页和操作页1.写指令和数据a)设定显示页和操作页地址。
(A1=A0=1,CS=0,WR=0)开机时先执行此操作再执行其他操作,工作中不需要换页时D4位设定操作页。
D0位设定显示页。
b)写行地址。
(A1=0,A0=1)c)写列地址高字节。
(A1=1,A0=0)d)写列地址低字节。
(A1=1,A0=0)e)写1个字节数据。
对应一个象素点。
(A1=0,A0=0)R2、R1、R0表示红色灰度,从000到111,灰度有8级R2为高灰度位,R0为低灰度位。
4inch TFT Touch ShieldUser ManualOVERVIEWThis is a 4inch resistive screen TFT LCD, 320x480 resolution, integrate controller on board. It uses SPI interface, can be used to display image, text or draw geometric figure with functions.STM32 and Arduino examples are provided for easy porting.PARAMETERSLCD Type: TFTLCD Interface: SPILCD Controller: ILI9486Touch Screen Controller: XPT2046Touch Screen Type: ResistiveResolution: 320x480 (Pixel)Color Gradation Exponent: 65536INTERFACESymbol Arduino PIN STM32 PIN Description 5V 5V 5V 5V power inputGND GND GND GroundSCLK D13 PA5 SPI clockMISO D12 PA6 SPI data inputMOSI D11 PA7 SPI data outputLCD_CS D10 PB6 LCD chip selectLCD_BL D9 PC7 LCD back lightLCD_RST D8 PA9 LCD resetLCD_DC D7 PA8 LCD data/commandselectionHOW TO USEHARDWARE CONFIGURATION•If there is ICSP interface on Arduino board, set the SPI Config switch onto ICSP position.(default)•If Arduino board has no ICSP interface, set the SPI Config switch onto the position that SCLK\D13, MISO\D12, MOSI\D11EXAMPLESWe provide Arduino UNO examples and XNUCLEO-F103RB examples for this screen.ARDUINO EXAMPLES1.Download the examples: 4inch TFT Touch Shield code.7z, and copy the libraries which are inArduino\lib folder of examples to the libraries folder which is under the installation directory of Arduino IDE.2.Before running the LCD_ShowBMP code, copy the pictures which is in the PIC folder to SDcard.3.Open the LCD_ShowBMP project with Arduino IDE, download to Arduino board.4.The Touch code use four sets of calibration values, could support painting operation in fourdirections. There are five colors which could be selected on the right. The size of paintbrush is 9 pixels by default. Users can also click the AD on screen to calibrate:Please use the stylus click the cross on the screen. The cross will always move until thescreen adjustment is completed.5.Following the prompt, click the red sign “+” one by one to finish the calibration.STM32 EXAMPLES1.Before running the code that display image. copy the pictures which is in the PIC folder toSD card. Then insert the LCD to NUCLEO or XNUCLEO board.2.Open the project with MDK, download to the NUCLEO or XNUCLEO development board.3.The LCD will first show some common functions: Draw dots, draw dotted line and solid line,rectangle, filled rectangle, circle and solid circle. Every figure keeps for 3s. You can change the size of dot, the width of lines and the size of the circles.4.The Touch code use four sets of calibration values, could support painting operation in fourdirections. There are five colors which could be selected on the right. The size of paintbrush is 9 pixels by default. Users can also click the AD on screen to calibrate:Please use the stylus click the cross on the screen. The cross will always move until thescreen adjustment is completed.5.Following the prompt, click the red “+” one by one to finish the calibration.Note:Image: 320x480, 24bit, bmp.SD card: FAT。
墙式3.2寸液晶触摸屏使用说明书一.技术参数:✧屏幕显示: 3.2寸TFT真彩矩阵。
✧触摸屏面板四线电阻式。
✧颜色深度:65M - 16bits。
✧分辨率:320 x 240 Pixel。
✧可视角度:100° 垂直100° 水平倾斜角度:30°。
✧通讯方式:RS-485标准串行总线,通讯速率:1200~256000 bps可设,长度:8 bits,奇偶校验:无,停止位 1✧内存:1M bytes (系统资源760K,用户240K)。
✧接口:1个5Pin接线座✧工作电源:DC12V--DC24V。
✧功耗:工作状态从100 mA –睡眠状态为40 mA 。
✧外壳:面板:锌合金底盒:阻燃ABS。
✧工作温度:0℃至50℃ 。
✧储存温度:-10℃~60℃。
✧周围湿度:20~90% RH (无结露)。
✧安装底盒:标准86底盒✧尺寸(mm) 117(L) x 100(W) x 32(D)。
颜色:多色可换面板。
二.墙式3.2寸触摸屏功能:1. 3.2寸触摸彩屏显示。
2.可设置1到10个按键3.每个按键可以自定义发送代码4.可自己设计界面样式5.通讯方式:标准的485通讯方式,波特率可变。
⏹产品接线安装右边为485接口,A为485+,B为485-,R为终端电阻可不接。
多个触屏通过手拉手方式连接。
左边接DC12V。
三.软件设置●配置软件是为配合3.2触屏进行系统配置而开发的一个应用工具,仅适用于(SH-TP32系列产品)。
●到下载SH-TP32配置软件,软件为纯绿色软件,无需安装。
直接复制到硬盘中双击即可运行。
●参照本说明书“产品接线”,通过USB转485配置线与触屏接通,同时将触屏上电。
运行软件,导入背景和按键后即可进入上传。
3.1 软件使用注意:在写入程序时ID要与写入的触屏一致。
长按触屏8秒,触屏会进入工程模式,此时就可修改触屏ID、屏幕保护、代码发送间隔时间。
● 3.1.2 “文件”菜单打开配置:打开前期保存在电脑的工程文件保存配置:把编辑好的按键界面保存在电脑里写入配置:把当前界面写入SH-TP32(写入后,触屏会自动重启)。
2一、.4寸TFT 触摸屏使用说明
要正确使用TFT 触摸屏,需要借助相应的单片机实验板,这里,以顶顶电子开发板DD-900实验开发板为例进行介绍,值得庆幸的是,DD-900上设有3V 电压输出端,因此,可以方便地为TFT 触摸屏供电。
TFT 触摸屏模块介绍
随着TFT 触摸屏价格的不断下降,其应用也越来越广泛,学习TFT 触摸屏现已成为一种时尚,以前,很多人只有在ARM 单片机中才能看到TFT 触摸屏的风采,现在,随着51单片机性能的提高,51单片机也能玩TFT 触摸屏了,这里,我们介绍的是一款2.4寸TFT 触摸屏模块,其正面与反面外形如图所示:
这款触摸屏模块主要具备如下特点:
1.2.4寸320*240 ,65K/262K 色;
2.屏带PCB 板, PCB 板设有2.4寸液晶屏、SD 卡座、触摸屏控制芯片ADS7843,通过40脚插针将屏、卡座和触摸芯片功能引脚,引脚间距为2.54mm ,采用杜邦线可十分方便地与单片机进行连接。
PCB 引出脚排列及功能如图所示:
3.屏设置为8位,用户也可根据实际情况设置为16位。
4.控制IC 为ILI9325。
二、供电及连接说明
DD-900实验开发板采用的是5V 供电,因此,单片机应采用5V 单片机,如STC89C516RD+、STC12C5A60S2等,晶振采用30M ,注意TFT 要采用3V 供电,否则有可能烧屏,TFT 与单片机连接时可加限流电阻,电阻大小为470欧左右,也可以不加,但单片机不可设置为推挽模式,各引脚连接如下: TFT 触摸屏 DD-900实验开发板 说明 GND GND 屏与背光供电
VCC 3V LED+ 3V DB8~DB15 P00~P07 液晶屏部分
DB0~DB7
不连接(这里采用是8位方式,不用连接)
RS P26 WR P25 RD P24 CS P27 RES P23 D_CLK P21 触摸控制部分
D_CS P20 D_DIN P22 D_BUSY P34 D_DOUT P33 D_Penirq (中断) P35 SD_OUT 根据程序进行定义 SD 卡座部分
(前两个实验,此部分未采用) SD_SCK 根据程序进行定义
SD_DIN
根据程序进行定义
SD_CS 根据程序进行定义
注意:在TFT 的PCB 板上标有TFT 的引脚功能,一定要认清管脚与标注的对应关系。
三、实验实验方法
这里以DD-900实验开发板配合TFT 触摸屏为例,说明实验的操作方法,实验采用5V 单片机STC12C5A60S2;晶振采用30M (频率不能太低)。
1——
TFT 触摸屏刷屏实验
(1)实现功能
将TFT 触摸屏与DD-900实验开发板相应脚连接好,开机后,循环显示红、绿、蓝三种色彩。
如下图所示:
(2)源程序 (略)
(3)实验方法
◆用Keil 软件打开“刷屏测试C51源程序”文件夹中的“flash ”文件,对源程序进行编译和链接,产生flash.hex 目标文件。
◆将STC12C5A60S2单片机插到锁紧插座,把flash.hex 文件下载到单片机中,观察实验效果是否正常。
如果显示正常,说明TFT 液晶屏没有问题。
2——TFT 触摸屏显示图片实验
实验(1)实现功能
将TFT 触摸屏与DD-900实验开发板相应脚连接好,开机后,液晶屏上显示出多个QQ 图片。
如下图所示:
(2)源程序
(略)
(3)实验方法
◆用Keil软件打开“显示图片C51源程序”文件夹中的“picture”文件,对源程序进行编译和链接,产生picture.hex目标文件。
◆将STC12C5A60S2单片机插到锁紧插座,把picture.hex文件下载到单片机中,观察显示的图片是否正常。
实验
3——TFT触摸屏显示坐标实验
(1)实现功能
将TFT触摸屏与DD-900实验开发板相应脚连接好,实现以下功能:开机后TFT触摸屏上面显示“触摸测试”,下面显示“welcome to you”以及“顶顶电子携助你,轻松玩转单片机”英文和汉字。
当用触摸笔触摸屏幕时,在“触摸测试”下面可以显示出触摸位置的坐标。
(2)源程序
(略)
(3)实验方法
◆在源程序中,汉字字模数据是通过PCtoLCD2002软件制作的,制作时,要对选项菜单进行设置,点阵格式选择“阴码”,取模走向设置为横向取模(逐行式),字节正序(顺向),自定义格式选择C51,如下图所示,然后点击确定按钮。
在主界面中,将字体大小设置为宽×高(像素): 12×16,在文字输入框中输入汉字“顶顶电子欢迎你,轻松玩转单片机”,此时,在汉字显示区中出现相应的汉字,点击“生成字模”按钮,即可在下面的点阵输出区出现这些字的点阵数据,如下图所示:
用同样的方法,再制作“触摸测试”几个汉字的字模数据。
◆用Keil软件打开“触摸屏显示坐标C51源程序”文件夹中的“touch1”文件,对源程序进行编译和链接,产生touch1.hex目标文件。
◆将STC12C5A60S2单片机插到锁紧插座,把touch1.hex文件下载到单片机中,此时,观察实验效果是否正常。
找一支触摸笔,在屏上触摸,屏上会显示出触摸点的坐标值,如图所示:
实验
4——TFT触摸屏写字画实验
(1)实现功能
将TFT触摸屏与DD-900实验开发板相应脚连接好,实现以下功能:屏幕上面出现“start”英文字符,找一只触摸笔,在屏幕上可以写出蓝色的汉字和绘出蓝色的画,同时,在下面还可以显示出当前触摸屏的坐标位置。
(2)源程序
(略)
(3)实验方法
◆用Keil软件打开“触摸屏写字画图C51源程序”文件夹中的“touch2”文件,对源程序进行编译和链接,产生touch2.hex目标文件。
◆将STC12C5A60S2单片机插到锁紧插座,把touch2.hex文件下载到单片机中,观察实验效果是否正常。
打一支触摸笔,在屏上写字或绘图,屏上会出现相应的线条,以下是用触摸笔绘制的图画:
需要提醒用户的是,在写字绘图时,可能会出现一些额外的蓝点,这是由于源程序在算法上还不够完美,还需要加入软件滤波程序,用户可根据我们提供的源程序继续完善。