Home

トレーニングテキスト

image

Contents

1. http wwwsunhayato co jp I H8 MTLR300 HEW High Performance Embedded Workshop
2. WT NEY A E m E L1 E L1 EJEJEJEIJETEITES 2 rs qj m H EIEJEJEJEJEIEITEI m 2 36 RC E E E E L1 E L1 2 TE rs RC E E a E E E E MT R300 LCD write data glcd CS2 0x80 El while 1 LCD 6 2 unsigned char read stat glcd int cs unsigned char read data glcd int cs cs CS1
3. LCD HP LED 8 6 Sunhayato el LCD 1 LCD LCD LCD
4. P gt p
5. ifinclude lt mt_r300 h gt ifinclude mt_e507 h gt void main initialize_glcd wait ms 500 ihre ea ee 32 30 1 s wait ms 500 CWPeleglest25 25 20 li ys wait ms 500 32 Jj CUR Paa V GLCD x0 y0 r MT R300 LCD Jd Jl x0 x0 r y0 oy 7 x0 x0 EG SEER y0 WDE Il x0 x0 r y0 y0 ee a ceti 0 s wait ms 500 eaeele ges 92 30 I Ls eWrele eheds 95 32 S930 J Qs wait ms 500 eeele CeO 25 20 0 lys cxi Ker 0 75 UO wait ms 500 Ga gemi 18 10 1 Ig ewurelhe Glek lio i9 10 1 0 8 wait_ms 500 eUele glewdt 5 5 9 d 0s wait ms 500 eire la C
6. P JBK 480 P b 5 H8 7800H Microsoft Windows
7. P P M ANE Nia
8. ifinclude mt r300 h f xe eem zz include mt e507 h 7 2 9 9lL0 28 l5gl zat ZzU define CS2 0x01 CS2 CS2 0 CS1 1 void fill glcd cs2 CS2 int page clmn for page 0 page lt 8 page I R 9 1 set DACSZ pagels set_clmn CS2 0 0 for clmn 0 clmm lt 64 cimni 0 63 write data glcd CS2 0xff void main initialize_glcd GLCD wait ms 500 iii eat Es wait ms 500 eeu wee 8 0 ls x y Wo eet 63 0 Ds x y dot glcd 64 0 0 x y dot ges u27 0 0s x y eet dee 0 5 18 x y doir gest G3 G3 1 8 x y Gio cheek 640 G3 0 x y Ge_ le6I 122 63 0
9. P NII P A pp
10. j void main 27 Sunhayato initialize glcdO GLCD fii rel sz e wait ms 100 Juwegeu 0 5 69 5 9 0 5 63 5 7 line gleck 63 5 0 S 1s EITO 2 wait ms 200 inme glec 5 0 5 63 8 5 0 5 63 amp i Tine glet 5 63 Ss O 1 2 wait ms 200 Jume ees 5 5 69 94 8 5 5 63 34 7 line gledal 63 94 5 5 Ds EITO 2 wait ms 200 ime wledsi B5 B5 94 63 5 5 34 63 NOG9INGGO I34 63 5 5 1 2 wait ms 200 line glcd 5 5 68 68 8 5 5 68 68 line gledal 69 G9 5 5 1 EITO 2 wait ms 200 ie e 34 10 S94 9 8 A R wait ms 500 Jwe wee Gu 15 1027 5 s 64 5 127 5 A 7 T me wled 122 5 G0 5 Qs 2 wait ms 200 Jeree 9 SS O3 095 69 0 69 63 B Nine G9 639 69 0 5 EITO 2
11. x void putchar gled int x1 int y1 struct struct image st img unsigned char c void prints_glcd int x1 int y1 struct struct image st img char str MT R300 LCD 5 LCD H L LED MT R300 LCD
12. 4 1 _ LCD 41 10P mt_R300 VPD VPE mt E507 VP1 VP2 X NxxxxNworkspace glcd ESAN 7574 Y9 LCD 8 1 Ed 4 2 VP defne 16 E bit eee 1 define EN 0x20 0 define DS 0x00 DI bit4 enn 1 define DR 0x10 0 define IR 0x00 RW bit9 1 define RD 0x08 0 Stdefine WT 0x00 RST bit2 1 define NML 0x04 0 define RST 0x00 SRAM OPTION SrT oe cLK2 Tioc REI VAtts Ape DA2 B VPT VPA aining Board wopEu MT R300 Sunhayato Graphic LCD Board A MT Es07 E
13. 6 amp 249 y 28 zi Jae y s RC E SRE ifinclude lt mt_r300 h gt b7 NC b6 NC define EN 0x20 b4 DI b3 RW l smST lsCS2 9551 E 1 19 Sunhayato define DS 0x00 define DR 0x10 define IR 0x00 define RD 0x08 define WT 0x00 defne NML 0x04 defne RST 0x00 defne CS2 0x01 defne CS1 0x02 char read stat glcd int cs 1 ehar Sis setup VPE COx00 out WIPDC NML es IR m DS J exu Wip NME es TR I RD EN s stat in VPE omt VEDE NME es IR RD DS ys setup VPECOxff return stat i void busy check glcd int cs while read stat glcd cs amp 0x80 D y char read data glcd int cs 1 char data busy check glcd cs while read stat glcd cs amp 0x80 setup VPE Ox00 ew WIPDC WWE es me m DS J out VPD NML cs DR RD EN D data in VPE out VPD M
14. DO HH D1 NM E D2 W D3 M 04 MENHEN D5 M o D6 E o Dy char kan 16 16 2 16 OK22 0K69 0 ee 0000 OO OO ORR OK RE 005922 002 OKRA 059 ORNS OiT2 0531012 0x80 0xe0 0x38 0x0e 0x00 0x88 0x8a 0xca 0x6a 0x3a 0x0f 0x3a 0x6a 0xca 0x8a 0x88 char jill 16 16 7 2 fa 16 A 7 5 1 5 B 7 5 1 5 0x00 0x1c 0x04 0x24 0x24 0x24 0x24 0x27 0x24 0xa4 0xe4 0x64 0x24 0x04 0x1c 0x00 OO 05002 0 9 0 2 002 OC US OS ETT ODS ODA 01 10 2 0153012 OD OO 05012 OO ES char logo 24 24 3 24 TOKO c 1c 0 T0 7001 0 500 O SE US eX Mee OO SIRE TE e ESIP IE d pageO Oxff O0xff Oxff Oxfe Oxfe 0xfe Oxfc Oxfc 0xf0 0xe0 0xc0 0x00 0x3e 0xff Oxff Oxff Oxfe 0xfc 0xf8 0xf0 0xe0 0xc0 0x00 0xe0 pagel Oxf0 0xf1 0xf9 0xf9 0xfb Oxfb Oxfb 0Oxf7 0xf7 0xef 0xef 0Oxle 000 0 0 00540177 WSO QI c OC SESS O o TORT TE o SIYE OPT SIEG page2 Oxff Oxff Oxff Oxff Ox7f Ox3f Ox3f Ox1f 0OxOf 0x07 0x01 0x00 SPEI Siue else Su eap e t Ll 55 cep ec Si Su
15. O08 9 PC 0O8 Windows XP Professional 9 HEW V 4 03 00001 C H88 H8 300 Standard Toolchain V 6 02 Release00 FDT FlashDevelopmentToolKit Ver4 02 HEW HEW High Performance Embedded Workshop Sunhayato H DCCCOOLKYOLKKYYKKYYKKYYYKKYYKKYOKKYYYKYYYKKYYLKKYYYKKYYYKKYYYKKYYY HB MT R300 ee 5 ie Sociss oataninieasa
16. cs cmnd it BF 1 0x80 DS EN 20 MT R300 LCD out_VPD NML cs IR MT DS DS EN gt DS void write data glcd int cs char data cs data busy check glcd cs while read stat glcd cs amp 0x80 BF 1 0x80 out VPD NML cs DR MT DS DS out VPD NML cs DR WT EN EN out VPE data out_VPD NML cs DR MT DS DS EN gt DS void display_sw_glcd int sw sw 1 0 te cmnd glcd CS1 0x3e te cmnd glcd CS2 0x3e ENS wr ENT wr void set page int cs int page void set_clm wri int clmn BIDS wri S
17. 29 4 void rectangle_glcdGnt x1 int y1 int x2 int y2 int col int fill 1 forO Sunhayato 4 2 4 4 2 4 LCD 1 mai PNE include lt mt_r300 h gt 7 IBI z include lt mt_e507 h gt 77 tss lua zu void main initialize_glcd GLCD wait ms 500 recusmglesglew 3 8 n24 GU 1 s x1 y1 x2 y2 1 0 wait ms 500 iecuswle gie
18. mt_e507 h 4 2 1 4 2 1 LCD 1 main E ifinclude lt mt_r300 h gt define CS2 0x01 AF y Z CS2 CS2 0 CS1 1 define CS1 0x02 CS1 CS1 0 CS2 1 18 void main void wai wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri wri initialize gl t ms 500 te cmnd gl te cmnd gl te data gl te data gl te data gl te data gl te data gl te cmnd gl te cmnd gl te data gl te data gl te data gl te data gl te data gl te cmnd gl te cmnd gl te data gl te data gl te data gl te data gl te data gl te data gl te data gl te data gl te cmnd gl te cmnd gl te data gl te data gl te data gl te d
19. ne 16 5 8 33 Sunhayato SZL LCD x 0 127 xf 0 2 4 2 6 4 2 6 LCD main C ifinclude mathf h fHinclude mt r300 h jg Eum z zu include mt e507 h HO 038 984 2 define PI 3 1415927 7 2 void main float Xdba i NH int Xy y2 initialize_glcd GLCD Is illeeI 0 0 9 99 18
20. 4 5 x0 y0 r x y x x0y y yOP r x y Gy xx0 2 y yO Z r 4 2 5b mE He y x x0 y yOY gt r nn SM EE B m EH B Em xy x xOPHY VOP r xO yO RE 4 5 4 2 5D LCD 1 main E
21. include lt stdlib h gt x1 x2 y1 y2 1 45 x 45 y forO 4 2 3b 4 2 30ob LCD or main ifinclude lt mt_r300 h gt f 4 zz include lt mt_e507 h gt ADA e uas sca z y defme CS2 0x01 CS2 CS2 0 CS1 1 void fill glcd cs2 CS2
22. xyy 0 x 127 0 63 x 2 x 2 45 4 2 5a 4 2 5a LCD sin 9 cos 0 main C ifinclude lt mathf h gt include lt mt_r300 h gt EE ZU fHinclude mt e507 h 7 028 584 z u defme PI 3 1415927 7 2 void main float I
23. wait ms 200 ine gleo 69 5 OS 59 0 5 69 5 98 63 B Wwe chel 99 G3 GS 5 0 EITO 2 wait ms 200 JwWxe wee 9 15 1027 34 09s 69 5 127 34 B1 M Mine ciek 127 0 069 5 0s 2 wait ms 200 ime 59 5 192 9 0 59 5 132 68 B ii Tine gledal 132 63 59 5 0s 2 wait ms 200 Tilia eo SS OU SS UU while 1 mt e507 c bes er include stdlib h x1 y1 x2 y2 co 1 0 woe Tine seem sdis ie wis wu X NE 2 Te Col 28 dmt x owl 3x2 du abs ty2 yD lt abs Z if x2 x1 0 Wa AOLU MoA ne Jd i MT R300 LCD Zw vx T 45 Ax 0 0 dot gledat xd wi eol Js 2 1 else 1 TECI x2
24. 25 Sunhayato 4 2 8A 4 2 3a LCD MT R300 LCD 69 0 69 63 B iiOle W 08 6898 MAA dor ges G9 Ys 09 wait ms 10 69 5 98 63 B for y 5 y lt 63 y 45 y X float 98 69 float 63 5 y 5 69 docagled 9 ODE wait ms 10 69 5 127 34 B on y 8 YW aq ey 45 y X Cile CIL27 TOD Caere 9 95 ATE RY elo cue ox Ws 058 wait ms 10 while 1 LCD or mt_e507 c void ine_glcdGnt x1 int y1 int x2 int y2 int col mt e507 h x1 y1 x2 2 col 1 0 abs0 stdlib h
25. LED A K HL LED MT E507 CN1 5V B sv 10 7 z 9 cc GND KD e GLCD 8 77 o i i SG12864B NYG VN D e 7 T 1L og k 20 LL 5 4 15 RW 3 1 14 RW RST 5 i5 RST E 12 CS2 5V CS1 CS1 TN vv vaa CN2 5V uj T E 2 G lt X aua 10 F W EY 5 E Vcc 9 HE 777 ZZ TIT N Vss GND Ta T s DB7 7 1 10 DB7 S DB6 DB6 vo B S DB5 DB5 0 5V K gt N 5 8 IIS BE amp DB4 DB4 L gi E 7 18 AR DB3 3 T 6 DB3 Vee FT s DB2 2 t 5 DB2 5V DB1 DB1 1 4 DBO DBO oO x S mmo ua en mm m e en en mm x E o2 E oZ oZ a o2 os N 2 777 ZZ 777 777 ai 3 1 4 MT R300 LCD LCD
26. out_VPD NML cs IR RD END EN stat jin_VPE out_VPD NML cs IR RD DS X DS setup_VPE 0xff return stat unsigned char read_data_glcd int cs char data while read stat glcd cs amp 0x80 BF 1 0x80 setup VPE 0x00 out_VPD NML cs DR RD DS DS out_VPD NML cs DR RD EN EN data jin_VPE 17 2 3 b LCD dh Ds Sunhayato out VPD NML cs DR RD DS X DS setup_VPE 0xff return data void write cmnd glcd int cs char cmnd 1 while read stat glcd cs amp 0x80 BF 1 0x80 out VPD NML cs IR MT DS DS out_VPD NML cs IR MT EN EN out VPE cmnd out_VPD NML
27. 2012 4 20 Rev1 00 T 170 0005 3 TH 40 E 2012 Sunhayato Corp All rights reserved SG12005
28. clear glcd putpwimage glcd page 16 page amp st logo wait ms 300 j warte y LCD mte507c void putpwimage_glcd int pagel int x1 struct struct pwimage struct img mt_e507 hn pagel x1 page1 0 7 x1 0 127 struct img 4 2 7b 36 MT R300 LCD 4 2 7b LCD Sunhayato 0 7 0 127 x y
29. HEW 23 H8 MT R300 H8 300H 3062 HD64H3062BF H8 3062BF e MT R300 H8 3062BF 5 ROM 16M 7 e PC PC Pentium II 600MHz IBM PC AT os Windows XP Windows Me Windows 98SE Windows 2000 Windows XP 128MB ELE 2 100MB 1 USB 6 H8 MTR300 0 USB
30. HT MT R300 LCD Ls i EE k 128x64 E T X grs 4x64 yt TT 64x64 y im s a S Drm Drm la Vadd 5V KS0108 KS0108 SEG65 128 Hn XE Vss GND ES IG o ke Vo 0 5V vee va i E 5V yv s DI 0 RW Pw Vee 5V RST 88 A E ur dd 2 p 2g DB7 Fd RO 2 2 LCD LCD Vdd Vss 5V GND Vdd 5V Vee 5V Vdd Vee 10V LCD Vee Vo LCD
31. 2 128 x 64 2 LCD 2 2 RE DD RW Jtv hEr RST 2 C82 1 CS1 6 DBO 7 KS0107 2 KS0108 CR OSC 4 COM1 64 DDRAM DDRAM DDRAM SEG1 128
32. E Sunhayato 1000ns 1 a i 450ns 450ns i E 1 818 0 1 o 11 0 140ns 10ns Oo I 9 lt x RW 1 0 i 0 835A 140ns 10ns RST 1 0 e CS2 1 0 CS1 1 0 200ns q i O E DI 1 O Y DBO 7 a d dine 1000ns 1 E 450ns 450ns 320ns DBO 7 E 1 0 EET S uH joge 0j 140ns ELE i10ns 1 1 l i RW 1 3 0 8852 g oq md 140ns 10ns RST 1 0 ae DI 1 O a CS2 1 0 A E m 1 i84 M l osa d 223 b DE TL
33. define DR 0x10 jd DISI defne IR 0x00 DI 0 define RD 0x08 RW l 14 define define define define define MT NML RST CSZ CSi 0x00 0x04 0x00 0x01 0x02 void write cmnd glcd int cs char cmnd 1 wa 0 t VPD t VPD t VPE t VPD ie ws icus L es m MT DS J3 ies EENE cmnd L ee 1R Whr DS J void write data glcd int cs char data wait us itu2 40 out VEDE NML es DR WT DS D out VPDC NML cs DR WT EN out VPE data out VPD NML cs DR WT DS 5 j void main void in se se ou wai ou wri wr ite cm t VPD t VPD te cn 15 UIS t page cl tup VPDCOx3f tup VPECOxff mn RST TEUZ KODE NML mol gl nd gl Gel SL xS JS ee S2 SS Jl spp Up ror mage 0 page lt 8 page Jd Jd 7 Jd Jd 7 Jd Jd 7 Jd 7 write cmnd gledi CS1 Oxb8 page write cmnd glcd CS1 0x40 0 D for clmn 0 clmn lt 64 clmn write cmnd glcd CS1 0x40 clmn writ e data glcd CS1 0x00 MT R300 LCD R
34. out_VPD NML RST H void initialize_glcd void setup_VPD 0x3f b5 E b4 DI b3 RM b2 RST b1 CS2 b0 CS1 setup VPE Oxff U mss 3 reser oled id Wes s display sw glcd 1 clear glcd mt e507 h char ra esa cE eon 8 void busy check glcd int char read data glcd int void write cmnd glcd int char void write dara geek ime echar 8 void display sw glcd int void set page int int void seu lm Wi s um 8 void ser slinel Tmt 1 8 void clear glcd void void reset glcd void void initialize glcd void EKE LCD 67 51 1 El 4 3 xy
35. xy x 0 127 y 0 63 y 0 page 0 y y 63 y x 64 CS1 2 x lt 64 C82 21 cs 2 x 64 x 64 clmn x 64 x 64 page y 64 y 8 0x01 y 8 4 2 2a 22 MT R300 LCD 012345678 91011121314151617181920212223 63 01 2 8 4 5 6 7 8 91011121314151617181920212223 63 I T j 58 5 DB5 57 6 DB6 56 7 DB7 55 8 DBO 54 9 DB1 2 uu m 2 9 hd E X 67 uda 4 P
36. bit 63 51 8 12 8 4 set page cs page f csx mb set clmal cs clmn IE gaz Ie f 8 read data glcd cs DDRAM data read data glcd cs DDRAM set clmn cs clun ii col 1 8 0 B write data glcd cs data 1 lt lt bit 1 else d pit ik Qi Sunhayato write data glcd cs data amp 1 lt lt bit 1 while 1 LCD or mt e507 c void dot_glcdGnt x int y int col x y 823 0 0 127 63 col 1 0 mt_e507 h 4 2 2b 4 2 2p LCD or main C
37. B5 DI m B4 RW m B83 LSE cs2 m 81 cs1 m B0 128x64 Dots 1000000000000000 0000 CO 4 1 C82 1 bit1 0 1 0 CS2 C81 CS2 CS2 0 CS1 1 Gidefine CS2 0x01 CS1 CS1 0 CS2 1 Gidefine CS1 0x02 bit7 bit6 bit5 bit4 bit3 bit2 bit1 bitO NC NC E DI RW RST CS2 CS1 2e Xs 1 1 1 1388 1 1 0 QO 0 0 0 0 4 2 13 B 2 3 a LCD Sunhayato 2 3 gt void write_cmnd_glcd int cs char cmnd void write_data_glcd int cs char data
38. ORW RST fH H DI H LL CS1 CS2 1 2 1 CS2 H CS1 2 CS2 L CS1 H OD 450ns 140ns OE H TDB7 0 1000ns 450ns E TL CS2 CS1 TL 10 2 3 MT R300 LCD 2 1 AA ARTI 2 1
39. LCD MTE502 1 LCD Y 0 63 Y 0 63 012345678 91011121314151617181920212223 w 63 0 1234567 8 9 1011121314 1516 17 181920212223 63 0 pg4 2 o D E 5o 5 OD n El MEGAR Yh X 0 7 E Ru c g DOT a 128 2 1 LCD 128 x 64 64 x 64 LOCD boda 1 2 1 0 0 63 TEL DDRAM RAM DB0 7 8 DDRAM
40. x y Go ee 29 19 24 MT R300 LCD dort gledi 10 1 1 5 dot glcd 128 10 0 dot glcd 120 64 0 while 1 mt e507 c 1 x y 0 0 127 63 col amp 1 amp 0 B wel dor eel Wm x ime wo me Col me cS Se bit elm char data Tar 00 5 KW X 128 fm CU x xw Way m 0 0 127 63 esem D SIX Od Jd zs sts 2 2a sCS2 1 clmm X 64 page 63 y 8 bit 63 y Gs 4 Ee s set page cs page 6835 s set clmn cs cimn I vam read data glcd cs DDRAM data read_data_glcd cs DDRAM set_clmn cs clmn Js iC Col 3 z TsE2 0si8 write data see cs data Jeu 5 else sbt
41. x1 lt x2 W X2 X2 xls KI e Wi M W2 ye yl yl Ww meu c cxx 8 xis 0 OZ e 1127 x2 9 127 s xs 1 327 BUS Fop Ux xls x lt x2 se x y c mee y nest x2 x s Cox xl Ls Gon cce xs ws eel 8 j else 45 TC 2 2 y1 lt y2 WM c XE XA exo xU wg Wc Wwe y wb WI wg j yeu CLE 0 Jg 0 s ws 0 We2 59 yA JE GS s W28 63 for y yd1 y lt yd2 y y X float x2 x1 float y2 y1 y y1 x1 Gon leet xs ws cel Je mt e507 h void Tue cileo mb JmE TE WE s dm JS LCD mt_e507 c mt_e507 h x1 y1 2 2 ft col 1 0 H fill 1 0 E
42. DDRAM Y X DDR AM 2 4 0 1 0 1 0 1 Y 1 DDRAM L H 0 7 0 7 2 4 LCD CS1 CSI L CS2 H 0x3f X CS2 CS2 L CS1 H L 0x3f KJ 1 10 4 4 CS1 CS1 L CS2 H DDRAM 0 63 0
43. m CS2 CS2 L CS1 H DDRAM 0 63 0 m 11 aX AE Ut yh RST L 1u 10u RST DDRAM 0x00 DDRAM 0x00 2 4 Sunhayato 3 8 1 VPD VPE E DI RW RST CS2 CS1 DBO 7 LCD Vdd Vss VPort 5V GND Vee 5V GND VR 0 5V Vo Vo
44. cs CS1 CS2 LCD 2 1 RST 10 uR L H 1 5 10 x Ac EA CS1 00111111 CS2 00111111 X 0 7 Y 0 63 CS1 RAM 0x00 X 0 7 Y 0 68 CS2 RAM 0x00 Rt BD m BD BD E 2 1 CA 1 A C
45. ms yis 7 QE y2 e609 W2 E 63 5 W28 i 8 JE Y fore y ywlg y lt wes yum Tome eje Ibo Wa XPu Wa CoE elset 30 MT R300 LCD line Gled wl x2 wl Cols mme ocd w2 x2 w2 eol s I7me giee xi wi Ne wol 8 line oe wl x2 w2 Cole mt e507 h void exei e lleelK mes qo NN 1 Fv EMTT S ZAR EEDSEv C 8 E 5 LCD sin8 cos 9 9 rad x cos 0 lt 2 y sin 0 9 lt 2 x y 1 0 0 1 0 LCD
46. 5 5 122 58 il X1 y1 x2 y2 1 REC 1 eeeisele_qllee 5 53 122 5 i eebatglelgUed l22 5 S SS 1 i rectangle gledi 122 56 5 5 1 wait ms 500 rectangle glcd 25 15 102 48 0 x1 y1 x2 y2 0 1 wait ms 500 pecie sies 16 uy 47 i 9s X1 y1 x2 92 1 amp 6 0 wait ms 500 Vectanglle gleck B S Gs 31 1 195 x2 y2 1 REC 1 wait ms 500 rectangle glcd 64 32 132 68 1 0 x1 y1 1 0 while 1 mt eb507 c x1 y1 x2 y2 co1 1 0 fl 1 0 woe rexerswsle Wee im sd qup w ls gan 2 uw Wes nm cO wmm m int y w Tie COR EO d iul 2 2 wya y2 cse wb se y1 lt y2 wi dyLse0
47. 81 X 0 Y 0 DDRAM A Y 0xfe HENHEBERB 2 11111110 0x11 EH E 2 00010001 0x11 EH E 2 00010001 0x11 E E 2 00010001 0xfe HENHEBER 2 11111110 1 4 1 1 4 1 1 LCD 1 main G include lt mt_r300 h gt Jg uA Iam zzu b7 NC b6 NC b5 E b4 DI b3 RM b2 RST b1 CS2 b0 CS1 defne EN 0x20 E 1 define DS 0x00 E 0
48. C82 BF 7 LCD 4 1 2 4 1 2 LCD 1 main E include mt r300 h define X 10 4 1 1 unsigned char read stat glcd int cs char stat setup VPE 0x00 out VPD NML cs IR RD DS DS
49. CGROM Character Generator ROM 2 2 228 LCD a DE TL ORW L RST dS H DI H CS1 CS2 1 2 1 CS2 H CS1 2 CS2 L CS1 H 450ns 140ns OE H TDB7 0 1000ns 450ns 200ns
50. F 18 int Xo ya K initialize_glcd GLCD line glcd 64 0 64 63 1 qanm geo Q 3S2 127 32 Is for Kk 20 k lt 360 k Xi e cosi Pi 100 k e E 31 Sunhayato A ce GOSYT PE TO Kg ll zur e 2 w ees Du qe o2 ww KS Af 2 7 66OSP PL BO 2 ku ADs wur sw IE de 2 k 8 m e 3 5 v xp ose 69 58 Wes Sisi yg SS elo gees ws ds wait ms 10 j wl le Iz A x 2 x2 2 x2 f amp 45 31 5 63 5 31 5 LCD 1 HAE
51. Iss QI write data glcd cs data amp 1 lt lt bit 1 mt e507 li void Qo wee ime mb TG JS LCD 1 4 4 5 5 63 4 1 2 5 5 34 5 63 5 x 5 5 t E N Co for0 XT x 5 63 45 8 8 8 y y 34 5 63 5y6 5 5 0 5x42 5 5 lt x lt 63 4 4
52. ME s im RD DS 33 setup VPECOxff return data j void write cmnd glcd int cs char cmnd busy_check_glcd cs while read stat glcd cs amp 0x80 out VPD NML cs IR WT DS eme VEDE MM es um p Wn EM s out VPE cmnd E 0 DI 1 DI 0 RW 1 RM 0 RST 1 RST 0 CS2 CS2 0 CS1 1 CS1 CS1 0 CS2 1 cs VPE DS EN DS NPE EX ess Sew zal t BF 1 0x80 cs 7 BF 1 0x80 VPE DS EN DS VPE
53. Me Iosa S M 1 e while 1 mt e507 AG LEJ ifinclude vo amp mathf h Jet cele ele nmn x0 mu ws Jm fa me Cals Tamir mo 5 7 0 127 JB Ip 0 63 if int r int sqrtf x x0 x x0 y y0 y y0 gt 0 lt XX Kis Za Ya wi y2 OU OU 0 Ps KeS I x00 p E E27 ET WI ow pes 9 s Ww s vaal 69 WO r rI 63 s WO s me if tor y yl y lt y2 y ier x xila X lt Xs Xem dot hee x wa eol else tor y ylz y lt y2 y iP OX Kla X K Xeg ns Wie me Ca Sa ET 290 9 X 20098 yr 0 Cur 900 0 if abs int r int sqrtf x x0 x x0 y y0 y y0 lt 1 Gio gilew 3 was eg mt e507 h VO 1d ele ums mes nts 1
54. Microsoft uu cd Ee oon lt
55. ON UN nde DBO a Zt m Y 12 y 3 Bl 18 2 D82 DB4 0x10 43 us 20 DB4 4 6 D86 40 23 DB7 m 7 56 DBO 6 57 DB1 5 58 DB2 4 59 7 DB3 3 60 DB4 32 0 63 DB7 012345678 91011121314151617181920212223 7 63 646566676869 S A iau X 443 LCD 67 51 1 4 2 2a LCD 67 51 1 h R 4 3 main c include mt r300 h include lt mt_e507 h gt LCD void main void int 5 W eol CS Clm page char data initialize_glcd GLCD wait ms 500 X 87 5 el s xy 67 51 amp R 1 if 0 amp x amp amp x 128 amp amp 0 lt y amp amp y lt 64 0 0 127 63 es 2 6s VITSE eLA k cs 2 67 64 2 1 1 0S2 cimn x 64 yz odes C mina page 63 y 8 page 63 51 8 1 2 8 1 lu e 53 w 4 s
56. RR esee 27 LCD oe 29 LCD sin 9 cos ee 31 LCD 1 mmm 32 LCD n M 34 ERPF 22747LiCDIizTX Z d amp X U7tA2ht iBxE4 oveeseeeeeec6e 4 34 EEN LCD vv 66668 36 aM s gt N hui Pu us ps ps pus pus puis d E PEE D IN S bs hy r 91 C E69 Inv o9 EOM Eo MEO E Coui A N A ne ue E EN M X 0 KOJ o9 T Dj M Il 5 EDDIE uesesisiumsbhtiesaexssiiesNiss es ekincse usq Meat den esp ascvteaos fd MT R300 LCD 1 Graphic Liquid Crystal Display LCD 128 x 64 LED LCD
57. Training Text MT R300 LCD MT E507 x Sunhayato axi
58. W amp GU X Jg sw amp 0x01 te cmnd glcd cs Oxb8 page amp 0x07 te cmnd gled cs 0x40 clmn amp Ox3f CS1 CS2 cs page fd 6322 Je c 7 15 cs clmn 224 Avid ze 032 void set sline int cs int sline cs sline j void clear gl j write cmnd glcd cs cd void int page clmn Tr Wee 05 se 9s pese seu eset si ages Seu Toe S2 c set clmn CS1 set clmn CS2 page 0 ODE iore elg c fs della Gs llam 1 write data glcd CS1 0x00 write data glcd CS2 0x00 void reset glcd void out_VPD RST OXe0 sline amp OKS XIs 0 63 Jj 322 07 Sl dos SB YR Jd S2 pos 79 9 CS1 0 CS2 0 0 63 SU DS t 25 Z lot 27 2 027 U 7 I CS2 Jf Uses ds CISSUSIL 21 Sunhayato wait us itu2 10 10 u s 1 u s
59. W 0 RST 1 RS Ulsg sy Ip J CS2 CS2 0 CS1 1 CS1 CS1 0 CS2 1 DS Tw1 450ns VPort EN Tdsu 200ns Tuh 450ns DS EN gt DS DS Tw1 450ns VPort EN Tdsu 200ns Tuh 450ns DS EN gt DS b5 E b4 DI b3 RM b2 RST b1 CS2 b0 CS1 CRSTSE 10 s 1 s RST H CS1 CS2 Jj R c7 il 0s dee 7s P 0 f 8 zb C0 6 3 15 Sunhayato On page 0 Page Bg pee i wa 1l wr wr wr wr wr wr wr wr wr wr wr wr wr wr wr wr wr wr wr wr
60. ata gl te data gl te data gl te data gl te data gl whi e 1 cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd cd CS CSI PIN CSI CSI CS esil CSi CSi CSi esil CSi CS CSi CS CS CS2 CS s CS CS CS CS s CS s CS y CS2 CS s CS PS Pop CS2 CSZ CS y Cd CS mt e507 c 0xb8 0x40 0xf 0x 0x 0x 0xfe 0xb8 0x40 0x00 0x82 Oxff 0x80 0x00 0xb8 0x40 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 0xb8 0x40 0x01 0x02 0x04 0x08 0x10 0x20 0x40 0x80 o 0 ji 05 ji E 1 js 10 ji ji 1 ji 0 ji ji 2 j 8 ji ji ji c c c c c c MT R300 LCD GLCD A BHEBNHENHH L1 E L1 Hi L1 v qj T L EIEJEIEIETEIEIE E RC
61. cs IR WT DS DS EN DS void write_data_glcd int cs char data while read_stat_glcd cs amp 0x80 BF 1 0x80 out VPD NML cs DR MT DS DS out_VPD NML cs DR MT EN EN out VPE data J AE out VPDC NML cs DR WT DS 0 X DS tazsie EN DS void main void MNO xm4 1 1 64 RCO NIE A AUEN 4 2 LCD 4 1 LCD X NxxxxNworkspace glcd_lib 4 1 mt_e507 c mt_e507 h X NxxxxNworkspace hbrary mt r300 c mt_e507 c LCD 2 10 mt e507 c 4 1 2 LCD
62. e flee S css l9 lb amp cep os struct struct pwimage st kan S Aa Keme struct struct pwimage st ji f 2l JY35 Struct struct pwimage st logo d 95 24 logos void putpwimage glcd int pagel int x1 struct struct pwimage struct img 1 int Xe 32 CS el ese pes es char dot dt page pagel lt 0 0 pagel padera qesrel s super dung 29 1 SM Cosa se sub Jmdj op s Jg while page lt page2 x xL 0 0 s xis Xe Ol 3 supe dmg 2w J I29 2 GL s struct wWmg ow 41 s 1278 while x lt x2 35 Sunhayato GSP x 6A FTCA az e 228 56S2 1 clmm x 2 64 DTE set page cs page set clmn cs cimn read data glcd cs DDRAM dot dt read data glcd cs DDRAM set clmn cs cimn write data glcd cs struct img imgl page pagel struct img w x x1 dot dt anng paget j void main int page initialize glcd GLCD putpwimage glcd 0 10 amp st cap a wait ms 300 putpwimage glcd 0 16 amp st cap b wait ms 300 putpwimage glcd 2 30 amp st kan wait ms 300 putpwimage glcd 2 47 amp st ji putpwimage glcd 2 55 amp st ji J wait ms 300 putpwimage glcd 5 80 amp st logo wait ms 1000 for page 3 Dage lt 8 Dage
63. eos sits daa eddie EE inaeind anastoataass 5 hal ors dmi rd Prid PER d E 5 ee 5 ESCO e oooeeoeeeoeeooeeeoeeooeeoeeeoeeooeeoeeooeoooeooeeo 2 1 LCD PEPPCLPPCPPCPPPPPLPTPPPPYPLPPPPPLPPYPPLPPPPPPPPCPLPPCLPPPPPPPPPPCPPCPPLPPPPLPPPCPLCCLCPPCPLCPPLYLLP 8 2 2 sesesosssssesosssesssesescestosssosesesesecesosessosesoescosesosesesesecoseseceseseceseseesscoseesceeosceoses 9 23 11 54A sy 11 3 BE eropa L A V c cM AT A SL a AAEE ETETE EE EESE ER RE RS 13 4 1 1 LCD 2 1 eH 13 LCD 2 1 ti 17 42 LOD cem nemen 18 LCD 2 1 DOR Fz AZE amp ADe MH 18 ERPE LCD 6751 1 4 3 eene 22 LCD or oo 24 LCD ooo 25 LCD amp or B 4 RIMA E
64. ime led 0 32 127 320 1s r 2 08 5x 1 295 am xc 187 Mar oe mw puce y JI2Z 008 7 xar 2m iP SP SS yf 1 0 1 0 WW ce 3L ww War S soe ye8 e 3 orante o e STI yai COSTS S Sur 1s cm EIL s Ve e 3E we se Slo E83 eu ges x we 1s wait ms 10 while 1 LCD 4 2 7a 4 2 7a LCD main C include lt mt_r300 h gt 34 include mt e507 h Struct struct pwimage 1 int p int w ehar mimes IE char cap a char cap b ts 2 erc QUIE E o0 ITE Oe 0x7f 0x49 0x49 0x49 0x36 MT R300 LCD M CD R NS
65. wr wr wr wr wr wr wr wr wr wr wr wr wr write cmnd glcd CS2 Oxb8 page write cmnd glcd CSI 0x40 0 for clmn 0 clmn lt 64 clmn i write cmnd glcd CS2 0x40 clmn write data glcd CS2 0x00 it ms 500 ite cmnd glcd CSI Oxb8 DEDE ite cmnd glcd CS1 0x40 0 8 ite data glcd CS1 Oxfe EN leg CS QUE lte cera ges CSI Ql iie celsa eet OS cl ite data glcd CS1 Oxfe ite cmnd glcd CS1 Oxb8 TEDE ite cmnd glcd CS1 0x40 10 X8 ite data glcd CS1 0x00 ite data glcd CS1 0x82 jue else ee CS Qr 5 ite data glcd CS1 0x80 ite data glcd CS1 0x00 ite cmnd glcd CS2 Oxb8 qos ite cmnd glcd CS2 0x40 yg GS veles olca CS2 Gl s ite data glcd CS2 0x02 ite data glcd CS2 0x04 ite data glcd CS2 0x08 ite data glcd CS2 0x10 ite data glcd CS2 0x20 ite data glcd CS2 0x40 ite data glcd CS2 0x80 ite cmnd glcd CS2 Oxb8 ZI ite cmnd glcd CS2 0x40 8 ite data glcd CS2 0x01 ite data glcd CS2 0x02 ite data glcd CS2 0x04 ite data glcd CS2 0x08 ite data glcd CS2 0x10 ite data glcd CS2 0x20 ite data glcd CS2 0x40 Jj 7 1j 7 7 1 Ur 7 Jd i 7 1i 1j 1 i 1j 7l 7 u m 16 R T 489742 08 Tec 72 TN 0 28 zi ey C0 e I

Download Pdf Manuals

image

Related Search

Related Contents

Lx max  "取扱説明書"  FT ANIOS R444-FR.indd  CHOPPER  Scarica - FULCRUM Wheels  Samsung MW103H manual de utilizador  Mounting and Operating Instructions EB 6495-2  6XQ6HW [`6/ - Advanced Test Equipment Rentals  Sièges et dispositifs de protection  Samsung Galaxy Note pro (12.2, LTE) Korisničko uputstvo(Lollipop)  

Copyright © All rights reserved.
Failed to retrieve file