Home

TURBO-VGA640480 User Manual

image

Contents

1. pa RH EEG x K Ft pa Ri S BUSY BUSY ZJ FE 1 480 XY 1
2. MCU HEADER 15X2 Ed 2 1 E B S MPU TURBO VGA640480 p VCC 1 2 22 24 26 28 30 5V 5V GND 10 12 14 16 21 23 25 27 29 D0 D7 3 5 7 9 11 13 15 17 I BUSY 20 O MCU WR ii D0 D7 WR D0 D7 X As Y A1A0 00 A1A0 01 XX Abs C A1A0 10 Y A A0 A3 4 6 8 18 I t Lg Eu 9i TURBO VGA640480
3. Feb PER 2 X 100 Y 200 X 100 Y 200 1 0 D7 D6 D5 D4 D3 D2 D1 DO 1 1 TES t 0 0 1 2 X 5 EE RE Y TURBO VGA640480 tRDY 10ns tSET 10ns tWR 30ns tHOLD 20ns tEND 10ns A X A3 0 A2 0 A1 0 A0 1 X 1 640 10 D7 DO gt X7
4. TURBO VGA640480 X D7 D6 D5 D4 D3 D2 D1 DO EE 1 0 1 0 0 0 0 0 QD 2 3 4 1 0 00 1 0 01 1 0 10 1 0 11 X 8 D7 D6 D5 D4 D3 D2 DI DO 7 6 HEHEA 5 4 3 2 1 0 0 0 0 0 0 0 0 0 X 2 D7 D6 D5 D4 D3 D2 DI DO
5. void clear screen by hardware unsigned int color 16 TURBO VGA640480 TURBO VGA640480 set_copy_target_address 0 0 set copy width height 640 480 set fill color color set copy config register 0 0 WU 0 4 set_action_register 2 while busy 1 1 60 fb 1 0 pec void copy_screen_by_hardware void set copy source address 0 0 V set copy target address 0 0 set copy _width_height 640 480 set copy config register 1 0 WU 1 0 set action register 1 while busy 1 1 60 void circle int cen
6. 9 8 0 0 0 0 0 0 0 0 Y 8 D7 D6 D5 D4 D3 D2 D1 D0 7 6 4 3 2 1 0 0 0 0 0 0 0 0 0 Y 1 D7 D6 D5 D4 D3 D2 DI DO 8 0 0 0 0 0 0 0 0 X Y 1 X 10 Y 20 X 4 amp 10 Y 20 0 1 TURBO VGA640480
7. X 8 D7 D6 D5 D4 D3 D2 DI D0 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 X 2 D7 D6 D5 D4 D3 D2 DI D0 9 8 0 0 0 0 0 0 0 0 Y 8 D7 D6 D5 D4 D3 D2 DI D0 7 6 5 4 3 2 1 0 0 0 0 0 0 0 0 0 Y 1 D7 D6 D5 D4 D3 D2 DI D0 8 0 0 0 0 0 0 0 0 X Y
8. XY 1 1 640 TURBO VGA640480 VGA 40 480 16MHz AVR BUSY X void write lcd x location unsigned int wr dat HI LCD_A0 LO LCD Al LO LCD A2 LO LCD A3 LCD PORT wr dat amp OxOOff asm nop LO LCD WR LCD PORT 2 wr dat 8 amp 0x0003 asm nop HI LCD WR Y void write lcd y location unsigned int wr dat LO_LCD_A0 HI LCD AL LO LCD A2 LO LCD A3 TURBO VGA640480 LCD PORT wr dat amp OxOOff 3ff Mv asm nop LO LCD WR LCD PORT wr dat 8 amp 0x0001 368 14 asm nop HI LCD WR void write config register unsigned int wr dat HI LCD A0 HI LCD AL LO LCD A2 LO LCD A3 LCD PORT wr dat amp OxOOff V asm nop LO LCD WR asm nop HI LCD WR void write lcd color unsigned int wr dat LO LCD A0 LO LCD AL LO LCD A2 LO LCD A3 LCD PORT wr dat amp OxOOff
9. ae T ren n 1 xm ERE d cu Af s WHH J EDS 8 Ee SS Pa S gt gt S S C OO C OU I C OU CO cC CO p r COS COCO O S C OO CO C OO KR O CO O O UR EI Fas C 8 AL D7 D6 D4 D3 DI 5 FH MIA 1 0 1 0 0 0 4H
10. asm nop LO_LCD_WR LCD PORT wr dat 8 amp 0x00ff asm nop HI LCD WR TURBO VGA640480 0 0 void set point color unsigned int x unsigned int y unsigned int color write config register 0x00 write lcd x location x write lcd y location y write lcd color color X 1 display_area VGA write_area wy void set_display_config_register unsigned char display_area unsigned char write area unsigned char tmp_wr tmp_wr 0 W111 if display_area 1 tmp_wr 0x01 else if display_area 2 tmp_wr 0x02 else if display_area 3 tmp_wr 0x03 JM ERE X pe if write area 1 tmp_wr 0x04 else if write area 2 tmp_wr 0x08 10 TURBO VGA640480 else if write area 3 tmp wr 0x0C HI LCD A0 HI LCD AI LO LCD A2 LO LCD A3 LCD PORT tmp wr asm nop LO LCD WR asm nop HI LCD WR
11. X WM x 1 i ra EE BE e AER SARE 00000101 0x05 0 00000100 0x04 B CEDE X ER S rl f AZ bon
12. gt N E gt e 8 8 ids koX KERTA 8 1 640 BOB Wx E 2 1 640 gt Y 8 1 480 gt Y 1 1 480 gt z3 nj DLE X S6 8 URBE X Aia M 2 135 tb Y Y ERAR 16 7 K 8 1 9 X 8 H 7 aH X 2 W Af is Y 8 RN n 1 4 EET 1 8 2 i Y AXE Em fit 8 gt lt lt lt gt gt lt
13. 3 gt ER if source area 1 tmp_wr 0x01 else if source area 2 tmp_wr 0x02 else if source area 3 tmp_wr 0x03 VW if target_area 1 tmp_wr 0x04 else if target area 2 12 tmp_wr 0x08 else if target area 3 tmp wr 0x0C LO LCD A0 HI LCD AI LO LCD A2 HI LCD A3 LCD PORT tmp wr asm nop LO LCD WR asm nop HI LCD WR fill color 5 Zu tf void set_fill_color unsigned int fill_color HHIH LO_LCD_A0 LO LCD AL HI LCD A2 HI LCD A3 LCD PORT fill color amp 0x00ff asm nop LO LCD WR LCD PORT fill color 8 amp 0x0003 2 asm nop HI LCD WR 15 TURBO VGA640480 do_what 1 2 void set_action_register unsigned char do what HA HI LCD A0 HI LCD AI LO LCD A2 HI LCD A3 LCD PORT do what asm nop LO LCD WR asm nop HI LCD WR void clear screen by software unsigned int color unsigned int 1 j for i 1 1 lt 480 i for J 1 j lt 640 j write lcd color color write_Icd_y_location i write lcd x location 0
14. X0 D1 D0 gt X9 X8 B 5A Y Mr CA320 A220 A121 A0 0 Y 1 480 9 D0 2 Y8 C A3 0 A2 0 A1 0 A0 0 16 65536 16 R5G6B5 TURBO VGA640480 p pta pispi2 pii pao p p o7 os ps p4 ps pa o1 00 R5 R4 R3 R2 R1 G5 G4 G3 G2 G1 G0 B5 B4 B3 B2 B1 B ta S RGB X MCU 8 FAR WR BUSY 1 4 1 BUSY H pc
15. 1 TURBO VGA640480 0 1 1 0 void set_point_color unsigned int x unsigned int y unsigned int color MOV RO 00H MOV R1 00H LCALL write_config_register MOV RO 01H MOV R1 4200H LCALL write lcd x location MOV R0 201H MOV R1 4200H LCALL write lcd y location MOV RO 0FFH MOV R1 0FFH LCALL write led color X 1 Image2Lcd zimo221 2
16. TURBO VGA640480 TURBO VGA640480 TURBO VGA640480 51 AVR PIC ARM MSP430 VGA CRT VGA 640X480 16 65536 VGA 4 JH 8 5 CPU 5V 3 3V X 0 6 3 9 8 Y 0 439 8 16 8 A
17. TURBO VGA640480 HI LCD A0 HI LCD AL HI LCD A2 LO LCD A3 LCD PORT copy source addr y amp O0xOOff asm nop LO LCD WR LCD PORT copy source addr y 8 amp 0x0001 1 asm nop HI LCD WR area_width area_height void set_copy _width_height unsigned int area_width unsigned int area_height JII LO LCD A0 LO LCD AL LO LCD A2 HI LCD A3 LCD PORT area width amp OxOOff asm nop LO LCD WR LCD PORT area width 8 amp 0x0003 2 asm nop HI LCD WR JII 1 HI LCD_A0 LO LCD AL LO LCD A2 3 TURBO VGA640480 HI LCD_A3 LCD PORT area height amp 0x00ff asm nop LO_LCD_WR LCD PORT area height gt gt 8 amp 0x0001 1 asm nop HI LCD WR Source_area 0 3 target_area 0 3 i void set copy config register unsigned char source area unsigned char target area unsigned char tmp_wr tmp wr 0 MAILS ER
18. copy source addr x X copy source addr y YY S void set copy source address unsigned int copy source addr x unsigned copy source addr y J SX LO_LCD_A0 LO LCD AL HI LCD A2 LO LCD A3 LCD PORT copy source addr x amp 0x00ff asm nop LO LCD WR LCD PORT copy source addr x 8 amp 0x0003 2 asm nop HI LCD WR gt int JI Y HI LCD A0 LO LCD AL HI LCD A2 LO LCD A3 LCD PORT copy source addr y amp OxOOff asm nop LO LCD WR LCD PORT copy source addr y 8 amp 0x0001 asm nop HI LCD WR TURBO VGA640480 1 copy target addr x X copy target addr y YY void set_copy_target_address unsigned int copy_target_addr_x unsigned int copy_target_addr_y JHH SX LO LCD A0 HI LCD AL HI LCD A2 LO LCD A3 LCD PORT copy target addr x amp OxOOff asm nop LO LCD WR LCD PORT copy target addr x 8 amp 0x0003 asm nop HI LCD WR HH Y I2 2
19. terx int centery int radius int color int type Ihi a pr c int x 0 int y radius int delta 2 1 radius int direction while y gt 0 if Itype setPixel centerx x centery y color setPixel centerx x centery y color setPixel centerx x centery y color setPixel centerx x centery y color else line b centerx x centery y centerx x centery y color 1 line b centerx x centery y centerx x centery y color 1 if delta 0 if 2 delta y 1 lt 0 direction 1 17 else direction 2 else if delta gt 0 if 2 delta x 1 lt 0 direction 2 else direction 3 else direction 2 switch direction case 1 X delta 2 x 1 break case 2 delta 2 x y 1 break case 3 y delta 2 y 1 break void cb lineGnt xl int yl int int dx dy n k i f int x y dx abs x2 x1 x2 int y2 18 draw TURBO VGA640480 a line TURBO VGA640480 dy abs y2 y1 n dx dy if x2 x1 k y2 gt y1 1 4 x xl yzyl k stands for slope of line else k y2 gt y1 2 3 x x2 y y2 for i 0 f 0 i lt n i if f gt 0 switch k case 1 putpixel x y 3 f dy break case 2 putpixel x y4 7 3 f 2dx break case 3 putpixel x y 3 f 2dy break case 4 putpi
20. xel x y 3 f 2dx break else switch k case l putpixel x y4 7 3 f dx break case 2 putpixel x y 3 f dy break case 3 putpixel x y 3 f dx break case 4 putpixel x y 3 f dy break LCD_A0 EQU P1 0 LCD AI EQU P1 1 LCD A2 EQU P1 2 19 the TURBO VGA640480 LCD_A3 EQU P1 3 LCD_WR EQU P1 4 LCD_PORT EQU P2 R0 R1 X write lcd x location SETB LCD A0 CLR LCD A1 CLR LCD A2 CLR LCD A3 MOV A R0 MOV LCD PORLA NOP CLR LCD WR MOV A RI MOV LCD PORT A NOP SETB LCD WR RET 5 Y write lcd y location CLR LCD A0 SETB LCD A1 CLR LCD A2 CLR LCD A3 MOV A R0 MOV LCD PORT A NOP CLR LCD WR MOV A RI MOV LCD PORT A NOP 20 TURBO VGA640480 SETB LCD_WR RET write_config_register SETB LCD_A0 SETB LCD AI CLR LCD A2 CLR LCD A3 MOV A RO MOV LCD PORT A NOP CLR LCD_WR NOP SETB LCD_WR RET write lcd color CLR LCD A0 CLR LCD AI CLR LCD A2 CLR LCD A3 MOV A RO MOV LCD PORL A NOP CLR LCD WR MOV A RI MOV LCD PORTA NOP SETB LCD WR RET 2

Download Pdf Manuals

image

Related Search

TURBO VGA640480 User Manual

Related Contents

      aprilia 854007 ATLANTIC 250 i.e. GR-DK 2006 Manual      YAMAHA RX-V659 AV receiver owner's Manual        

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.