Home
HANJINDATA
Contents
1. 1 5 5V power input 2 5 5V power input 3 DO Data bus 4 CE Chip select signal Low active 5 D1 Data bus 6 RES Active low reset signal 7 D2 Data bus 8 Address signal 9 D3 Data bus 10 WE Active low write enable signal 11 04 Data bus 12 RE Active low read enable signal 13 D5 Data bus 14 A1 Reserved for future expansion addresses 15 D6 Data bus 16 A2 Reserved for future expansion addresses 17 D7 Data bus 18 A3 Reserved for future expansion addresses 19 GND GND 20 GND GND 1 2 Interface Timing MI08D708048AD V2 uses 8 bit 8080 bus interface the specific interface timing such as Figure 2 1 Figure 2 2 shows Figure 2 1 The timing for the bus to write when the address line 0 is 0 said address register is written the register of MIO8D708048AD V2 for the various registers in addressing the range 0 to 7 When the address lines AO to 1 that the value written to the register on the role of each register see 2 3 User Manual www smartkit co kr 2 NH BUS Type TFT LCD Module 1 gt 37 5ns Figure 2 1 Bus Timing Write Figure 2 2 The timing for the bus read read in MIO8D708048AD V2 register in only one so in order to facilitate the operation any read operation will be automatically point to the register during the address register AO and the state of the signal will be ignored gt 37 5ns Figure 2 2 Bus Timing Read 1 3 Register Description MI08D
2. 2 he 2 s ope spoke sk oe opo void PageCopy int start x int start yint end x intend mask unsigned char temp TFT WRegAddr 0 Address register points CUR Y TFT WRegData start y 8 set the starting Y coordinate TFT WRegData start y TFT WRegAddr 1 Address register points CUR X TFT WRegData start x 8 Set the starting X coordinate TFT WRegData start x TFT WRegAddr 3 Address register points END X TFT WRegData gt gt 8 set the X coordinate of the end TFT WhRegData TFT WRegAddr 4 Address register points END Y TFT WRegData end gt gt 8 set the Y coordinate of the end TFT WRegData end y TFT WRegAddr 6 Address register points RVS_MASK TFT WRegData rvs mask 8 write the register copy operations start page TFT WRegData rvs mask TFT WRegAddr 7 Address register points MIRROR TFT WRegData 0x04 udlr start page copy operations while 1 wait for the end of page copy temp TFT RData if temp 0 break Note that during page copy operation before the first call SetPref function set page and copy the source of the current operation you copy the value when the RVS MASK is not 0 then the copy of the data is the result of past anti color Page and copy the source of the current operation can also point to the same
3. X CUR Y PREF and other registers set the page to be operating until the regional operations and anti color mask and other parameters Anti color pages at startup or after the copy operation RVS bit is automatically cleared UD bit is used to control the display of the vertical flip LR bit is used to control the level of User Manual www smartkit co kr 8 NH BUS Type TFT LCD Module the display flip operation UD bit and LR bits will affect the position of pixels on the TFTand the memory address mapping data but not will change the data in memory different values ofUD and LR corresponding display as Figure 2 7 below MIRROR 0x01 2kiA MIRROR 0x03 MIRROR 0x00 2 MIRROR 0x02 21 Hmm 1 3 8 STATE E read so read on the bus were all read by ead signal and the address register will be ing the STATE register you can learn the current state STATE MI08D708048AD V2 is the defaultS TATE register AO during User Manual www smartkit co kr 9 BUS Type TFT LCD Module 2 MCU Operation Example 2 1 Basic reading and writing For the 8080 bus compatible MCU be MIO8D708048AD V2 mapped to a memory device read and write access to the pointer the way is not compatible for the 8080 bus or external bus interface does not have the MCU analog IO bus can read and write the way operation the following example to explain in 8051 the port connection such as Figure 3 1 below AT8048 V1 Figure 3 1 port connection diagr
4. 8 displayed page Page switching current To 8 as the target of any page in memory write data operation Page Copy In between any two arbitrary regions of memory data copy operations Automatic anti color For any page any automatic anti color operation area Backlight Control Adjustable backlight PWM signal 64 Flip mirror On the TFT display on the horizontal or vertical mirror image flip State ID Read through the bus interface controller status bits Table 1 3 MI08D708048AD V2 Electrical Characteristics Power supply voltage 5 0 5 Power 170mA 730mA IO Level 3 3V LVTTL User Manual www smartkit co kr 1 NH BUS Type TFT LCD Module Note 1 170mA corresponds to the power consumption of the backlight turned off 730mA corresponds to the brightest backlight power consumption when this data is the supply voltage is 5V measured and the practical application of power supply voltage fluctuation due to the slightly change Note 2 Generally if the output driver with 3 3V 5V IO IO can be directly driven if the output driver with 5V 3 3V IO of IO the IO recommended that you set the 5V weak pull model This avoids the compatibility level is not too much current caused by IO 11 Operating Instructions MI08D708048AD V2 External 20 pin on a detailed description of each see Table 2 1 Table 2 1 MIO8D708048AD V2 Pin Description
5. TFT WRegAddr 2 Address register points PIXELS h y start y 1 calculate height of rectangle w end x start x 1 calculate the width of rectangle for i 0 i lt h i for j 0 j lt w j 1 fill data TFT_WRegData color gt gt 8 TFT_WRegData color 2 2 3 Page copy operations MI08D708048AD V2 offers 8 page display buffer can be specified in any area between the pages to copy data the data copy operations in hardware the copy process without MCU intervention For low speed MCU when the refresh when a large area the phenomenon appears Curtain flexible use of page copy operations can effectively avoid this phenomenon so that the screen displays more fluid the sample page copy operations such as Listing 3 5 show Listing 3 5 copy operations ook sspe oko se oko spoke sk efe opo spoke Function Name TFT PageCopy Description copy data between the page Parameters Start x to be copies of X coordinate of the starting area Start y to be copies of the starting Y coordinate of the region End x to be copies of X coordinate of the end zone End y to be copies of Y coordinate of the end zone User Manual www smartkit co kr 18 NH BUS Type TFT LCD Module mask Anti colored mask Return Value None aka ak ak ake ak afk aK spoke spoke spoke
6. pure anti color operation Copy operations on the page for further instructions see 2 3 6 3 The current display operation page CUR PAGE specified by the currently displayed page said that the actual display on the screen of memory paging the current operation by the OPT PAGE specified page a write data operation anti color copying operation and the corresponding page of memory paging If PAGE and OPT PAGE point to the same memory page then write data inversion such as operating results will be presented on the screen immediately if PAGE and PAGE point to different memory paging then the operation will not be any OPT PAGE affect the display on the screen only to switch to OPT PAGE after CUR PAGE OPT PAGE the data will be displayed User Manual www smartkit co kr 7 NH BUS Type TFT LCD Module 1 3 6 RVS MASK 6 RVS MASK 16 bit counter used to set the color mask the mask is the role of anti color logo in the operation against the need for reversal color color bit RVS MASK bit defined as Table 2 5below Table 2 5 RVS_MASK bit definitions Anti color operation of the RVS in the MIRROR bit start register see 2 3 7 If the anti color operation is required then the first point to make OPT PGAE and COPY SRC also need anti color pages and then set CUR X CUR Y END X and END Y define the color of the region need to counter anti color mask to RVS MASK write then RVS in the MIRROR bit register ca
7. 108D708048AD V2 Bus type TFT drive module 7 TFTLCD 070 83 V 1 User Manual D TFTLCD Type ATO70TN83 V 1 NH BUS Type TFT LCD Module 1 Description MI08D708048AD V2 is a high performance 16 bit true color TFT controller the controller integrates 16Mbytes display cache to provide 8 display pages and support for copying data between the various paging operations MI08D708048AD V2 also provides a backlight management automatic anti color image flip and other advanced features the use of flexible convenient and its various parameters such as Table 1 1 Table 1 2 and Table 1 3 below Table 1 1 MI08D708048AD V2 basic features Interface Type Intel8080 8 Color format RGB565 Memory Pages 8 block Memory Capacity 16MBytes TFT Panel ATO7OTNS83 V 1 Table 1 2 MI08D708048AD V2 features Write data point Write to the specified coordinates of the specified data X coordinates Write a data point each the current X coordinate will automatically add a automatically accumulate X coordinate Accumulate to the user when the X coordinate of the end of the automatically return default X coordinate the automatic return to the starting Xcoordinate of the user default Y coordinates X coordinate of automatic return Y coordinates automatically add a automatically accumulate Change the currently The data displayed on the screen in the memory of any changeon page
8. 708048AD V2 register addresses and functions of each profile such as table 2 2 shows including seven 16 bit registers and an 8 bit registers for the 16 bit register write operation requires two to complete a register set during write operation must be re written to write low high eight eight and the write operation must be in pairs for 8 bit register with a single write operation to complete the set User Manual www smartkit co kr 3 BUS TFT LCD Module Table 2 2 Features register address and Write only 16 0x00 CUR Y Set the Y coordinate of the screen 0x0000 16 0x01 CUR X Set the X coordinate of the screen 0x0000 16 0x02 PIXELS Write pixel data 0x0000 16 0x03 END X Setting automatically returns the 0x031f coordinates of the X direction and the page copy when the end X coordinate direction 16 0x04 END_Y Set the direction of the end of page 0x01 df copy Y coordinates when 16 0x05 PREF Set the current display page the current 0x0000 operation page backlight etc 16 0x06 RVS MASK Anti color mask set 0x0000 8 0x07 MIRROR Mirror flip and page copy of the start 0x01 control Read only 8 STATE Status Register 0x00 1 3 1 CUR Y 0x00 CUR X 0x01 Register CUR Y and CUR X used to set the coordinates of pixels to be operating TFT screen coordinates of the arrangement such as Figure 2 3 shows when CUR Y and CUR X value determined pixels A location is only determi
9. E The current operation of the page 0 b15 Reservations 0 1 Control BK PWM duty cycle signal for setting the backlight to adjust the brightness of TFT backlight rang Backlight e from 0 to 63 0 backlight off 63 on behalf of the brightest backlight After power on reset default value is 0 PWM that is backlight off the MCU on BK PWM assigned to non zero value the backlight on 2 Copy source page COPY SRC used to set the data source when the page copy The range of 0 to 7 corresponding to 8pages in memory the signal on the page copy operations such as Figure 2 6 below User Manual www smartkit co kr 6 NH BUS Type TFT LCD Module xa 0 CUR X END X 799 Figure 2 6 copy of the operatingsignal Figure 2 6 in the hands of two pages the above page for the OPT PAGE that are currently working on the page the following is COPY SRC that stores the data source of the page copy operations when the copy operation was launched after page from the master logic COPY SRC specified page will be A B C D four point range as defined by the points one by one read out and RVS_MASKXOR and then write OPT PAGE the corresponding position If RVS_MASK is 0 then this operation simply move the data if RVS_MASK the value is not 0 then the process of moving data pixel color values for the mask will RVS_MASK anti color if OPT PAGE and COPY SRC point to the same page while RVS_MASK is not 0 then the data movement operation has evolved into a
10. all points will be automatically calculated the maximum efficiency to ensure that filled rectangle filled rectangle as an example of Listing 3 4 shows Listing 3 4 filled rectangle oko oe obe opo oko soo oko ok opo spoke sk Function Name TFT_RectFill Description TFT color fill with the specified rectangle on the specified Parameters Start_x X coordinate of the starting rectangle Start_y Y coordinate of the starting rectangle End_x X coordinate of the end of the rectangular domain End_y Y coordinate of the end of the rectangular domain User Manual www smartkit co kr 12 NH BUS Type TFT LCD Module Color color to be filled Return Value None ak ak ak ake ak afk aK 3 3K sk oe opo ook spoke oboe fe 2 K ook gt K 2K gt K void TFT RectFill int start x int start y int end_x int end_y int color int i j w h TFT_WRegAddr 0 Address register points CUR Y TFT WRegData start y 8 set the starting Y coordinate TFT WRegData start y TFT WRegAddr 1 Address register points CUR X TFT WRegData start x 8 Set the starting X coordinate TFT WRegData start x TFT WRegAddr 3 address of register to END X TFT WRegData gt gt 8 set END X TFT WhRegData
11. am 2 1 1 Pointer mode For Figure 3 1 shows the port connections the basic read and write operations with pointers such as the sample code in Listing 3 1 below Listing 3 1 Basic reading and writing pointers include AT89X52 h define RES P3_5 unsigned char xdata pTFT RegAddr unsigned char 0x0000 unsigned char xdata pTFT_RegData unsigned char 0x0100 static unsigned char udlr 0x01 Write register address void TFT WRegAddr unsigned char a pTFT RegAddr a Write register void TFT WRegData unsigned char d pTFT RegData d Read register unsigned char TFT RData unsigned char temp temp pTFT RegData User Manual www smartkit co kr 10 NH BUS Type TFT LCD Module return temp 2 1 2 I O Bus For Figure 3 1 shows the port connections using bus for read and write basic code as 3 2 shows 3 2 I O Bus include AT89X52 h define CE P21 define AO P2 0 define D define WE P3 6 define RD P3 7 define RES void TFT WRegAddr unsigned char CE 0 A0 0 D a WE 0 WE 1 void TFT WRegData unsigned char d 0 1 D d WE 0 WE 1 115 unsigned char TFT RData unsigned char temp D Oxff CE 0 RD 0 temp D RD 1 return temp User Manual www smartkit co kr 11 BUS TFT LCD Module 2 2 Advanced Operation 2 2 1 Setting display paramet
12. ers MI08D708048AD V2 can be easily and backlight on the display buffer management specific examples such as Listing 3 3 show Listing 3 3 Setting the display parameters Ro sk ook 2 opo oko oko oko oe oko spoke sk efe 2 Function Name TFT SetPref Description Sets the currently displayed page the current operation page the page copy of the source and backlight Parameters Cur page the currently displayed page Opt page the current operation page Copy src page copy of the source Bk pwm Backlight Return Value None sk sk ese ook spoke se spoke oboe sk oe ope 3k 3K 3K spoke oko oko fe spoke aie aK akk gt K 2K void TFT SetPref unsigned char page unsigned char page unsigned char copy src unsigned char bk pwm int temp temp bk I src 6 opt page lt lt 12 cur page 9 WRegAddr 5 Address register points PREF TFT_WRegData temp gt gt 8 write data PREF TFT_WRegData temp 2 2 2 Filled rectangle Making clear the screen the picture shows and other operations will use the rectangle filloperations MI08D708048AD V2 filled rectangular field operation is optimized when filling MCU only need to set a good starting point coordinates and end coordinates can be the process of filling the coordinates of
13. n be written to 1 Anti colored mask can specify a specific value for example Oxf800 can be used to counter all the red bits color 0x07e0 green spaces can be used for all anti color 0 001 can be used to counter all the blue bit color and so and so on If the page copy operation is needed then let OPT PAGE and COPY SRC point to a different page and then set the X CUR Y END X and END Y define the area to be copied to the RVS MASKwrite 0x0000 can also be non zero value then to the MIRROR RVS bit register can be written tol Copy operation is complete COPY SRC page data corresponding to the region will be copied to theOPT PAGE the corresponding area Note that you can also write to the RVS_MASK non zero value the difference is that the data copied to OPT PAGE COPY SRC page is not raw data corresponding to the region but rather as a mask after RVS_MASK inverted data 1 3 7 MIRROR 7 MIRROR register is used to achieve horizontal and vertical mirror image flip and control and anti color page copy operation starts the specific meaning of the register you as Table 2 6below Table 2 6 MIRROR register bit definitions b7 b3 Reservations 0 b2 RVS Anti color copying operation and start position on page 0 b1 UD Control vertical image flip 0 50 LR Flip mirror control level 1 RVS bit counter is used to start page for color copies and operation prior to the RVS bit write the first set CUR
14. ned by the subsequent pixel data is written accurately placed in the A point lt 2 Sz X 800x480 479 Figure 2 3 Coordinate order 1 3 2 PIXELS 0x02 PIXELS corresponding to register 16 bit color data if the current page displayed the same page with the current operation then the data will be written PIXELS immediately apparent and CUR Yselected by CUR X current active point if the currently displayed page and the current operation not the same page then writes the data will not be immediately PIXELS presented MI08D708048AD V2 color format RGB565 specific Correspondence between the color spaces such as the Table 2 3 below User Manual www smartkit co kr 4 NH BUS Type TFT LCD Module Table 2 3 The correspondence between color code Bl 1 3 3 END X 0x03 In order to improve the efficiency of pixel data to write continuously when the set CUR X andCUR Y each write a pixel the X coordinate of the current active point will automatically add one when the activation point is equal to END X X coordinate it will automatically returnCUR X also automatically add a Y coordinate As Figure 2 4 shows the assumption CUR X Y END X were 400 200 500 A point B point C point D point coordinates are 400 200 500 200 400 201 500 201 Set CUR X CUR Y the first pixel written to the A point the first pixel writes B100 points the first pixel writes C 101 points the first pixel writes D 200 poin
15. page this time by setting the value of non zero RVS_MASK page copy operation can evolve into a simple anti color operation 2 2 4 Power on reset MI08D708048AD V2 power on reset operation is very simple examples such as power on reset Listing3 6 shows the first MCU to MI08D708048AD V2 of the RES pin down more than Ims and then wait Ims MCU can begin MI08D708048AD V2 write operation initiated by the other User Manual www smartkit co kr 14 NH BUS Type TFT LCD Module Listing 3 6 on reset operation oko sje oko sk obe oko oko Function Name TFT Init Description initialize power on Parameters None Return Value None opo opo se opo gt K 2K 2K void TFT Init unsigned int i RES 0 for i 0 i lt 10000 i1 delay 1ms RES 1 for i 0 i lt 10000 i1 delay 1ms TFT SetPref 0 0 0 63 backlight on User Manual www smartkit co kr 15 NH BUS Type TFT LCD Module 3 PCB Dimensions 250000000009 o o o o o z o z o User Manual www smartkit co kr 16
16. ts and so on XA 0 CUR X END X 799 lt TRX 800x480 479 Figure 2 4 X automatically returns indicate With END X register you can simplify the process of writing bulk data MCU MCU needs to assume 100 200 for the starting point is to write a 10 X 20 rectangle then only need to CUR X set to 100 CUR_Y set to 200 END X set to 210 then 200 pixels can write do not need to coordinate during the set operation all coordinates will be automatically calculated 1 3 4 END Y 0x04 END Y registers need to tie CUR X CUR Y and END X use of color in the page copy and anti operation the four registers used to define the operating range as Figure 2 5 shows A point of coordinates CUR X CUR Y B point coordinates END X CUR Y C point coordinates CUR X END Y D point coordinates X END Y page copy and the role of anti color operating range is from the A B C D defined by four points User Manual www smartkit co kr 5 BUS Type TFT LCD Module Figure 2 5 define the operating range 1 3 5 PREF 0x05 PREF register used to set the currently displayed page the current operation page the page copy of the source and TFT backlight the specific meaning of each bit as Table 2 4 below Table 2 4 PREF register bit definitions b5 60 BK_PWM Backlight Control 0 b8 b6 COPY SRC When a copy of the source page 0 b11 b9 CUR PAGE The currently displayed page 0 b14 b12 OPT PAG
Download Pdf Manuals
Related Search
Related Contents
Craftsman 334-Piece Contents List シー トーカ丿 "ー Genius HS-120BT Anleitung Guia do Usuário GNOME - opensuse-startup-pt-br Plaquette-concertati.. DKL300DC SLIDING GATE OPERATOR 2014年 Questions fréquentes CARBONIT - Hydro-Chic Copyright © All rights reserved.
Failed to retrieve file